Esempio n. 1
0
        private void add_Click(object sender, EventArgs e)
        {
            AddNewDriver addNewDriver = new AddNewDriver();

            if (addNewDriver.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadDrivers();
            }
        }
Esempio n. 2
0
        private ToolStripMenuItem CreateAddDriver()
        {
            ToolStripMenuItem item = CreateItem("Добавить водителя");

            item.Click += delegate
            {
                AddNewDriver addNewDriver = new AddNewDriver();
                if (addNewDriver.ShowDialog() == DialogResult.OK)
                {
                    _mainStatus.Set(_mainStatus.Get());
                }
            };
            return(item);
        }
Esempio n. 3
0
 private ToolStripMenuItem CreateAddDriver()
 {
     ToolStripMenuItem item = CreateItem("Добавить водителя");
     item.Click += delegate
     {
         AddNewDriver addNewDriver = new AddNewDriver();
         if (addNewDriver.ShowDialog() == DialogResult.OK)
             _mainStatus.Set(_mainStatus.Get());
     };
     return item;
 }
Esempio n. 4
0
 private void add_Click(object sender, EventArgs e)
 {
     AddNewDriver addNewDriver = new AddNewDriver();
     if (addNewDriver.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         loadDrivers();
 }