예제 #1
0
        /// <summary>
        /// ON BTN ADD CLICK OPEN A FORM TO ADD A NEW VEHICLE
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAddVehicle_Click(object sender, RoutedEventArgs e)
        {
            Form_Vehicle form_Vehicle = new Form_Vehicle();

            form_Vehicle.ShowDialog();
            UpdateList();
        }
예제 #2
0
 /// <summary>
 /// ON BTN EDIT CLICK OPEN THE VEHICLE FORM TO UPDATE ITS INFORMATION
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void EditVehicleButton_Click(object sender, RoutedEventArgs e)
 {
     if (lvVehicleList.SelectedItem != null)
     {
         Form_Vehicle form_Vehicle = new Form_Vehicle((Vehicle)lvVehicleList.SelectedItem);
         form_Vehicle.ShowDialog();
         UpdateList();
     }
 }