Exemplo n.º 1
0
 private static CommandResult CmdChangeLog(ICommandTarget target) {
     ITerminalSession s = AsTerminalSession(target);
     if (s == null)
         return CommandResult.Ignored;
     ChangeLog dlg = new ChangeLog(s);
     if (dlg.ShowDialog(s.OwnerWindow.AsForm()) == DialogResult.OK) {
         return CommandResult.Succeeded;
     }
     else
         return CommandResult.Cancelled;
 }
Exemplo n.º 2
0
        private static CommandResult CmdChangeLog(ICommandTarget target)
        {
            ITerminalSession s = AsTerminalSession(target);

            if (s == null)
            {
                return(CommandResult.Ignored);
            }
            ChangeLog dlg = new ChangeLog(s);

            if (dlg.ShowDialog(s.OwnerWindow.AsForm()) == DialogResult.OK)
            {
                return(CommandResult.Succeeded);
            }
            else
            {
                return(CommandResult.Cancelled);
            }
        }