static void Main(string[] args) { try { AuctionClientClient client = new AuctionClientClient(); //Console.WriteLine( client.AddPerson("Liza", "Rengan", "*****@*****.**", "12345678", false, null)); Console.WriteLine(client.Authorization("*****@*****.**", "12345678")); // Console.WriteLine(client.AddLot("Автомобіль ВАЗ413 ", "Стан хороший. 23л", 2200, new DateTime(2018, 06,18,21,52,0), new DateTime(2018, 06,21, 20,0,0), null )); foreach (Lot elem in client.FutureLots()) { Console.WriteLine(elem.LotName); } //foreach (Lot elem in client.NowLots()) //{ // Console.WriteLine(elem); //} //foreach (Lot elem in client.OldLots()) //{ // Console.WriteLine(elem); //} } catch (Exception ex) { Console.WriteLine(ex.Message); } }
public MainWindow() { InitializeComponent(); //string date1 = "6:50:14"; //date1, CultureInfo.CreateSpecificCulture("en-US") //, CultureInfo.CreateSpecificCulture("en-US").Calendar, DateTimeKind.Utc try { //time = new DateTime(1,1,1,6,50,20,DateTimeKind.Local); //Work with 1,1,1 only... //TimeToEndElement.Text = time.ToShortTimeString(); //00:10:50 } catch (Exception ex) { Clipboard.SetText(ex.Message); MessageBox.Show(ex.Message); } LotsTimer.Tick += new EventHandler(MainTimer); LotsTimer.Interval = new TimeSpan(0, 0, 0, 1); LotsTimer.Start(); //GridInfoTextBlock.Width = GridInfo.ActualWidth; Client = new AuctionClientClient(); //Client.NowLots().Last().History.Last().Money; }
static void Main(string[] args) { AuctionClientClient client = null; try { client = new AuctionClientClient(); //Console.WriteLine( client.AddPerson("Liza", "Rengan", "*****@*****.**", "12345678", false, null)); //client.ForgetPassword("*****@*****.**", "Liza"); Console.WriteLine(client.Authorization("*****@*****.**", "12345678")); //Console.WriteLine(client.AddLot("Автомобіль ВАЗ413 ", "Стан хороший. 23л", 2200, new DateTime(2018, 06,18,21,52,0), new DateTime(2018, 06,21, 20,0,0), null )); //Console.WriteLine(client.ChangePassword("12345678")); //Console.WriteLine(client.AddLot("New lot#1","test lot", 100, new DateTime(2018,05,24,17,12,0), new DateTime(2018, 05, 24, 17, 12, 0), null)); //Console.WriteLine(client.ChangeFirstName("Elizaveta")); //foreach (Lot elem in client.FutureLots()) //{ // Console.WriteLine(elem.LotName); //} Console.WriteLine(client.Bet(1, 500)); //Console.WriteLine(client.TellMeAboutStartLot(1)); Console.WriteLine(client.LotHistory(1)); //Console.WriteLine(client.LastBet(1)); //Console.WriteLine(client.AboutLot(1).LotName); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
static void Main(string[] args) { AuctionClientClient client = new AuctionClientClient(); //Console.WriteLine( client.AddPerson("Liza", "Rengan", "*****@*****.**", "12345678")); Console.WriteLine(client.Authorization("*****@*****.**", "12345678")); Console.WriteLine(client.AddLot("Lot#2", "About lot2", 500, new DateTime(2018, 05, 18, 21, 52, 0), new DateTime(2018, 05, 21, 20, 0, 0), null)); }
public MainWindow() { InitializeComponent(); try { DateTime dt1 = new DateTime(2018, 5, 18, 17, 56, 43); DateTime dt2 = new DateTime(2018, 5, 18, 17, 56, 47); TimeSpan ts = dt2 - dt1; LotsTimer.Tick += Timer_Tick; LotsTimer.Interval = ts; LotsTimer.Start(); } catch (Exception ex) { Clipboard.SetText(ex.Message); MessageBox.Show(ex.Message); } //GridInfoTextBlock.Width = GridInfo.ActualWidth; Client = new AuctionClientClient(); //Client.NowLots().Last().History.Last().Money; }
public MainWindow() { InitializeComponent(); client = new AuctionClientClient(); }