public ServerInfo(TerminalConnection con) { // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); // // _serverNamesBox.Text = con.ServerName; _IPAddressBox.Text = con.ServerAddress == null? "" : con.ServerAddress.ToString(); _protocolBox.Text = con.ProtocolDescription; _parameterBox.Lines = con.ConnectionParameter; _terminalTypeBox.Text = EnumDescAttributeT.For(typeof(TerminalType)).GetDescription(con.Param.TerminalType); string li = EnumDescAttributeT.For(typeof(LogType)).GetDescription(con.LogType); if (con.LogType != LogType.None) { li += "(" + con.LogPath + ")"; } _logBox.Text = li; _receiveBytes.Text = String.Format("{0,10}{1}", con.ReceivedDataSize, GApp.Strings.GetString("Caption.ServerInfo.BytesReceived")); _transmitBytes.Text = String.Format("{0,10}{1}", con.SentDataSize, GApp.Strings.GetString("Caption.ServerInfo.BytesSent")); this._okButton.Text = GApp.Strings.GetString("Common.OK"); this._serverNamesLabel.Text = GApp.Strings.GetString("Form.ServerInfo._serverNamesLabel"); this._IPAddressLabel.Text = GApp.Strings.GetString("Form.ServerInfo._IPAddressLabel"); this._protocolLabel.Text = GApp.Strings.GetString("Form.ServerInfo._protocolLabel"); this._terminalTypeLabel.Text = GApp.Strings.GetString("Form.ServerInfo._terminalTypeLabel"); this._parameterLabel.Text = GApp.Strings.GetString("Form.ServerInfo._parameterLabel"); this._statsLabel.Text = GApp.Strings.GetString("Form.ServerInfo._statsLabel"); this._logLabel.Text = GApp.Strings.GetString("Form.ServerInfo._logLabel"); this.Text = GApp.Strings.GetString("Form.ServerInfo.Text"); }
public static EnumDescAttribute For(Type type) { EnumDescAttribute a = _typeToAttr[type] as EnumDescAttribute; if (a == null) { a = (EnumDescAttribute)(type.GetCustomAttributes(typeof(EnumDescAttribute), false)[0]); _typeToAttr.Add(type, a); } return(a); }
private void InitUI() { _hostBox.Text = _terminalParam.Host; _methodBox.Text = _terminalParam.Method.ToString(); if (_terminalParam.Port != 22) { _methodBox.Text += String.Format(GApp.Strings.GetString("Caption.SSHShortcutLoginDialog.NotStandardPort"), _terminalParam.Port); } _accountBox.Text = _terminalParam.Account; _authTypeBox.Text = EnumDescAttributeT.For(typeof(AuthType)).GetDescription(_terminalParam.AuthType); _encodingBox.Text = EnumDescAttributeT.For(typeof(EncodingType)).GetDescription(_terminalParam.EncodingProfile.Type); if (_terminalParam.AuthType == AuthType.Password) { _privateKeyBox.Enabled = false; _privateKeySelect.Enabled = false; } else if (_terminalParam.AuthType == AuthType.PublicKey) { _privateKeyBox.Text = _terminalParam.IdentityFile; } else if (_terminalParam.AuthType == AuthType.KeyboardInteractive) { _privateKeyBox.Enabled = false; _privateKeySelect.Enabled = false; _passphraseBox.Enabled = false; } _passphraseBox.Text = _terminalParam.Passphrase; StringCollection c = GApp.ConnectionHistory.LogPaths; foreach (string p in c) { _logFileBox.Items.Add(p); } if (GApp.Options.DefaultLogType != LogType.None) { _logTypeBox.SelectedIndex = (int)GApp.Options.DefaultLogType; string t = GUtil.CreateLogFileName(_terminalParam.Host); _logFileBox.Items.Add(t); _logFileBox.Text = t; } else { _logTypeBox.SelectedIndex = 0; } AdjustUI(); }
private void OnOK(object sender, EventArgs args) { this.DialogResult = DialogResult.None; if (_homeDirectoryBox.Text.Length == 0) { GUtil.Warning(this, GApp.Strings.GetString("Message.CygwinLoginDialog.EmptyHomeDirectory")); } else if (_shellBox.Text.Length == 0) { GUtil.Warning(this, GApp.Strings.GetString("Message.CygwinLoginDialog.EmptyShell")); } _param.LogType = (LogType)EnumDescAttributeT.For(typeof(LogType)).FromDescription(_logTypeBox.Text, LogType.None); if (_param.LogType != LogType.None) { _param.LogPath = _logFileBox.Text; LogFileCheckResult r = GCUtil.CheckLogFileName(_param.LogPath, this); if (r == LogFileCheckResult.Cancel || r == LogFileCheckResult.Error) { return; } _param.LogAppend = (r == LogFileCheckResult.Append); } _param.Home = _homeDirectoryBox.Text; _param.Shell = _shellBox.Text; _okButton.Enabled = false; _cancelButton.Enabled = false; this.Cursor = Cursors.WaitCursor; _savedHWND = this.Handle; if (_param is CygwinTerminalParam) { this.Text = GApp.Strings.GetString("Caption.CygwinLoginDialog.ConnectingCygwin"); } else { this.Text = GApp.Strings.GetString("Caption.CygwinLoginDialog.ConnectingSFU"); } _connector = CygwinUtil.AsyncPrepareSocket(this, _param); if (_connector == null) { ClearConnectingState(); } }
private SSHTerminalParam ValidateContent() { SSHTerminalParam p = _terminalParam; string msg = null; try { p.LogType = (LogType)EnumDescAttributeT.For(typeof(LogType)).FromDescription(_logTypeBox.Text, LogType.None); if (p.LogType != LogType.None) { p.LogPath = _logFileBox.Text; LogFileCheckResult r = GCUtil.CheckLogFileName(p.LogPath, this); if (r == LogFileCheckResult.Cancel || r == LogFileCheckResult.Error) { return(null); } p.LogAppend = (r == LogFileCheckResult.Append); } if (p.AuthType == AuthType.PublicKey) { if (!File.Exists(_privateKeyBox.Text)) { msg = GApp.Strings.GetString("Message.SSHShortcutLoginDialog.KeyFileNotExist"); } else { p.IdentityFile = _privateKeyBox.Text; } } if (msg != null) { GUtil.Warning(this, msg); return(null); } else { return(p); } } catch (Exception ex) { GUtil.Warning(this, ex.Message); return(null); } }
private void EnableValidControls() { bool ssh = _methodBox.Text != "Telnet"; bool pubkey = _authOptions.SelectedIndex == (int)AuthType.PublicKey; bool kbd = _authOptions.SelectedIndex == (int)AuthType.KeyboardInteractive; _userNameBox.Enabled = ssh; _authOptions.Enabled = ssh; _passphraseBox.Enabled = ssh && (pubkey || !kbd); _privateKeyFile.Enabled = ssh && pubkey; _privateKeySelect.Enabled = ssh && pubkey; bool e = ((LogType)EnumDescAttributeT.For(typeof(LogType)).FromDescription(_logTypeBox.Text, LogType.None) != LogType.None); _logFileBox.Enabled = e; _selectLogButton.Enabled = e; }
private SerialTerminalParam ValidateParam() { SerialTerminalParam p = new SerialTerminalParam(); try { p.LogType = (LogType)EnumDescAttributeT.For(typeof(LogType)).FromDescription(_logTypeBox.Text, LogType.None); if (p.LogType != LogType.None) { p.LogPath = _logFileBox.Text; if (p.LogPath == GUtil.CreateLogFileName(null)) { p.LogPath = GUtil.CreateLogFileName(String.Format("com{0}", _portBox.SelectedIndex + 1)); } LogFileCheckResult r = GCUtil.CheckLogFileName(p.LogPath, this); if (r == LogFileCheckResult.Cancel || r == LogFileCheckResult.Error) { return(null); } p.LogAppend = (r == LogFileCheckResult.Append); } p.Port = _portBox.SelectedIndex + 1; p.BaudRate = Int32.Parse(_baudRateBox.Text); p.ByteSize = (byte)(_dataBitsBox.SelectedIndex == 0? 7 : 8); p.StopBits = (StopBits)_stopBitsBox.SelectedIndex; p.Parity = (Parity)_parityBox.SelectedIndex; p.FlowControl = (FlowControl)_flowControlBox.SelectedIndex; p.EncodingProfile = EncodingProfile.Get((EncodingType)_encodingBox.SelectedIndex); p.LocalEcho = _localEchoBox.SelectedIndex == 1; p.TransmitNL = (NewLine)EnumDescAttributeT.For(typeof(NewLine)).FromDescription(_newLineBox.Text, LogType.None); p.TransmitDelayPerChar = Int32.Parse(_transmitDelayPerCharBox.Text); p.TransmitDelayPerLine = Int32.Parse(_transmitDelayPerLineBox.Text); return(p); } catch (Exception ex) { GUtil.Warning(this, ex.Message); return(null); } }
private void FillText() { this._colorFontGroup.Text = GApp.Strings.GetString("Form.OptionDialog._colorFontGroup"); this._bgColorLabel.Text = GApp.Strings.GetString("Form.OptionDialog._bgColorLabel"); this._textColorLabel.Text = GApp.Strings.GetString("Form.OptionDialog._textColorLabel"); this._editColorEscapeSequence.Text = GApp.Strings.GetString("Form.OptionDialog._editEscapeSequenceColorBox"); this._fontLabel.Text = GApp.Strings.GetString("Form.OptionDialog._fontLabel"); this._fontSample.Text = GApp.Strings.GetString("Common.FontSample"); this._fontSelectButton.Text = GApp.Strings.GetString("Form.OptionDialog._fontSelectButton"); this._backgroundImageLabel.Text = GApp.Strings.GetString("Form.OptionDialog._backgroundImageLabel"); this._imageStyleLabel.Text = GApp.Strings.GetString("Form.OptionDialog._imageStyleLabel"); this._applyRenderProfileButton.Text = GApp.Strings.GetString("Form.OptionDialog._applyRenderProfileButton"); this._caretGroup.Text = GApp.Strings.GetString("Form.OptionDialog._caretGroup"); this._caretStyleLabel.Text = GApp.Strings.GetString("Form.OptionDialog._caretStyleLabel"); this._caretSpecifyColor.Text = GApp.Strings.GetString("Form.OptionDialog._caretSpecifyColor"); this._caretColorLabel.Text = GApp.Strings.GetString("Form.OptionDialog._caretColorLabel"); this._caretBlink.Text = GApp.Strings.GetString("Form.OptionDialog._caretBlink"); _imageStyleBox.Items.AddRange(EnumDescAttributeT.For(typeof(ImageStyle)).DescriptionCollection()); }
private void InitializeText() { this._hostLabel.Text = GApp.Strings.GetString("Form.LoginDialog._hostLabel"); this._portLabel.Text = GApp.Strings.GetString("Form.LoginDialog._portLabel"); this._methodLabel.Text = GApp.Strings.GetString("Form.LoginDialog._methodLabel"); this._sshGroup.Text = GApp.Strings.GetString("Form.LoginDialog._sshGroup"); this._privateKeyLabel.Text = GApp.Strings.GetString("Form.LoginDialog._privateKeyLabel"); this._authenticationLabel.Text = GApp.Strings.GetString("Form.LoginDialog._authenticationLabel"); this._passphraseLabel.Text = GApp.Strings.GetString("Form.LoginDialog._passphraseLabel"); this._usernameLabel.Text = GApp.Strings.GetString("Form.LoginDialog._usernameLabel"); this._terminalGroup.Text = GApp.Strings.GetString("Form.LoginDialog._terminalGroup"); this._localEchoLabel.Text = GApp.Strings.GetString("Form.LoginDialog._localEchoLabel"); this._newLineLabel.Text = GApp.Strings.GetString("Form.LoginDialog._newLineLabel"); this._logFileLabel.Text = GApp.Strings.GetString("Form.LoginDialog._logFileLabel"); this._encodingLabel.Text = GApp.Strings.GetString("Form.LoginDialog._encodingLabel"); this._logTypeLabel.Text = GApp.Strings.GetString("Form.LoginDialog._logTypeLabel"); this._terminalTypeLabel.Text = GApp.Strings.GetString("Form.LoginDialog._terminalTypeLabel"); this._loginButton.Text = GApp.Strings.GetString("Common.OK"); this._cancelButton.Text = GApp.Strings.GetString("Common.Cancel"); this.Text = GApp.Strings.GetString("Form.LoginDialog.Text"); _authOptions.Items.AddRange(EnumDescAttributeT.For(typeof(AuthType)).DescriptionCollection()); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// </summary> private void InitializeComponent() { this._okButton = new System.Windows.Forms.Button(); this._cancelButton = new System.Windows.Forms.Button(); this._logTypeBox = new ComboBox(); this._logTypeLabel = new System.Windows.Forms.Label(); this._logFileBox = new ComboBox(); this._logFileLabel = new System.Windows.Forms.Label(); this._selectlogButton = new Button(); this._advancedOptionCheck = new CheckBox(); this._advancedOptionGroup = new GroupBox(); this._homeDirectoryLabel = new System.Windows.Forms.Label(); this._homeDirectoryBox = new System.Windows.Forms.TextBox(); this._shellLabel = new System.Windows.Forms.Label(); this._shellBox = new System.Windows.Forms.TextBox(); this._lMessage = new System.Windows.Forms.Label(); this.SuspendLayout(); // // _okButton // this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK; this._okButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._okButton.Location = new System.Drawing.Point(144, 176); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 0; this._okButton.Click += new System.EventHandler(this.OnOK); // // _cancelButton // this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this._cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._cancelButton.Location = new System.Drawing.Point(232, 176); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 1; // // _logTypeLabel // this._logTypeLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logTypeLabel.Location = new System.Drawing.Point(8, 8); this._logTypeLabel.Name = "_logTypeLabel"; this._logTypeLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logTypeLabel.Size = new System.Drawing.Size(80, 16); this._logTypeLabel.TabIndex = 2; this._logTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logTypeBox // this._logTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); this._logTypeBox.Location = new System.Drawing.Point(104, 8); this._logTypeBox.Name = "_logTypeBox"; this._logTypeBox.Size = new System.Drawing.Size(96, 20); this._logTypeBox.TabIndex = 3; this._logTypeBox.SelectionChangeCommitted += new System.EventHandler(this.OnLogTypeChanged); // // _logFileLabel // this._logFileLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logFileLabel.Location = new System.Drawing.Point(8, 32); this._logFileLabel.Name = "_logFileLabel"; this._logFileLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logFileLabel.Size = new System.Drawing.Size(88, 16); this._logFileLabel.TabIndex = 4; this._logFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logFileBox // this._logFileBox.Location = new System.Drawing.Point(104, 32); this._logFileBox.Name = "_logFileBox"; this._logFileBox.Size = new System.Drawing.Size(160, 20); this._logFileBox.TabIndex = 5; // // _selectlogButton // this._selectlogButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._selectlogButton.ImageIndex = 0; this._selectlogButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._selectlogButton.Location = new System.Drawing.Point(272, 32); this._selectlogButton.Name = "_selectlogButton"; this._selectlogButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._selectlogButton.Size = new System.Drawing.Size(19, 19); this._selectlogButton.TabIndex = 6; this._selectlogButton.Text = "..."; this._selectlogButton.Click += new System.EventHandler(this.SelectLog); // // _advancedOptionCheck // this._advancedOptionCheck.Location = new System.Drawing.Point(20, 56); this._advancedOptionCheck.Size = new System.Drawing.Size(152, 20); this._advancedOptionCheck.TabIndex = 7; this._advancedOptionCheck.FlatStyle = FlatStyle.System; this._advancedOptionCheck.CheckedChanged += new EventHandler(OnAdvancedOptionCheckedChanged); // // _advancedOptionGroup // this._advancedOptionGroup.Location = new System.Drawing.Point(8, 58); this._advancedOptionGroup.Size = new System.Drawing.Size(300, 110); this._advancedOptionGroup.TabIndex = 8; this._advancedOptionGroup.Enabled = false; this._advancedOptionGroup.FlatStyle = FlatStyle.System; // // _homeDirectoryLabel // this._homeDirectoryLabel.Location = new System.Drawing.Point(8, 24); this._homeDirectoryLabel.Name = "_homeDirectoryLabel"; this._homeDirectoryLabel.Size = new System.Drawing.Size(112, 23); this._homeDirectoryLabel.TabIndex = 9; this._homeDirectoryLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _homeDirectoryBox // this._homeDirectoryBox.Location = new System.Drawing.Point(120, 24); this._homeDirectoryBox.Name = "_homeDirectoryBox"; this._homeDirectoryBox.Size = new System.Drawing.Size(172, 19); this._homeDirectoryBox.TabIndex = 10; this._homeDirectoryBox.Text = ""; // // _shellLabel // this._shellLabel.Location = new System.Drawing.Point(8, 48); this._shellLabel.Name = "_shellLabel"; this._shellLabel.TabIndex = 11; this._shellLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _shellBox // this._shellBox.Location = new System.Drawing.Point(120, 48); this._shellBox.Name = "_shellBox"; this._shellBox.Size = new System.Drawing.Size(172, 19); this._shellBox.TabIndex = 12; this._shellBox.Text = ""; // // _lMessage // this._lMessage.Location = new System.Drawing.Point(8, 72); this._lMessage.Name = "_lMessage"; this._lMessage.Size = new System.Drawing.Size(288, 32); this._lMessage.TabIndex = 6; this._lMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // CygwinLoginDialog // _advancedOptionGroup.Controls.Add(this._lMessage); _advancedOptionGroup.Controls.Add(this._shellBox); _advancedOptionGroup.Controls.Add(this._shellLabel); _advancedOptionGroup.Controls.Add(this._homeDirectoryBox); _advancedOptionGroup.Controls.Add(this._homeDirectoryLabel); this.AcceptButton = this._okButton; this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.CancelButton = this._cancelButton; this.ClientSize = new System.Drawing.Size(314, 208); this.Controls.Add(this._cancelButton); this.Controls.Add(this._okButton); this.Controls.Add(this._logTypeLabel); this.Controls.Add(this._logTypeBox); this.Controls.Add(this._logFileLabel); this.Controls.Add(this._logFileBox); this.Controls.Add(this._selectlogButton); this.Controls.Add(this._advancedOptionCheck); this.Controls.Add(this._advancedOptionGroup); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "CygwinLoginDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.ResumeLayout(false); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); /// </summary> private void InitializeComponent() { this._privateKeyBox = new TextBox(); this._privateKeyLabel = new System.Windows.Forms.Label(); this._passphraseBox = new TextBox(); this._passphraseLabel = new System.Windows.Forms.Label(); this._privateKeySelect = new Button(); this._logFileBox = new ComboBox(); this._logFileLabel = new System.Windows.Forms.Label(); this._selectlogButton = new Button(); this._cancelButton = new System.Windows.Forms.Button(); this._loginButton = new System.Windows.Forms.Button(); this._hostLabel = new System.Windows.Forms.Label(); this._hostBox = new System.Windows.Forms.Label(); this._methodLabel = new System.Windows.Forms.Label(); this._methodBox = new System.Windows.Forms.Label(); this._accountLabel = new System.Windows.Forms.Label(); this._accountBox = new System.Windows.Forms.Label(); this._authTypeLabel = new System.Windows.Forms.Label(); this._authTypeBox = new System.Windows.Forms.Label(); this._encodingLabel = new System.Windows.Forms.Label(); this._encodingBox = new System.Windows.Forms.Label(); this._logTypeBox = new ComboBox(); this._logTypeLabel = new System.Windows.Forms.Label(); this.SuspendLayout(); // // _privateKeyBox // this._privateKeyBox.Location = new System.Drawing.Point(104, 128); this._privateKeyBox.Name = "_privateKeyBox"; this._privateKeyBox.Size = new System.Drawing.Size(160, 19); this._privateKeyBox.TabIndex = 3; this._privateKeyBox.Text = ""; // // _privateKeyLabel // this._privateKeyLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._privateKeyLabel.Location = new System.Drawing.Point(8, 128); this._privateKeyLabel.Name = "_privateKeyLabel"; this._privateKeyLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._privateKeyLabel.Size = new System.Drawing.Size(72, 16); this._privateKeyLabel.TabIndex = 2; this._privateKeyLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _passphraseBox // this._passphraseBox.Location = new System.Drawing.Point(104, 104); this._passphraseBox.Name = "_passphraseBox"; this._passphraseBox.PasswordChar = '*'; this._passphraseBox.Size = new System.Drawing.Size(184, 19); this._passphraseBox.TabIndex = 1; this._passphraseBox.Text = ""; // // _passphraseLabel // this._passphraseLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._passphraseLabel.Location = new System.Drawing.Point(8, 104); this._passphraseLabel.Name = "_passphraseLabel"; this._passphraseLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._passphraseLabel.Size = new System.Drawing.Size(80, 16); this._passphraseLabel.TabIndex = 0; this._passphraseLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _privateKeySelect // this._privateKeySelect.FlatStyle = System.Windows.Forms.FlatStyle.System; this._privateKeySelect.ImageIndex = 0; this._privateKeySelect.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._privateKeySelect.Location = new System.Drawing.Point(272, 128); this._privateKeySelect.Name = "_privateKeySelect"; this._privateKeySelect.RightToLeft = System.Windows.Forms.RightToLeft.No; this._privateKeySelect.Size = new System.Drawing.Size(19, 19); this._privateKeySelect.TabIndex = 4; this._privateKeySelect.Text = "..."; this._privateKeySelect.Click += new System.EventHandler(this.OnOpenPrivateKey); // // _logFileBox // this._logFileBox.Location = new System.Drawing.Point(104, 176); this._logFileBox.Name = "_logFileBox"; this._logFileBox.Size = new System.Drawing.Size(160, 20); this._logFileBox.TabIndex = 8; // // _logFileLabel // this._logFileLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logFileLabel.Location = new System.Drawing.Point(8, 176); this._logFileLabel.Name = "_logFileLabel"; this._logFileLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logFileLabel.Size = new System.Drawing.Size(88, 16); this._logFileLabel.TabIndex = 7; this._logFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _selectlogButton // this._selectlogButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._selectlogButton.ImageIndex = 0; this._selectlogButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._selectlogButton.Location = new System.Drawing.Point(272, 176); this._selectlogButton.Name = "_selectlogButton"; this._selectlogButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._selectlogButton.Size = new System.Drawing.Size(19, 19); this._selectlogButton.TabIndex = 9; this._selectlogButton.Text = "..."; this._selectlogButton.Click += new System.EventHandler(this.SelectLog); // // _cancelButton // this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this._cancelButton.ImageIndex = 0; this._cancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._cancelButton.Location = new System.Drawing.Point(216, 208); this._cancelButton.Name = "_cancelButton"; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._cancelButton.Size = new System.Drawing.Size(72, 25); this._cancelButton.TabIndex = 11; // // _loginButton // this._loginButton.DialogResult = System.Windows.Forms.DialogResult.OK; this._loginButton.ImageIndex = 0; this._loginButton.FlatStyle = FlatStyle.System; this._loginButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._loginButton.Location = new System.Drawing.Point(128, 208); this._loginButton.Name = "_loginButton"; this._loginButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._loginButton.Size = new System.Drawing.Size(72, 25); this._loginButton.TabIndex = 10; this._loginButton.Click += new System.EventHandler(this.OnOK); // // _hostLabel // this._hostLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._hostLabel.Location = new System.Drawing.Point(8, 8); this._hostLabel.Name = "_hostLabel"; this._hostLabel.Size = new System.Drawing.Size(80, 16); this._hostLabel.TabIndex = 0; this._hostLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _hostBox // this._hostBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._hostBox.Location = new System.Drawing.Point(104, 8); this._hostBox.Name = "_hostBox"; this._hostBox.Size = new System.Drawing.Size(144, 16); this._hostBox.TabIndex = 35; this._hostBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _methodLabel // this._methodLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._methodLabel.Location = new System.Drawing.Point(8, 24); this._methodLabel.Name = "_methodLabel"; this._methodLabel.Size = new System.Drawing.Size(80, 16); this._methodLabel.TabIndex = 0; this._methodLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _methodBox // this._methodBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._methodBox.Location = new System.Drawing.Point(104, 24); this._methodBox.Name = "_methodBox"; this._methodBox.Size = new System.Drawing.Size(144, 16); this._methodBox.TabIndex = 0; this._methodBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _accountLabel // this._accountLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._accountLabel.Location = new System.Drawing.Point(8, 40); this._accountLabel.Name = "_accountLabel"; this._accountLabel.Size = new System.Drawing.Size(80, 16); this._accountLabel.TabIndex = 0; this._accountLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _accountBox // this._accountBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._accountBox.Location = new System.Drawing.Point(104, 40); this._accountBox.Name = "_accountBox"; this._accountBox.Size = new System.Drawing.Size(144, 16); this._accountBox.TabIndex = 0; this._accountBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _authTypeLabel // this._authTypeLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._authTypeLabel.Location = new System.Drawing.Point(8, 56); this._authTypeLabel.Name = "_authTypeLabel"; this._authTypeLabel.Size = new System.Drawing.Size(80, 16); this._authTypeLabel.TabIndex = 0; this._authTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _authTypeBox // this._authTypeBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._authTypeBox.Location = new System.Drawing.Point(104, 56); this._authTypeBox.Name = "_authTypeBox"; this._authTypeBox.Size = new System.Drawing.Size(144, 16); this._authTypeBox.TabIndex = 0; this._authTypeBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _encodingLabel // this._encodingLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._encodingLabel.Location = new System.Drawing.Point(8, 72); this._encodingLabel.Name = "_encodingLabel"; this._encodingLabel.Size = new System.Drawing.Size(80, 16); this._encodingLabel.TabIndex = 0; this._encodingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _encodingBox // this._encodingBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._encodingBox.Location = new System.Drawing.Point(104, 72); this._encodingBox.Name = "_encodingBox"; this._encodingBox.Size = new System.Drawing.Size(144, 16); this._encodingBox.TabIndex = 0; this._encodingBox.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logTypeBox // this._logTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); this._logTypeBox.Location = new System.Drawing.Point(104, 152); this._logTypeBox.Name = "_logTypeBox"; this._logTypeBox.Size = new System.Drawing.Size(96, 20); this._logTypeBox.TabIndex = 6; this._logTypeBox.SelectionChangeCommitted += new System.EventHandler(this.OnLogTypeChanged); // // _logTypeLabel // this._logTypeLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logTypeLabel.Location = new System.Drawing.Point(8, 152); this._logTypeLabel.Name = "_logTypeLabel"; this._logTypeLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logTypeLabel.Size = new System.Drawing.Size(80, 16); this._logTypeLabel.TabIndex = 5; this._logTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // SSHShortcutLoginDialog // this.AcceptButton = this._loginButton; this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.CancelButton = this._cancelButton; this.ClientSize = new System.Drawing.Size(298, 239); this.Controls.AddRange(new System.Windows.Forms.Control[] { this._logTypeBox, this._logTypeLabel, this._cancelButton, this._loginButton, this._logFileBox, this._logFileLabel, this._selectlogButton, this._hostLabel, this._hostBox, this._methodLabel, this._methodBox, this._accountLabel, this._accountBox, this._authTypeLabel, this._authTypeBox, this._encodingLabel, this._encodingBox, this._privateKeyBox, this._privateKeyLabel, this._passphraseBox, this._passphraseLabel, this._privateKeySelect }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SSHShortcutLoginDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.ResumeLayout(false); }
//入力内容に誤りがあればそれを警告してnullを返す。なければ必要なところを埋めたTCPTerminalParamを返す private TCPTerminalParam ValidateContent() { string msg = null; TCPTerminalParam p = null; SSHTerminalParam sp = null; try { ConnectionMethod m = ParseMethod(_methodBox.Text); if (m == ConnectionMethod.Telnet) { p = new TelnetTerminalParam(""); } else { p = sp = new SSHTerminalParam(ConnectionMethod.SSH2, "", "", ""); sp.Method = m; sp.Account = _userNameBox.Text; } p.Host = _hostBox.Text; try { p.Port = ParsePort(_portBox.Text); } catch (FormatException ex) { msg = ex.Message; } if (_hostBox.Text.Length == 0) { msg = GApp.Strings.GetString("Message.LoginDialog.HostIsEmpty"); } p.LogType = (LogType)EnumDescAttributeT.For(typeof(LogType)).FromDescription(_logTypeBox.Text, LogType.None); if (p.LogType != LogType.None) { p.LogPath = _logFileBox.Text; if (p.LogPath == GUtil.CreateLogFileName(null)) { p.LogPath = GUtil.CreateLogFileName(_hostBox.Text); } LogFileCheckResult r = GCUtil.CheckLogFileName(p.LogPath, this); if (r == LogFileCheckResult.Cancel || r == LogFileCheckResult.Error) { return(null); } p.LogAppend = (r == LogFileCheckResult.Append); } if (p.IsSSH) { Debug.Assert(sp != null); sp.AuthType = (AuthType)_authOptions.SelectedIndex; if (sp.AuthType == AuthType.PublicKey) { if (!File.Exists(_privateKeyFile.Text)) { msg = GApp.Strings.GetString("Message.LoginDialog.KeyFileNotExist"); } else { sp.IdentityFile = _privateKeyFile.Text; } } } p.EncodingProfile = EncodingProfile.Get((EncodingType)_encodingBox.SelectedIndex); p.LocalEcho = _localEchoBox.SelectedIndex == 1; p.TransmitNL = (NewLine)EnumDescAttributeT.For(typeof(NewLine)).FromDescription(_newLineBox.Text, NewLine.CR); p.TerminalType = (TerminalType)_terminalTypeBox.SelectedIndex; if (msg != null) { ShowError(msg); return(null); } else { return(p); } } catch (Exception ex) { GUtil.Warning(this, ex.Message); return(null); } }
private void InitializeComponent() { this._loginButton = new System.Windows.Forms.Button(); this._cancelButton = new System.Windows.Forms.Button(); this._sshGroup = new System.Windows.Forms.GroupBox(); this._hostLabel = new System.Windows.Forms.Label(); this._hostBox = new ComboBox(); this._methodLabel = new System.Windows.Forms.Label(); this._methodBox = new ComboBox(); this._portLabel = new System.Windows.Forms.Label(); this._portBox = new ComboBox(); this._authenticationLabel = new System.Windows.Forms.Label(); this._authOptions = new ComboBox(); this._passphraseLabel = new System.Windows.Forms.Label(); this._passphraseBox = new TextBox(); this._privateKeyLabel = new System.Windows.Forms.Label(); this._privateKeyFile = new TextBox(); this._privateKeySelect = new Button(); this._usernameLabel = new System.Windows.Forms.Label(); this._userNameBox = new ComboBox(); this._terminalGroup = new System.Windows.Forms.GroupBox(); this._newLineBox = new ComboBox(); this._localEchoBox = new ComboBox(); this._localEchoLabel = new System.Windows.Forms.Label(); this._newLineLabel = new System.Windows.Forms.Label(); this._logFileBox = new ComboBox(); this._logFileLabel = new System.Windows.Forms.Label(); this._encodingBox = new ComboBox(); this._encodingLabel = new System.Windows.Forms.Label(); this._selectLogButton = new Button(); this._logTypeLabel = new System.Windows.Forms.Label(); this._logTypeBox = new ComboBox(); this._terminalTypeBox = new ComboBox(); this._terminalTypeLabel = new Label(); this._sshGroup.SuspendLayout(); this._terminalGroup.SuspendLayout(); this.SuspendLayout(); // // _hostLabel // this._hostLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._hostLabel.Location = new System.Drawing.Point(16, 12); this._hostLabel.Name = "_hostLabel"; this._hostLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._hostLabel.Size = new System.Drawing.Size(80, 16); this._hostLabel.TabIndex = 0; this._hostLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _hostBox // this._hostBox.Location = new System.Drawing.Point(104, 8); this._hostBox.Name = "_hostBox"; this._hostBox.Size = new System.Drawing.Size(208, 20); this._hostBox.TabIndex = 1; this._hostBox.SelectedIndexChanged += new System.EventHandler(this.OnHostIsSelected); // // _methodLabel // this._methodLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._methodLabel.Location = new System.Drawing.Point(16, 36); this._methodLabel.Name = "_methodLabel"; this._methodLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._methodLabel.Size = new System.Drawing.Size(80, 16); this._methodLabel.TabIndex = 2; this._methodLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _methodBox // this._methodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._methodBox.Items.AddRange(new object[] { "Telnet", "SSH1", "SSH2" }); this._methodBox.Location = new System.Drawing.Point(104, 32); this._methodBox.Name = "_methodBox"; this._methodBox.Size = new System.Drawing.Size(208, 20); this._methodBox.TabIndex = 3; this._methodBox.SelectedIndexChanged += new System.EventHandler(this.AdjustConnectionUI); // // _portLabel // this._portLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._portLabel.Location = new System.Drawing.Point(16, 60); this._portLabel.Name = "_portLabel"; this._portLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._portLabel.Size = new System.Drawing.Size(80, 16); this._portLabel.TabIndex = 4; this._portLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _portBox // this._portBox.Location = new System.Drawing.Point(104, 56); this._portBox.Name = "_portBox"; this._portBox.Size = new System.Drawing.Size(208, 20); this._portBox.TabIndex = 5; // // _sshGroup // this._sshGroup.Controls.AddRange(new System.Windows.Forms.Control[] { this._privateKeyFile, this._authOptions, this._privateKeyLabel, this._passphraseBox, this._userNameBox, this._authenticationLabel, this._passphraseLabel, this._usernameLabel, this._privateKeySelect }); this._sshGroup.Location = new System.Drawing.Point(8, 88); this._sshGroup.Name = "_sshGroup"; this._sshGroup.FlatStyle = FlatStyle.System; this._sshGroup.Size = new System.Drawing.Size(312, 112); this._sshGroup.TabIndex = 6; this._sshGroup.TabStop = false; // // _usernameLabel // this._usernameLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._usernameLabel.Location = new System.Drawing.Point(8, 16); this._usernameLabel.Name = "_usernameLabel"; this._usernameLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._usernameLabel.Size = new System.Drawing.Size(80, 16); this._usernameLabel.TabIndex = 7; this._usernameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _userNameBox // this._userNameBox.Location = new System.Drawing.Point(96, 16); this._userNameBox.Name = "_userNameBox"; this._userNameBox.Size = new System.Drawing.Size(200, 20); this._userNameBox.TabIndex = 8; // // _authenticationLabel // this._authenticationLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._authenticationLabel.Location = new System.Drawing.Point(8, 40); this._authenticationLabel.Name = "_authenticationLabel"; this._authenticationLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._authenticationLabel.Size = new System.Drawing.Size(80, 16); this._authenticationLabel.TabIndex = 9; this._authenticationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _authOptions // this._authOptions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._authOptions.Location = new System.Drawing.Point(96, 40); this._authOptions.Name = "_authOptions"; this._authOptions.Size = new System.Drawing.Size(200, 20); this._authOptions.TabIndex = 10; this._authOptions.SelectedIndexChanged += new System.EventHandler(this.AdjustAuthenticationUI); // // _passphraseLabel // this._passphraseLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._passphraseLabel.Location = new System.Drawing.Point(8, 64); this._passphraseLabel.Name = "_passphraseLabel"; this._passphraseLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._passphraseLabel.Size = new System.Drawing.Size(80, 16); this._passphraseLabel.TabIndex = 11; this._passphraseLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _passphraseBox // this._passphraseBox.Location = new System.Drawing.Point(96, 64); this._passphraseBox.Name = "_passphraseBox"; this._passphraseBox.PasswordChar = '*'; this._passphraseBox.Size = new System.Drawing.Size(200, 19); this._passphraseBox.TabIndex = 12; this._passphraseBox.Text = ""; // // _privateKeyLabel // this._privateKeyLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._privateKeyLabel.Location = new System.Drawing.Point(8, 88); this._privateKeyLabel.Name = "_privateKeyLabel"; this._privateKeyLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._privateKeyLabel.Size = new System.Drawing.Size(72, 16); this._privateKeyLabel.TabIndex = 14; this._privateKeyLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _privateKeyFile // this._privateKeyFile.Location = new System.Drawing.Point(96, 88); this._privateKeyFile.Name = "_privateKeyFile"; this._privateKeyFile.Size = new System.Drawing.Size(176, 19); this._privateKeyFile.TabIndex = 15; this._privateKeyFile.Text = ""; // // _privateKeySelect // this._privateKeySelect.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this._privateKeySelect.ImageIndex = 0; this._privateKeySelect.FlatStyle = FlatStyle.System; this._privateKeySelect.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._privateKeySelect.Location = new System.Drawing.Point(272, 88); this._privateKeySelect.Name = "_privateKeySelect"; this._privateKeySelect.RightToLeft = System.Windows.Forms.RightToLeft.No; this._privateKeySelect.Size = new System.Drawing.Size(19, 19); this._privateKeySelect.TabIndex = 16; this._privateKeySelect.Text = "..."; this._privateKeySelect.Click += new System.EventHandler(this.OnOpenPrivateKey); // // _terminalGroup // this._terminalGroup.Controls.AddRange(new System.Windows.Forms.Control[] { this._logTypeBox, this._logTypeLabel, this._newLineBox, this._localEchoBox, this._localEchoLabel, this._newLineLabel, this._logFileBox, this._logFileLabel, this._encodingBox, this._encodingLabel, this._selectLogButton, this._terminalTypeLabel, this._terminalTypeBox }); this._terminalGroup.Location = new System.Drawing.Point(8, 208); this._terminalGroup.Name = "_terminalGroup"; this._terminalGroup.FlatStyle = FlatStyle.System; this._terminalGroup.Size = new System.Drawing.Size(312, 168); this._terminalGroup.TabIndex = 17; this._terminalGroup.TabStop = false; // // _logTypeLabel // this._logTypeLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logTypeLabel.Location = new System.Drawing.Point(8, 16); this._logTypeLabel.Name = "_logTypeLabel"; this._logTypeLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logTypeLabel.Size = new System.Drawing.Size(96, 16); this._logTypeLabel.TabIndex = 18; this._logTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logTypeBox // this._logTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); this._logTypeBox.Location = new System.Drawing.Point(112, 16); this._logTypeBox.Name = "_logTypeBox"; this._logTypeBox.Size = new System.Drawing.Size(96, 20); this._logTypeBox.TabIndex = 19; this._logTypeBox.SelectionChangeCommitted += new EventHandler(OnLogTypeChanged); // // _logFileLabel // this._logFileLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logFileLabel.Location = new System.Drawing.Point(8, 40); this._logFileLabel.Name = "_logFileLabel"; this._logFileLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logFileLabel.Size = new System.Drawing.Size(88, 16); this._logFileLabel.TabIndex = 20; this._logFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logFileBox // this._logFileBox.Location = new System.Drawing.Point(112, 40); this._logFileBox.Name = "_logFileBox"; this._logFileBox.Size = new System.Drawing.Size(160, 20); this._logFileBox.TabIndex = 21; // // _selectLogButton // this._selectLogButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this._selectLogButton.ImageIndex = 0; this._selectLogButton.FlatStyle = FlatStyle.System; this._selectLogButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._selectLogButton.Location = new System.Drawing.Point(272, 40); this._selectLogButton.Name = "_selectLogButton"; this._selectLogButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._selectLogButton.Size = new System.Drawing.Size(19, 19); this._selectLogButton.TabIndex = 22; this._selectLogButton.Text = "..."; this._selectLogButton.Click += new System.EventHandler(this.SelectLog); // // _encodingLabel // this._encodingLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._encodingLabel.Location = new System.Drawing.Point(8, 64); this._encodingLabel.Name = "_encodingLabel"; this._encodingLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._encodingLabel.Size = new System.Drawing.Size(96, 16); this._encodingLabel.TabIndex = 23; this._encodingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _encodingBox // this._encodingBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._encodingBox.Items.AddRange(EnumDescAttributeT.For(typeof(EncodingType)).DescriptionCollection()); this._encodingBox.Location = new System.Drawing.Point(112, 64); this._encodingBox.Name = "_encodingBox"; this._encodingBox.Size = new System.Drawing.Size(96, 20); this._encodingBox.TabIndex = 24; // // _localEchoLabel // this._localEchoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._localEchoLabel.Location = new System.Drawing.Point(8, 88); this._localEchoLabel.Name = "_localEchoLabel"; this._localEchoLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._localEchoLabel.Size = new System.Drawing.Size(96, 16); this._localEchoLabel.TabIndex = 25; this._localEchoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _localEchoBox // this._localEchoBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._localEchoBox.Items.AddRange(new object[] { GApp.Strings.GetString("Common.DoNot"), GApp.Strings.GetString("Common.Do") }); this._localEchoBox.Location = new System.Drawing.Point(112, 88); this._localEchoBox.Name = "_localEchoBox"; this._localEchoBox.Size = new System.Drawing.Size(96, 20); this._localEchoBox.TabIndex = 26; // // _newLineLabel // this._newLineLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._newLineLabel.Location = new System.Drawing.Point(8, 112); this._newLineLabel.Name = "_newLineLabel"; this._newLineLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._newLineLabel.Size = new System.Drawing.Size(96, 16); this._newLineLabel.TabIndex = 27; this._newLineLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _newLineBox // this._newLineBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._newLineBox.Items.AddRange(EnumDescAttributeT.For(typeof(NewLine)).DescriptionCollection()); this._newLineBox.Location = new System.Drawing.Point(112, 112); this._newLineBox.Name = "_newLineBox"; this._newLineBox.Size = new System.Drawing.Size(96, 20); this._newLineBox.TabIndex = 28; // // _terminalTypeLabel // this._terminalTypeLabel.Location = new System.Drawing.Point(8, 136); this._terminalTypeLabel.Name = "_terminalTypeLabel"; this._terminalTypeLabel.Size = new System.Drawing.Size(96, 23); this._terminalTypeLabel.TabIndex = 29; this._terminalTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _terminalTypeBox // this._terminalTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._terminalTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(TerminalType)).DescriptionCollection()); this._terminalTypeBox.Location = new System.Drawing.Point(112, 136); this._terminalTypeBox.Name = "_terminalType"; this._terminalTypeBox.Size = new System.Drawing.Size(96, 20); this._terminalTypeBox.TabIndex = 30; // // _loginButton // this._loginButton.ImageIndex = 0; this._loginButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._loginButton.Location = new System.Drawing.Point(160, 384); this._loginButton.Name = "_loginButton"; this._loginButton.FlatStyle = FlatStyle.System; this._loginButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._loginButton.Size = new System.Drawing.Size(72, 25); this._loginButton.TabIndex = 29; this._loginButton.Click += new System.EventHandler(this.OnOK); // // _cancelButton // this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this._cancelButton.ImageIndex = 0; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._cancelButton.Location = new System.Drawing.Point(248, 384); this._cancelButton.Name = "_cancelButton"; this._cancelButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._cancelButton.Size = new System.Drawing.Size(72, 25); this._cancelButton.TabIndex = 30; // // LoginDialog // this.AcceptButton = this._loginButton; this.Anchor = System.Windows.Forms.AnchorStyles.None; this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.CancelButton = this._cancelButton; this.ClientSize = new System.Drawing.Size(330, 415); this.Controls.AddRange(new System.Windows.Forms.Control[] { this._terminalGroup, this._sshGroup, this._hostBox, this._methodBox, this._portBox, this._cancelButton, this._loginButton, this._methodLabel, this._portLabel, this._hostLabel }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "LoginDialog"; this.ShowInTaskbar = false; //this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this._sshGroup.ResumeLayout(false); this._terminalGroup.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// this._newLineOption.Items.AddRange(EnumDescAttributeT.For(typeof(NewLine)).DescriptionCollection()); /// /// this._encodingBox.Items.AddRange(EnumDescAttributeT.For(typeof(EncodingType)).DescriptionCollection()); /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(GDialogBar)); this._openShortcut = new GButton(); this._newConnection = new GButton(); this._newSerialConnection = new GButton(); this._newCygwinConnection = new GButton(); this._newSFUConnection = new GButton(); this._saveShortcut = new GButton(); this._singleStyle = new ToggleButton(); this._divHorizontalStyle = new ToggleButton(); this._divVerticalStyle = new ToggleButton(); this._divHorizontal3Style = new ToggleButton(); this._divVertical3Style = new ToggleButton(); this._newLineLabel = new System.Windows.Forms.Label(); this._newLineOption = new ComboBox(); this._logSuspend = new ToggleButton(); this._lineFeedRule = new GButton(); this._localEcho = new ToggleButton(); this._serverInfo = new GButton(); this._commentLog = new GButton(); this._encodingLabel = new System.Windows.Forms.Label(); this._encodingBox = new ComboBox(); this.SuspendLayout(); // // _newConnection // this._newConnection.BorderStyle = System.Windows.Forms.BorderStyle.None; this._newConnection.ForeColor = System.Drawing.SystemColors.ControlText; this._newConnection.Location = new System.Drawing.Point(8, 2); this._newConnection.Name = "_newConnection"; this._newConnection.Size = new System.Drawing.Size(24, 23); this._newConnection.TabIndex = 0; this._newConnection.TabStop = false; this._newConnection.Click += new System.EventHandler(this.OpenNewConnection); this._newConnection.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._newConnection.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._newConnection.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _newSerialConnection // this._newSerialConnection.BorderStyle = System.Windows.Forms.BorderStyle.None; this._newSerialConnection.ForeColor = System.Drawing.SystemColors.ControlText; this._newSerialConnection.Location = new System.Drawing.Point(32, 2); this._newSerialConnection.Name = "_newSerialConnection"; this._newSerialConnection.Size = new System.Drawing.Size(24, 23); this._newSerialConnection.TabIndex = 0; this._newSerialConnection.TabStop = false; this._newSerialConnection.Click += new System.EventHandler(this.OpenNewSerialConnection); this._newSerialConnection.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._newSerialConnection.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._newSerialConnection.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _newCygwinConnection // this._newCygwinConnection.BorderStyle = System.Windows.Forms.BorderStyle.None; this._newCygwinConnection.ForeColor = System.Drawing.SystemColors.ControlText; this._newCygwinConnection.Location = new System.Drawing.Point(56, 2); this._newCygwinConnection.Name = "_newCygwinConnection"; this._newCygwinConnection.Size = new System.Drawing.Size(24, 23); this._newCygwinConnection.TabIndex = 0; this._newCygwinConnection.TabStop = false; this._newCygwinConnection.Click += new System.EventHandler(this.OpenNewCygwinConnection); this._newCygwinConnection.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._newCygwinConnection.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._newCygwinConnection.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _newSFUConnection // this._newSFUConnection.BorderStyle = System.Windows.Forms.BorderStyle.None; this._newSFUConnection.ForeColor = System.Drawing.SystemColors.ControlText; this._newSFUConnection.Location = new System.Drawing.Point(80, 2); this._newSFUConnection.Name = "_newSFUConnection"; this._newSFUConnection.Size = new System.Drawing.Size(24, 23); this._newSFUConnection.TabIndex = 0; this._newSFUConnection.TabStop = false; this._newSFUConnection.Click += new System.EventHandler(this.OpenNewSFUConnection); this._newSFUConnection.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._newSFUConnection.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._newSFUConnection.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _openShortcut // this._openShortcut.BorderStyle = System.Windows.Forms.BorderStyle.None; this._openShortcut.ForeColor = System.Drawing.SystemColors.ControlText; this._openShortcut.Location = new System.Drawing.Point(112, 2); this._openShortcut.Name = "_openShortcut"; this._openShortcut.Size = new System.Drawing.Size(24, 23); this._openShortcut.TabIndex = 0; this._openShortcut.TabStop = false; this._openShortcut.Click += new System.EventHandler(this.OpenShortCut); this._openShortcut.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._openShortcut.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._openShortcut.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _saveShortcut // this._saveShortcut.BorderStyle = System.Windows.Forms.BorderStyle.None; this._saveShortcut.Enabled = false; this._saveShortcut.Location = new System.Drawing.Point(136, 2); this._saveShortcut.Name = "_saveShortcut"; this._saveShortcut.Size = new System.Drawing.Size(24, 23); this._saveShortcut.TabIndex = 0; this._saveShortcut.TabStop = false; this._saveShortcut.Click += new System.EventHandler(this.SaveShortCut); this._saveShortcut.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._saveShortcut.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._saveShortcut.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _singleStyle // this._singleStyle.BorderStyle = System.Windows.Forms.BorderStyle.None; this._singleStyle.Checked = false; this._singleStyle.TabStop = false; this._singleStyle.AutoToggle = false; this._singleStyle.Location = new System.Drawing.Point(168, 2); this._singleStyle.Name = "_singleStyle"; this._singleStyle.Size = new System.Drawing.Size(24, 23); this._singleStyle.TabIndex = 1; this._singleStyle.Click += new System.EventHandler(this.ToggleSingleStyle); this._singleStyle.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._singleStyle.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._singleStyle.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _divHorizontalStyle // this._divHorizontalStyle.BorderStyle = System.Windows.Forms.BorderStyle.None; this._divHorizontalStyle.Checked = false; this._divHorizontalStyle.AutoToggle = false; this._divHorizontalStyle.Location = new System.Drawing.Point(192, 2); this._divHorizontalStyle.Name = "_divHorizontalStyle"; this._divHorizontalStyle.Size = new System.Drawing.Size(24, 23); this._divHorizontalStyle.TabStop = false; this._divHorizontalStyle.TabIndex = 2; this._divHorizontalStyle.Click += new System.EventHandler(this.ToggleDivHorizontalStyle); this._divHorizontalStyle.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._divHorizontalStyle.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._divHorizontalStyle.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _divVerticalStyle // this._divVerticalStyle.BorderStyle = System.Windows.Forms.BorderStyle.None; this._divVerticalStyle.Checked = false; this._divVerticalStyle.AutoToggle = false; this._divVerticalStyle.Location = new System.Drawing.Point(216, 2); this._divVerticalStyle.Name = "_divVerticalStyle"; this._divVerticalStyle.Size = new System.Drawing.Size(24, 23); this._divVerticalStyle.TabStop = false; this._divVerticalStyle.Click += new System.EventHandler(this.ToggleDivVerticalStyle); this._divVerticalStyle.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._divVerticalStyle.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._divVerticalStyle.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _divHorizontal3Style // this._divHorizontal3Style.BorderStyle = System.Windows.Forms.BorderStyle.None; this._divHorizontal3Style.Checked = false; this._divHorizontal3Style.AutoToggle = false; this._divHorizontal3Style.Location = new System.Drawing.Point(240, 2); this._divHorizontal3Style.Name = "_divHorizontal3Style"; this._divHorizontal3Style.Size = new System.Drawing.Size(24, 23); this._divHorizontal3Style.TabStop = false; this._divHorizontal3Style.Click += new System.EventHandler(this.ToggleDivHorizontal3Style); this._divHorizontal3Style.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._divHorizontal3Style.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._divHorizontal3Style.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _divVertical3Style // this._divVertical3Style.BorderStyle = System.Windows.Forms.BorderStyle.None; this._divVertical3Style.Checked = false; this._divVertical3Style.AutoToggle = false; this._divVertical3Style.Location = new System.Drawing.Point(264, 2); this._divVertical3Style.Name = "_divVertical3Style"; this._divVertical3Style.Size = new System.Drawing.Size(24, 23); this._divVertical3Style.TabStop = false; this._divVertical3Style.Click += new System.EventHandler(this.ToggleDivVertical3Style); this._divVertical3Style.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._divVertical3Style.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._divVertical3Style.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _newLineLabel // this._newLineLabel.Location = new System.Drawing.Point(296, 7); this._newLineLabel.Name = "_newLineLabel"; this._newLineLabel.Size = new System.Drawing.Size(60, 15); this._newLineLabel.TabIndex = 0; this._newLineLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _newLineOption // this._newLineOption.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._newLineOption.Enabled = false; this._newLineOption.Items.AddRange(EnumDescAttributeT.For(typeof(NewLine)).DescriptionCollection()); this._newLineOption.Location = new System.Drawing.Point(340, 4); this._newLineOption.Name = "_newLineOption"; this._newLineOption.Size = new System.Drawing.Size(72, 20); this._newLineOption.TabIndex = 0; this._newLineOption.TabStop = false; this._newLineOption.SelectedIndexChanged += new System.EventHandler(this.ChangeNewLine); // // _encodingLabel // this._encodingLabel.Location = new System.Drawing.Point(416, 7); this._encodingLabel.Name = "_encodingLabel"; this._encodingLabel.Size = new System.Drawing.Size(80, 15); this._encodingLabel.TabIndex = 0; this._encodingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // _encodingBox // this._encodingBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._encodingBox.Enabled = false; this._encodingBox.Location = new System.Drawing.Point(496, 4); this._encodingBox.Name = "_encodingBox"; this._encodingBox.Size = new System.Drawing.Size(96, 20); this._encodingBox.TabIndex = 0; this._encodingBox.TabStop = false; this._encodingBox.SelectedIndexChanged += new System.EventHandler(this.ChangeEncoding); this._encodingBox.Items.AddRange(EnumDescAttributeT.For(typeof(EncodingType)).DescriptionCollection()); // // _localEcho // this._localEcho.BorderStyle = System.Windows.Forms.BorderStyle.None; this._localEcho.Checked = false; this._localEcho.Enabled = false; this._localEcho.Location = new System.Drawing.Point(600, 2); this._localEcho.Name = "_localEcho"; this._localEcho.Size = new System.Drawing.Size(24, 23); this._localEcho.TabIndex = 0; this._localEcho.TabStop = false; this._localEcho.Click += new System.EventHandler(this.ToggleLocalEcho); this._localEcho.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._localEcho.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._localEcho.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _lineFeedRule // this._lineFeedRule.BorderStyle = System.Windows.Forms.BorderStyle.None; this._lineFeedRule.Enabled = false; this._lineFeedRule.Location = new System.Drawing.Point(624, 2); this._lineFeedRule.Name = "_lineFeedRule"; this._lineFeedRule.Size = new System.Drawing.Size(24, 23); this._lineFeedRule.TabIndex = 0; this._lineFeedRule.TabStop = false; this._lineFeedRule.Click += new System.EventHandler(this.LineFeedRule); this._lineFeedRule.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._lineFeedRule.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._lineFeedRule.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _logSuspend // this._logSuspend.BorderStyle = System.Windows.Forms.BorderStyle.None; this._logSuspend.Checked = false; this._logSuspend.Enabled = false; this._logSuspend.Location = new System.Drawing.Point(650, 2); this._logSuspend.Name = "_logSuspend"; this._logSuspend.Size = new System.Drawing.Size(24, 23); this._logSuspend.TabIndex = 0; this._logSuspend.TabStop = false; this._logSuspend.Click += new System.EventHandler(this.ToggleLogSwitch); this._logSuspend.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._logSuspend.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._logSuspend.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _commentLog // this._commentLog.BorderStyle = System.Windows.Forms.BorderStyle.None; this._commentLog.Enabled = false; this._commentLog.Location = new System.Drawing.Point(672, 2); this._commentLog.Name = "_commentLog"; this._commentLog.Size = new System.Drawing.Size(24, 23); this._commentLog.TabIndex = 0; this._commentLog.TabStop = false; this._commentLog.Click += new System.EventHandler(this.CommentLog); this._commentLog.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._commentLog.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._commentLog.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // _serverInfo // this._serverInfo.BorderStyle = System.Windows.Forms.BorderStyle.None; this._serverInfo.Enabled = false; this._serverInfo.Location = new System.Drawing.Point(704, 2); this._serverInfo.Name = "_serverInfo"; this._serverInfo.Size = new System.Drawing.Size(24, 23); this._serverInfo.TabIndex = 0; this._serverInfo.TabStop = false; this._serverInfo.Click += new System.EventHandler(this.ShowServerInfo); this._serverInfo.MouseEnter += new System.EventHandler(this.OnMouseEnterToButton); this._serverInfo.MouseHover += new System.EventHandler(this.OnMouseHoverOnButton); this._serverInfo.MouseLeave += new System.EventHandler(this.OnMouseLeaveFromButton); // // GDialogBar // this.Controls.AddRange(new System.Windows.Forms.Control[] { this._newConnection, this._newSerialConnection, this._newCygwinConnection, this._newSFUConnection, this._openShortcut, this._saveShortcut, this._singleStyle, this._divHorizontalStyle, this._divVerticalStyle, this._divHorizontal3Style, this._divVertical3Style, this._newLineLabel, this._newLineOption, this._encodingLabel, this._encodingBox, this._lineFeedRule, this._commentLog, this._logSuspend, this._localEcho, this._serverInfo }); this.Name = "GDialogBar"; this.Size = new System.Drawing.Size(664, 24); this.TabStop = false; this.ResumeLayout(false); }
/// <summary> /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); /// this._newLineBox.Items.AddRange(EnumDescAttributeT.For(typeof(NewLine)).DescriptionCollection()); /// this._encodingBox.Items.AddRange(GUtil.EncodingDescription(GApp.Options.Encodings)); /// this._stopBitsBox.Items.AddRange(EnumDescAttributeT.For(typeof(StopBits)).DescriptionCollection()); /// this._parityBox.Items.AddRange(EnumDescAttributeT.For(typeof(Parity)).DescriptionCollection()); ///this._flowControlBox.Items.AddRange(EnumDescAttributeTs.For(typeof(FlowControl)).DescriptionCollection()); ///this._baudRateBox.Items.AddRange(TerminalUtil.BaudRates); /// </summary> private void InitializeComponent() { this._serialGroup = new System.Windows.Forms.GroupBox(); this._portLabel = new System.Windows.Forms.Label(); this._portBox = new ComboBox(); this._baudRateLabel = new System.Windows.Forms.Label(); this._baudRateBox = new ComboBox(); this._dataBitsLabel = new System.Windows.Forms.Label(); this._dataBitsBox = new ComboBox(); this._parityLabel = new System.Windows.Forms.Label(); this._parityBox = new ComboBox(); this._stopBitsLabel = new System.Windows.Forms.Label(); this._stopBitsBox = new ComboBox(); this._flowControlLabel = new System.Windows.Forms.Label(); this._flowControlBox = new ComboBox(); this._transmitDelayPerCharLabel = new Label(); this._transmitDelayPerCharBox = new TextBox(); this._transmitDelayPerLineLabel = new Label(); this._transmitDelayPerLineBox = new TextBox(); this._terminalGroup = new System.Windows.Forms.GroupBox(); this._logTypeBox = new ComboBox(); this._logTypeLabel = new System.Windows.Forms.Label(); this._newLineBox = new ComboBox(); this._localEchoBox = new ComboBox(); this._localEchoLabel = new System.Windows.Forms.Label(); this._newLineLabel = new System.Windows.Forms.Label(); this._logFileBox = new ComboBox(); this._logFileLabel = new System.Windows.Forms.Label(); this._encodingBox = new ComboBox(); this._encodingLabel = new System.Windows.Forms.Label(); this._selectLogButton = new Button(); this._terminalGroup.SuspendLayout(); this._serialGroup.SuspendLayout(); this._loginButton = new System.Windows.Forms.Button(); this._cancelButton = new System.Windows.Forms.Button(); this.SuspendLayout(); // // _serialGroup // this._serialGroup.Controls.AddRange(new System.Windows.Forms.Control[] { this._transmitDelayPerCharBox, this._transmitDelayPerCharLabel, this._transmitDelayPerLineBox, this._transmitDelayPerLineLabel, this._flowControlBox, this._flowControlLabel, this._stopBitsBox, this._stopBitsLabel, this._parityBox, this._parityLabel, this._dataBitsBox, this._dataBitsLabel, this._baudRateBox, this._baudRateLabel, this._portBox, this._portLabel }); this._serialGroup.Location = new System.Drawing.Point(8, 8); this._serialGroup.Name = "_serialGroup"; this._serialGroup.FlatStyle = FlatStyle.System; this._serialGroup.Size = new System.Drawing.Size(296, 224); this._serialGroup.TabIndex = 0; this._serialGroup.TabStop = false; // // _portLabel // this._portLabel.Location = new System.Drawing.Point(8, 16); this._portLabel.Name = "_portLabel"; this._portLabel.Size = new System.Drawing.Size(88, 23); this._portLabel.TabIndex = 1; this._portLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _portBox // this._portBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._portBox.Location = new System.Drawing.Point(112, 16); this._portBox.Name = "_portBox"; this._portBox.Size = new System.Drawing.Size(120, 20); this._portBox.TabIndex = 2; // // _baudRateLabel // this._baudRateLabel.Location = new System.Drawing.Point(8, 40); this._baudRateLabel.Name = "_baudRateLabel"; this._baudRateLabel.Size = new System.Drawing.Size(88, 23); this._baudRateLabel.TabIndex = 3; this._baudRateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _baudRateBox // this._baudRateBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._baudRateBox.Items.AddRange(TerminalUtil.BaudRates); this._baudRateBox.Location = new System.Drawing.Point(112, 40); this._baudRateBox.Name = "_baudRateBox"; this._baudRateBox.Size = new System.Drawing.Size(120, 20); this._baudRateBox.TabIndex = 4; // // _dataBitsLabel // this._dataBitsLabel.Location = new System.Drawing.Point(8, 64); this._dataBitsLabel.Name = "_dataBitsLabel"; this._dataBitsLabel.Size = new System.Drawing.Size(88, 23); this._dataBitsLabel.TabIndex = 5; this._dataBitsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _dataBitsBox // this._dataBitsBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._dataBitsBox.Location = new System.Drawing.Point(112, 64); this._dataBitsBox.Name = "_dataBitsBox"; this._dataBitsBox.Size = new System.Drawing.Size(120, 20); this._dataBitsBox.TabIndex = 6; // // _parityLabel // this._parityLabel.Location = new System.Drawing.Point(8, 88); this._parityLabel.Name = "_parityLabel"; this._parityLabel.Size = new System.Drawing.Size(88, 23); this._parityLabel.TabIndex = 7; this._parityLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _parityBox // this._parityBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._parityBox.Items.AddRange(EnumDescAttributeT.For(typeof(Parity)).DescriptionCollection()); this._parityBox.Location = new System.Drawing.Point(112, 88); this._parityBox.Name = "_parityBox"; this._parityBox.Size = new System.Drawing.Size(120, 20); this._parityBox.TabIndex = 8; // // _stopBitsLabel // this._stopBitsLabel.Location = new System.Drawing.Point(8, 112); this._stopBitsLabel.Name = "_stopBitsLabel"; this._stopBitsLabel.Size = new System.Drawing.Size(88, 23); this._stopBitsLabel.TabIndex = 9; this._stopBitsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _stopBitsBox // this._stopBitsBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._stopBitsBox.Items.AddRange(EnumDescAttributeT.For(typeof(StopBits)).DescriptionCollection()); this._stopBitsBox.Location = new System.Drawing.Point(112, 112); this._stopBitsBox.Name = "_stopBitsBox"; this._stopBitsBox.Size = new System.Drawing.Size(120, 20); this._stopBitsBox.TabIndex = 10; // // _flowControlLabel // this._flowControlLabel.Location = new System.Drawing.Point(8, 136); this._flowControlLabel.Name = "_flowControlLabel"; this._flowControlLabel.Size = new System.Drawing.Size(88, 23); this._flowControlLabel.TabIndex = 11; this._flowControlLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _flowControlBox // this._flowControlBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._flowControlBox.Location = new System.Drawing.Point(112, 136); this._flowControlBox.Name = "_flowControlBox"; this._flowControlBox.Size = new System.Drawing.Size(120, 20); this._flowControlBox.Items.AddRange(EnumDescAttributeT.For(typeof(FlowControl)).DescriptionCollection()); this._flowControlBox.TabIndex = 12; // // _transmitDelayPerCharLabel // this._transmitDelayPerCharLabel.Location = new System.Drawing.Point(8, 160); this._transmitDelayPerCharLabel.Name = "_transmitDelayPerCharLabel"; this._transmitDelayPerCharLabel.Size = new System.Drawing.Size(88, 23); this._transmitDelayPerCharLabel.TabIndex = 13; this._transmitDelayPerCharLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _transmitDelayPerCharBox // this._transmitDelayPerCharBox.Location = new System.Drawing.Point(112, 160); this._transmitDelayPerCharBox.Name = "_transmitDelayPerCharBox"; this._transmitDelayPerCharBox.Size = new System.Drawing.Size(120, 20); this._transmitDelayPerCharBox.TabIndex = 14; this._transmitDelayPerCharBox.MaxLength = 3; // // _transmitDelayPerLineLabel // this._transmitDelayPerLineLabel.Location = new System.Drawing.Point(8, 184); this._transmitDelayPerLineLabel.Name = "_transmitDelayPerLineLabel"; this._transmitDelayPerLineLabel.Size = new System.Drawing.Size(88, 23); this._transmitDelayPerLineLabel.TabIndex = 15; this._transmitDelayPerLineLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _transmitDelayPerLineBox // this._transmitDelayPerLineBox.Location = new System.Drawing.Point(112, 184); this._transmitDelayPerLineBox.Name = "_transmitDelayPerLineBox"; this._transmitDelayPerLineBox.Size = new System.Drawing.Size(120, 20); this._transmitDelayPerLineBox.TabIndex = 16; this._transmitDelayPerLineBox.MaxLength = 3; // // _terminalGroup // this._terminalGroup.Controls.AddRange(new System.Windows.Forms.Control[] { this._logTypeBox, this._logTypeLabel, this._newLineBox, this._localEchoBox, this._localEchoLabel, this._newLineLabel, this._logFileBox, this._logFileLabel, this._encodingBox, this._encodingLabel, this._selectLogButton }); this._terminalGroup.Location = new System.Drawing.Point(8, 240); this._terminalGroup.Name = "_terminalGroup"; this._terminalGroup.FlatStyle = FlatStyle.System; this._terminalGroup.Size = new System.Drawing.Size(296, 144); this._terminalGroup.TabIndex = 17; this._terminalGroup.TabStop = false; // // _logTypeLabel // this._logTypeLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logTypeLabel.Location = new System.Drawing.Point(8, 16); this._logTypeLabel.Name = "_logTypeLabel"; this._logTypeLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logTypeLabel.Size = new System.Drawing.Size(120, 16); this._logTypeLabel.TabIndex = 18; this._logTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logTypeBox // this._logTypeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._logTypeBox.Items.AddRange(EnumDescAttributeT.For(typeof(LogType)).DescriptionCollection()); this._logTypeBox.Location = new System.Drawing.Point(112, 16); this._logTypeBox.Name = "_logTypeBox"; this._logTypeBox.Size = new System.Drawing.Size(120, 20); this._logTypeBox.TabIndex = 19; this._logTypeBox.SelectedIndexChanged += new System.EventHandler(this.OnLogTypeChanged); // // _logFileLabel // this._logFileLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._logFileLabel.Location = new System.Drawing.Point(8, 40); this._logFileLabel.Name = "_logFileLabel"; this._logFileLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._logFileLabel.Size = new System.Drawing.Size(88, 16); this._logFileLabel.TabIndex = 20; this._logFileLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _logFileBox // this._logFileBox.Location = new System.Drawing.Point(112, 40); this._logFileBox.Name = "_logFileBox"; this._logFileBox.Size = new System.Drawing.Size(144, 20); this._logFileBox.TabIndex = 21; // // _selectLogButton // this._selectLogButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this._selectLogButton.ImageIndex = 0; this._selectLogButton.FlatStyle = FlatStyle.System; this._selectLogButton.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._selectLogButton.Location = new System.Drawing.Point(256, 40); this._selectLogButton.Name = "_selectLogButton"; this._selectLogButton.RightToLeft = System.Windows.Forms.RightToLeft.No; this._selectLogButton.Size = new System.Drawing.Size(19, 19); this._selectLogButton.TabIndex = 22; this._selectLogButton.Text = "..."; this._selectLogButton.Click += new System.EventHandler(this.SelectLog); // // _encodingLabel // this._encodingLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._encodingLabel.Location = new System.Drawing.Point(8, 64); this._encodingLabel.Name = "_encodingLabel"; this._encodingLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._encodingLabel.Size = new System.Drawing.Size(96, 16); this._encodingLabel.TabIndex = 23; this._encodingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _encodingBox // this._encodingBox.Items.AddRange(EnumDescAttributeT.For(typeof(EncodingType)).DescriptionCollection()); this._encodingBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._encodingBox.Location = new System.Drawing.Point(112, 64); this._encodingBox.Name = "_encodingBox"; this._encodingBox.Size = new System.Drawing.Size(120, 20); this._encodingBox.TabIndex = 24; // // _localEchoLabel // this._localEchoLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._localEchoLabel.Location = new System.Drawing.Point(8, 88); this._localEchoLabel.Name = "_localEchoLabel"; this._localEchoLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._localEchoLabel.Size = new System.Drawing.Size(96, 16); this._localEchoLabel.TabIndex = 25; this._localEchoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _localEchoBox // this._localEchoBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._localEchoBox.Location = new System.Drawing.Point(112, 88); this._localEchoBox.Name = "_localEchoBox"; this._localEchoBox.Size = new System.Drawing.Size(120, 20); this._localEchoBox.TabIndex = 26; // // _newLineLabel // this._newLineLabel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this._newLineLabel.Location = new System.Drawing.Point(8, 112); this._newLineLabel.Name = "_newLineLabel"; this._newLineLabel.RightToLeft = System.Windows.Forms.RightToLeft.No; this._newLineLabel.Size = new System.Drawing.Size(96, 16); this._newLineLabel.TabIndex = 27; this._newLineLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // _newLineBox // this._newLineBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._newLineBox.Items.AddRange(EnumDescAttributeT.For(typeof(NewLine)).DescriptionCollection()); this._newLineBox.Location = new System.Drawing.Point(112, 112); this._newLineBox.Name = "_newLineBox"; this._newLineBox.Size = new System.Drawing.Size(120, 20); this._newLineBox.TabIndex = 28; // // _loginButton // this._loginButton.DialogResult = System.Windows.Forms.DialogResult.OK; this._loginButton.Location = new System.Drawing.Point(136, 392); this._loginButton.Name = "_loginButton"; this._loginButton.FlatStyle = FlatStyle.System; this._loginButton.TabIndex = 29; this._loginButton.Click += new System.EventHandler(this.OnOK); // // _cancelButton // this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; this._cancelButton.Location = new System.Drawing.Point(224, 392); this._cancelButton.Name = "_cancelButton"; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.TabIndex = 30; // // SerialLoginDialog // this.AcceptButton = this._loginButton; this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.CancelButton = this._cancelButton; this.ClientSize = new System.Drawing.Size(314, 423); this.Controls.AddRange(new System.Windows.Forms.Control[] { this._serialGroup, this._terminalGroup, this._cancelButton, this._loginButton }); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SerialLoginDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this._terminalGroup.ResumeLayout(false); this._serialGroup.ResumeLayout(false); this.ResumeLayout(false); }