コード例 #1
0
 void disposeFlight()
 {
     if (currentFlight != null)
     {
         currentFlight.stop(connection);
         currentFlight = null;
     }
     cargoView.Rows.Clear();
     currentState = FSECONOMY_STATES.IDLE;
     connection.MenuDeleteSubItem(EVENTS.MENU1, EVENTS.MENU3);
     connection.MenuAddSubItem(EVENTS.MENU1, "Start flight", EVENTS.MENU2, 0);
 }