public Form_change_price(Form_operator form)
 {
     form_operator = form;
     InitializeComponent();
     price = new DataSet1TableAdapters.PriceTableAdapter();
     Opacity = 0;
     Timer timer = new Timer();
     timer.Tick += new EventHandler((sender, e) =>
     {
         if ((Opacity += 0.08d) == 1) timer.Stop();
     });
     timer.Interval = 5;
     timer.Start();
 }
Ejemplo n.º 2
0
 public Form_operator()
 {
     price = new DataSet1TableAdapters.PriceTableAdapter();
     screen.X=Screen.PrimaryScreen.Bounds.Width;
     screen.Y = Screen.PrimaryScreen.Bounds.Height;
     user = new DataSet1TableAdapters.UserQuerry1TableAdapter();
     userInfo = new DataSet1TableAdapters.UserInfoTableAdapter();
     InitializeComponent();
     Opacity = 0;
     Timer timer = new Timer();
     Price = new User();
     timer.Tick += new EventHandler((sender, e) =>
     {
         if ((Opacity += 0.08d) >= 1) timer.Stop();
     });
     timer.Interval = 5;
     timer.Start();
 }
Ejemplo n.º 3
0
        public Form_change_price(Form_operator form)
        {
            form_operator = form;
            InitializeComponent();
            price   = new DataSet1TableAdapters.PriceTableAdapter();
            Opacity = 0;
            Timer timer = new Timer();

            timer.Tick += new EventHandler((sender, e) =>
            {
                if ((Opacity += 0.08d) == 1)
                {
                    timer.Stop();
                }
            });
            timer.Interval = 5;
            timer.Start();
        }
Ejemplo n.º 4
0
        public Form_operator()
        {
            price    = new DataSet1TableAdapters.PriceTableAdapter();
            screen.X = Screen.PrimaryScreen.Bounds.Width;
            screen.Y = Screen.PrimaryScreen.Bounds.Height;
            user     = new DataSet1TableAdapters.UserQuerry1TableAdapter();
            userInfo = new DataSet1TableAdapters.UserInfoTableAdapter();
            InitializeComponent();
            Opacity = 0;
            Timer timer = new Timer();

            Price       = new User();
            timer.Tick += new EventHandler((sender, e) =>
            {
                if ((Opacity += 0.08d) >= 1)
                {
                    timer.Stop();
                }
            });
            timer.Interval = 5;
            timer.Start();
        }
Ejemplo n.º 5
0
 private void tryBox()
 {
     try
     {
         double price;
         price    = Double.Parse(textBox_price.Text);
         tryPrice = true;
         if (price < 0)
         {
             MessageBox.Show("Цена за минуту не может быть отрицательной!");
             tryPrice = false;
         }
         if (price > 10000)
         {
             MessageBox.Show("Цена за минуту не может быть больше 10000");
             tryPrice = false;
         }
     }
     catch
     {
         tryPrice = false;
         MessageBox.Show("Цена за минуту не может быть пустым!");
     }
 }
 private void tryBox()
 {
     try
     {
         double price;
         price = Double.Parse(textBox_price.Text);
         tryPrice = true;
         if (price < 0)
         {
             MessageBox.Show("Цена за минуту не может быть отрицательной!");
             tryPrice = false;
         }
         if (price > 10000)
         {
             MessageBox.Show("Цена за минуту не может быть больше 10000");
             tryPrice = false;
         }
     }
     catch
     {
         tryPrice = false;
         MessageBox.Show("Цена за минуту не может быть пустым!");
     }
 }