using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Collections;
using System.Reflection;
namespace allegro
{
public partial class Form1 : Form
{
DataTable tabela = new DataTable();
public Form1()
{
InitializeComponent();
Dziala();
}
private void Dziala()
{
Allegro.AllegroWebApiService allegro = new Allegro.AllegroWebApiService();
string login = "eeee";
string pass = "qqqqq";
long wersja = 123456;
int hash = new int();
long server_time = new long();
int iduser=allegro.doGetUserID(1,login,"test@test");// pobieranie id usera
Allegro.FieldsValue[] ar = new Allegro.FieldsValue[17];
ar[0].fid = 1;
ar[0].fvaluestring = "test-tytul";
ar[1].fid = 2;
ar[1].fvalueint = 1865;
ar[2].fid = 3;
ar[2].fvaluedatetime = DateTime.Now.ToBinary();
ar[3].fid = 4;
ar[3].fvalueint = 2;
ar[4].fid = 5;
ar[4].fvalueint = 1;
ar[5].fid = 6;
ar[5].fvaluefloat = 1;
ar[6].fid = 7;
ar[6].fvaluefloat = 0;
ar[7].fid = 8;
ar[7].fvaluefloat = 0;
ar[8].fid = 9;
ar[8].fvalueint = 228;
ar[9].fid = 10;
ar[9].fvalueint = 216;
ar[10].fid = 11;
ar[10].fvaluestring = "Zielona";
ar[11].fid = 12;
ar[11].fvaluestring = "buyer";
ar[12].fid = 13;
ar[12].fvalueint = 2;
ar[13].fid = 14;
ar[13].fvalueint = 1;
ar[14].fid = 15;
ar[14].fvalueint = 0;
ar[15].fid = 24;
ar[15].fvaluestring = "taki maly opis";
ar[16].fid = 25;
ar[16].fvaluefloat = 9;
string str;
allegro.doNewAuctionExt("ses_test",ar,0,123,out str);
}
}
}
oraz STACKTRACE:
w allegro.Form1.Dziala() w Form1.cs:wiersz 45
w allegro.Form1..ctor() w Form1.cs:wiersz 23
w allegro.Program.Main() wProgram.cs:wiersz 18
w System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
w System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
w System.Threading.ThreadHelper.ThreadStart()