private void Bt_Clear_Click(object sender, RoutedEventArgs e) { MessageBoxResult res = MessageBox.Show(Constants.msgClearingList, Constants.headerClearingList, MessageBoxButton.YesNo); if (res == MessageBoxResult.No) { return; } company = new AirCompany(); ShowTable(); AirCompany.WriteFile(company); }
private void Window_Closed(object sender, EventArgs e) { AirCompany.WriteFile(company); }