Inheritance: GladeDialog
Exemple #1
0
        private void AskAcceptKey(Network network, ReceivedKeyEventArgs args,
                                  AutoResetEvent receiveKeyWait,
                                  ref bool acceptKey)
        {
            try {
                AcceptKeyDialog dialog   = new AcceptKeyDialog(network, args);
                int             response = dialog.Run();

                acceptKey = (response == (int)ResponseType.Ok);

                receiveKeyWait.Set();
            } catch (Exception ex) {
                Core.LoggingService.LogError(ex);
                Gui.ShowErrorDialog(ex.ToString(), Gui.MainWindow.Window);
            }
        }
        private void AskAcceptKey(Network network, ReceivedKeyEventArgs args, 
		                           AutoResetEvent receiveKeyWait, 
		                           ref bool acceptKey)
        {
            try {
                AcceptKeyDialog dialog = new AcceptKeyDialog(network, args);
                int response = dialog.Run();

                acceptKey = (response == (int)ResponseType.Ok);

                receiveKeyWait.Set ();

            } catch (Exception ex) {
                LoggingService.LogError(ex);
                Gui.ShowErrorDialog (ex.ToString(), Gui.MainWindow.Window);
            }
        }