void RobotHandyUi_Closing(object sender, System.ComponentModel.CancelEventArgs e) { AcceptDialogUi ui = new AcceptDialogUi(OsLocalization.Trader.Label48); ui.ShowDialog(); if (ui.UserAcceptActioin == false) { e.Cancel = true; } ServerMaster.AbortAll(); }
void RobotUi_Closing(object sender, System.ComponentModel.CancelEventArgs e) { AcceptDialogUi ui = new AcceptDialogUi("Вы собираетесь закрыть программу. Вы уверены?"); ui.ShowDialog(); if (ui.UserAcceptActioin == false) { e.Cancel = true; return; } ServerMaster.AbortAll(); }
void RobotUi_Closing(object sender, System.ComponentModel.CancelEventArgs e) { ServerMaster.AbortAll(); }