Esempio n. 1
0
        /// <summary>
        /// オブジェクト各値設定
        /// </summary>
        private void InitializeComponentValue()
        {
            // テキスト
            this.Text                      = BroadcastCommandPlugin.Strings.GetString("Caption.BroadcastCommand");
            this._okButton.Text            = BroadcastCommandPlugin.Strings.GetString("Common.OK");
            this._cancelButton.Text        = BroadcastCommandPlugin.Strings.GetString("Common.Cancel");
            this._logButton.Text           = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._logButton.Show");
            this._refreshListButton.Text   = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._refreshListButton");
            this._commandClearButton.Text  = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._commandClearButton");
            this._listAllSelectButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._listAllSelectButton.Check");
            this._repeatCountLabel.Text    = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._repeatCountLabel");
            this._repeatIntervalLabel.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._repeatIntervalLabel");
            this._tabNumberColumn.Text     = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._tabNumberColumn");
            this._hostNameColumn.Text      = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._hostNameColumn");
            this._alwaysOnTopCheck.Text    = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._alwaysOnTopCheck");
            this._notSendNewLineCheck.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._notSendNewLine");
            this._clearBufferButton.Text   = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._clearBufferButton");
            this._sendNewLineButton.Text   = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._sendNewLineButton");
            this._sendCtrlCButton.Text     = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._sendCtrlCButton");
            this._sendCtrlDButton.Text     = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._sendCtrlDButton");

            // デフォルト値
            this.Width           = FORM_WIDTH_LOG_HIDE;
            this._logBox.Visible = false;
            this._commandBox.Clear();
            this._okButton.Enabled          = false;
            this._clearBufferButton.Enabled = false;
            this._sendNewLineButton.Enabled = false;
            this._sendCtrlCButton.Enabled   = false;
            this._repeatCountBox.Value      = 1;
            this._repeatIntervalBox.Value   = 1000;
            this._repeatIntervalBox.Enabled = false;
            this._alwaysOnTopCheck.Checked  = true;

            // セッションリストカラム幅
            this._tabNumberColumn.Width = -2;
            this._hostNameColumn.Width  = -2;

            // セッションリストソートイベント作成/設定
            _listViewItemSorter             = new ListViewItemComparer();
            _listViewItemSorter.ColumnModes = new ListViewItemComparer.ComparerMode[] {
                ListViewItemComparer.ComparerMode.Integer,
                ListViewItemComparer.ComparerMode.String,
            };
            _sessionListView.ListViewItemSorter = _listViewItemSorter;
        }
        /// <summary>
        /// オブジェクト各値設定
        /// </summary>
        private void InitializeComponentValue()
        {
            // テキスト
            this.Text = BroadcastCommandPlugin.Strings.GetString("Caption.BroadcastCommand");
            this._okButton.Text = BroadcastCommandPlugin.Strings.GetString("Common.OK");
            this._cancelButton.Text = BroadcastCommandPlugin.Strings.GetString("Common.Cancel");
            this._logButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._logButton.Show");
            this._refreshListButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._refreshListButton");
            this._commandClearButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._commandClearButton");
            this._listAllSelectButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._listAllSelectButton.Check");
            this._repeatCountLabel.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._repeatCountLabel");
            this._repeatIntervalLabel.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._repeatIntervalLabel");
            this._tabNumberColumn.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._tabNumberColumn");
            this._hostNameColumn.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._hostNameColumn");
            this._alwaysOnTopCheck.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._alwaysOnTopCheck");
            this._notSendNewLineCheck.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._notSendNewLine");
            this._clearBufferButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._clearBufferButton");
            this._sendNewLineButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._sendNewLineButton");
            this._sendCtrlCButton.Text = BroadcastCommandPlugin.Strings.GetString("Form.BroadcastCommand._sendCtrlCButton");

            // デフォルト値
            this.Width = FORM_WIDTH_LOG_HIDE;
            this._logBox.Visible = false;
            this._commandBox.Clear();
            this._okButton.Enabled = false;
            this._clearBufferButton.Enabled = false;
            this._sendNewLineButton.Enabled = false;
            this._sendCtrlCButton.Enabled = false;
            this._repeatCountBox.Value = 1;
            this._repeatIntervalBox.Value = 1000;
            this._repeatIntervalBox.Enabled = false;
            this._alwaysOnTopCheck.Checked = true;

            // セッションリストカラム幅
            this._tabNumberColumn.Width = -2;
            this._hostNameColumn.Width = -2;

            // セッションリストソートイベント作成/設定
            _listViewItemSorter = new ListViewItemComparer();
            _listViewItemSorter.ColumnModes = new ListViewItemComparer.ComparerMode[] {
                ListViewItemComparer.ComparerMode.Integer,
                ListViewItemComparer.ComparerMode.String,
            };
            _sessionListView.ListViewItemSorter = _listViewItemSorter;
        }