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; }
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); } }