void AuctionFinished() { SetTBHeader("Аукцион окончен"); this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.SystemIdle, (ThreadStart) delegate() { ClearProg(); }); dbf.Close(); dbl.Close(); }
bool CheckInfoValid(string date, int price) { dbl.Open(); int timetostart = dbl.GetDeltaTimeByNow(date); dbl.Close(); if (timetostart < 0) { MessageBox.Show("Дата указана неверно"); return(false); } if (price < 100) { MessageBox.Show("Стартовая цена должна быть более 100$"); return(false); } return(true); }