Beispiel #1
0
        private void add_Click(object sender, EventArgs e)
        {
            AddNewDriver addNewDriver = new AddNewDriver();

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

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