/// <summary>
        /// プラグイン実行
        /// </summary>
        public override CommandResult InternalExecute(ICommandTarget target, params Poderosa.IAdaptable[] args)
        {
            // モードレス表示
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
            Form = new BroadcastCommandForm(window);
            Form.Show();
            return CommandResult.Succeeded;

            /*
            // モーダル表示
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
            BroadcastCommandForm Form = new BroadcastCommandForm(window);
            if (Form.ShowDialog(window.AsForm()) == DialogResult.OK) {
                return CommandResult.Succeeded;
            } else {
                return CommandResult.Cancelled;
            }
             */
        }
示例#2
0
        /// <summary>
        /// プラグイン実行
        /// </summary>
        public override CommandResult InternalExecute(ICommandTarget target, params Poderosa.IAdaptable[] args)
        {
            // モードレス表示
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);

            Form = new BroadcastCommandForm(window);
            Form.Show();
            return(CommandResult.Succeeded);

            /*
             * // モーダル表示
             * IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
             * BroadcastCommandForm Form = new BroadcastCommandForm(window);
             * if (Form.ShowDialog(window.AsForm()) == DialogResult.OK) {
             *  return CommandResult.Succeeded;
             * } else {
             *  return CommandResult.Cancelled;
             * }
             */
        }