Ejemplo n.º 1
0
 void AuctionFinished()
 {
     SetTBHeader("Аукцион окончен");
     this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.SystemIdle,
                                 (ThreadStart) delegate() { ClearProg(); });
     dbf.Close();
     dbl.Close();
 }
Ejemplo n.º 2
0
        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);
        }