Ejemplo n.º 1
0
        /// <summary>
        /// Удаление водителя.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1DelDriver_Click(object sender, EventArgs e)
        {
            DriverClass DriverToDelete = new DriverClass();

            DriverToDelete = (DriverClass)listBox2Driver.SelectedItem;
            DriverToDelete.DeleteDriver();
            ListDeletePhoto.Add(DriverToDelete.PhotoDriver);

            UpdateDriversListbox();
            ClearDriverPanel();

            listBox1DriverForOrder.Items.Clear();
        }