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

            if (addNewDriver.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadDrivers();
            }
        }
示例#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);
        }
示例#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;
 }
示例#4
0
 private void add_Click(object sender, EventArgs e)
 {
     AddNewDriver addNewDriver = new AddNewDriver();
     if (addNewDriver.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         loadDrivers();
 }