Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 void RobotUi_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ServerMaster.AbortAll();
 }