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(); }
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(); }
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(); }
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(); }
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("Цена за минуту не может быть пустым!"); } }