예제 #1
0
 private static CommandResult CmdCommentLog(ICommandTarget target) {
     ITerminalSession s = AsTerminalSession(target);
     if (s == null)
         return CommandResult.Ignored;
     CommentLog dlg = new CommentLog(s);
     if (dlg.ShowDialog(s.OwnerWindow.AsForm()) == DialogResult.OK) {
         return CommandResult.Succeeded;
     }
     else
         return CommandResult.Cancelled;
 }
예제 #2
0
        private static CommandResult CmdCommentLog(ICommandTarget target)
        {
            ITerminalSession s = AsTerminalSession(target);

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

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