예제 #1
0
        /// <summary>
        /// メインウィンドウ表示コマンド
        /// </summary>
        /// <param name="target">CommandTarget</param>
        private static CommandResult MainWindow(ICommandTarget target)
        {
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);

            if (window != null)
            {
                ConnectProfileForm Form = new ConnectProfileForm();
                if (Form.ShowDialog(window.AsForm()) == DialogResult.OK)
                {
                    return(CommandResult.Succeeded);
                }
            }
            return(CommandResult.Cancelled);
        }
 /// <summary>
 /// メインウィンドウ表示コマンド
 /// </summary>
 /// <param name="target">CommandTarget</param>
 private static CommandResult MainWindow(ICommandTarget target)
 {
     IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
     if (window != null) {
         ConnectProfileForm Form = new ConnectProfileForm();
         if (Form.ShowDialog(window.AsForm()) == DialogResult.OK) {
             return CommandResult.Succeeded;
         }
     }
     return CommandResult.Cancelled;
 }