/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); tmrApp = new System.Windows.Forms.Timer(components) { Interval = 2, Enabled = true }; SuspendLayout(); // // tmrApp // tmrApp.Tick += new System.EventHandler(tmrApp_Tick); // // Maze_Form // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BackColor = System.Drawing.Color.FromArgb(31,31,31); ClientSize = new System.Drawing.Size(484, 461); DoubleBuffered = true; KeyPreview = true; Name = "MazeForm"; Text = "Maze AI"; Load += new System.EventHandler(Form1_Load); Paint += new System.Windows.Forms.PaintEventHandler(Form1_Paint); KeyDown += new System.Windows.Forms.KeyEventHandler(Form1_KeyDown); MouseClick += new System.Windows.Forms.MouseEventHandler(Form1_LeftClick); MouseMove += new System.Windows.Forms.MouseEventHandler(Form1_MouseMove); Resize += new System.EventHandler(Form1_Resize); Shown += new System.EventHandler(OnShow); ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PropertyDialog)); propertyGrid1 = new System.Windows.Forms.PropertyGrid(); SuspendLayout(); // // propertyGrid1 // propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill; propertyGrid1.Location = new System.Drawing.Point(0, 0); propertyGrid1.Name = "propertyGrid1"; propertyGrid1.Size = new System.Drawing.Size(284, 262); propertyGrid1.TabIndex = 0; // // PropertyDialog // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(284, 262); Controls.Add(propertyGrid1); Icon = ((System.Drawing.Icon)(resources.GetObject("$Icon"))); KeyPreview = true; Name = "PropertyDialog"; Text = "Set Properties"; KeyDown += new System.Windows.Forms.KeyEventHandler(ThisEntered); ResumeLayout(false); }
public GUIEventHandlerSharpDX() { handlerUserResize = (sender, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.Resize, e)); }; handlerKeyDown = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.KeyDown, e)); }; handlerKeyUp = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.KeyUp, e)); }; handlerKeyPress = (s, e) => { //OnWindowEvent(new RigelEGUIEvent(RigelEGUIEventType.KeyPress,e)); }; handlerMouseMove = (s, e) => { if (e.Button == System.Windows.Forms.MouseButtons.Left) { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDragUpdate, e)); } else { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseMove, e)); } }; handlerMouseDown = (s, e) => { var t = e; PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDown, e)); }; handlerMouseUp = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseUp, e)); }; handlerMouseClick = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseClick, e)); }; handlerMouseDoubleClick = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseDoubleClick, e)); }; handlerMouseWheel = (s, e) => { PostProcessEvent(new GUIEvent(RigelEGUIEventType.MouseWheel, e)); }; handlerDragEnter = (s, e) => { EditorUtility.Log("event drag enter"); }; handlerDragDrop = (s, e) => { EditorUtility.Log("event drag drop"); }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); timer2 = new System.Windows.Forms.Timer(components); panel1 = new System.Windows.Forms.Panel(); pictureBox1 = new System.Windows.Forms.PictureBox(); panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).BeginInit(); SuspendLayout(); // // timer2 // timer2.Tick += new System.EventHandler(timer2_Tick); // // panel1 // panel1.AutoScroll = true; panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; panel1.Controls.Add(pictureBox1); panel1.Dock = System.Windows.Forms.DockStyle.Fill; panel1.Location = new System.Drawing.Point(0, 0); panel1.Name = "panel1"; panel1.Size = new System.Drawing.Size(885, 701); panel1.TabIndex = 3; panel1.Paint += new System.Windows.Forms.PaintEventHandler(panel1_Paint); panel1.Resize += new System.EventHandler(panel1_Resize); // // pictureBox1 // pictureBox1.Location = new System.Drawing.Point(3, 3); pictureBox1.Name = "pictureBox1"; pictureBox1.Size = new System.Drawing.Size(100, 50); pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; pictureBox1.TabIndex = 3; pictureBox1.TabStop = false; pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(pictureBox1_MouseMove); // // frmPictureViewer // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(885, 701); Controls.Add(panel1); FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; Name = "frmPictureViewer"; Text = "Player"; MaximumSizeChanged += new System.EventHandler(frmPictureViewer_MaximumSizeChanged); Load += new System.EventHandler(Form1_Load); KeyDown += new System.Windows.Forms.KeyEventHandler(frmPictureViewer_KeyDown); Resize += new System.EventHandler(frmPictureViewer_Resize); panel1.ResumeLayout(false); panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(pictureBox1)).EndInit(); ResumeLayout(false); }
/// <summary> /// /// </summary> /// <param name="width"></param> /// <param name="height"></param> public WinCtrlRoot(int width, int height) : base(width, height) { this.mouseMove = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseMove); this.mouseDown = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseDown); this.mouseUp = new System.Windows.Forms.MouseEventHandler(winCanvas_MouseUp); this.keyDown = new System.Windows.Forms.KeyEventHandler(winCanvas_KeyDown); this.keyUp = new System.Windows.Forms.KeyEventHandler(winCanvas_KeyUp); this.resize = new EventHandler(winCanvas_Resize); this.EnableRendering = ThreeFlags.Children; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { label1 = new System.Windows.Forms.Label(); textBox1 = new System.Windows.Forms.TextBox(); button1 = new System.Windows.Forms.Button(); SuspendLayout(); // // label1 // label1.AutoSize = true; label1.Location = new System.Drawing.Point(22, 25); label1.Name = "label1"; label1.Size = new System.Drawing.Size(214, 13); label1.TabIndex = 0; label1.Text = "Name already exists : Choose another name"; // // textBox1 // textBox1.Location = new System.Drawing.Point(25, 64); textBox1.Name = "textBox1"; textBox1.Size = new System.Drawing.Size(177, 20); textBox1.TabIndex = 1; // // button1 // button1.Location = new System.Drawing.Point(25, 115); button1.Name = "button1"; button1.Size = new System.Drawing.Size(75, 23); button1.TabIndex = 2; button1.Text = "Change"; button1.UseVisualStyleBackColor = true; button1.Click += new System.EventHandler(ButtonOK_Click); // // NameDialog // AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(273, 172); Controls.Add(button1); Controls.Add(textBox1); Controls.Add(label1); KeyPreview = true; Name = "NameDialog"; Text = "NameDialog"; KeyDown += new System.Windows.Forms.KeyEventHandler(ThisEntered); ResumeLayout(false); PerformLayout(); }
public MsiSeekerForm() { InitializeComponent(); Load += new System.EventHandler(MsiSeekerFormLoad); KeyUp += new System.Windows.Forms.KeyEventHandler(MsiSeekerForm_KeyUp); FormClosing += new System.Windows.Forms.FormClosingEventHandler(MsiSeekerForm_FormClosing); if (!AppSettings.Instance.TryLoad<DeploySettings>(AppSettings.KeyDeploySettings)) { settings["p1-main"] = new DeploySetting(); settings["3.2-main"] = new DeploySetting { Ip_Postfix = "17.6", Main_Version = "3.2.2." }; settings["3.2-release"] = settings["3.2-main"]; settings["3.2.1-release"] = new DeploySetting { Ip_Postfix = "17.6", Main_Version = "3.2.1." }; settings["3.1.2-main"] = new DeploySetting { Ip_Postfix = "17.8", Server_Branch = "3.1-main", Main_Version = "3.1" }; settings["3.1.2_ps_release"] = settings["3.1.2-main"]; settings["3.1.7_ps_release"] = settings["3.1.2-main"]; settings["3.1.8_ps_release"] = settings["3.1.2-main"]; AppSettings.Instance.Initialize(AppSettings.KeyDeploySettings, settings); AppSettings.Instance.Save(AppSettings.KeyDeploySettings); } else { settings = AppSettings.Instance.Read<DeploySettings>(AppSettings.KeyDeploySettings); } }
protected bool OnKeyEvent(string eventName, System.IntPtr wParam, System.IntPtr lParam) { //DEBUG: //System.Console.WriteLine((int)lParam&0xffff);//←何故か連続押しは適用されていない System.Windows.Forms.KeyEventHandler keh = this._events[eventName] as System.Windows.Forms.KeyEventHandler; if (keh == null) { return(false); } //keyに修飾 System.Windows.Forms.Keys key = (System.Windows.Forms.Keys)(int) wParam; if ((0x20000000 & (int)lParam) != 0) { key |= System.Windows.Forms.Keys.Menu; } if (this.Ctrl) { key |= System.Windows.Forms.Keys.Control; } if (this.Shift) { key |= System.Windows.Forms.Keys.Shift; } //順番に実行 System.Windows.Forms.KeyEventArgs e = new System.Windows.Forms.KeyEventArgs(key); System.Delegate[] dels = keh.GetInvocationList(); for (int i = 0; i < dels.Length; i++) { ((System.Windows.Forms.KeyEventHandler)dels[i])(this, e); if (e.Handled) { return(true); } } return(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { searchButton = new System.Windows.Forms.Button(); ignoreCaseCheckBox = new System.Windows.Forms.CheckBox(); searchTypeComboBox = new System.Windows.Forms.ComboBox(); searchHistoryComboBox = new System.Windows.Forms.ComboBox(); label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); replaceHistoryComboBox = new System.Windows.Forms.ComboBox(); replaceButton = new System.Windows.Forms.Button(); replaceAllButton = new System.Windows.Forms.Button(); replaceModeCheckBox = new System.Windows.Forms.CheckBox(); cancelButton = new System.Windows.Forms.Button(); SuspendLayout(); // // searchButton // searchButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); searchButton.Location = new System.Drawing.Point(300, 24); searchButton.Name = "searchButton"; searchButton.Size = new System.Drawing.Size(79, 23); searchButton.TabIndex = 2; searchButton.Text = "&Search"; searchButton.UseVisualStyleBackColor = true; searchButton.Click += new System.EventHandler(this.searchButton_Click); searchButton.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // ignoreCaseCheckBox // ignoreCaseCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); ignoreCaseCheckBox.AutoSize = true; ignoreCaseCheckBox.Checked = true; ignoreCaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; ignoreCaseCheckBox.Location = new System.Drawing.Point(11, 102); ignoreCaseCheckBox.Name = "ignoreCaseCheckBox"; ignoreCaseCheckBox.Size = new System.Drawing.Size(82, 17); ignoreCaseCheckBox.TabIndex = 3; ignoreCaseCheckBox.Text = "Ignore &case"; ignoreCaseCheckBox.UseVisualStyleBackColor = true; ignoreCaseCheckBox.CheckedChanged += new System.EventHandler(this.ignoreCaseCheckBox_CheckedChanged); ignoreCaseCheckBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // searchTypeComboBox // searchTypeComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); searchTypeComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; searchTypeComboBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; searchTypeComboBox.FormattingEnabled = true; searchTypeComboBox.Location = new System.Drawing.Point(90, 100); searchTypeComboBox.Name = "searchTypeComboBox"; searchTypeComboBox.Size = new System.Drawing.Size(119, 21); searchTypeComboBox.TabIndex = 4; searchTypeComboBox.SelectedIndexChanged += new System.EventHandler(this.searchTypeComboBox_SelectedIndexChanged); searchTypeComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // searchHistoryComboBox // searchHistoryComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); searchHistoryComboBox.FormattingEnabled = true; searchHistoryComboBox.Location = new System.Drawing.Point(6, 26); searchHistoryComboBox.Name = "searchHistoryComboBox"; searchHistoryComboBox.Size = new System.Drawing.Size(288, 21); searchHistoryComboBox.TabIndex = 5; searchHistoryComboBox.TextChanged += new System.EventHandler(this.searchHistoryComboBox_TextChanged); searchHistoryComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // label1 // label1.AutoSize = true; label1.Location = new System.Drawing.Point(5, 10); label1.Name = "label1"; label1.Size = new System.Drawing.Size(47, 13); label1.TabIndex = 6; label1.Text = "Find text"; // // label2 // label2.AutoSize = true; label2.Location = new System.Drawing.Point(5, 50); label2.Name = "label2"; label2.Size = new System.Drawing.Size(69, 13); label2.TabIndex = 8; label2.Text = "Replace with"; // // replaceHistoryComboBox // replaceHistoryComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); replaceHistoryComboBox.FormattingEnabled = true; replaceHistoryComboBox.Location = new System.Drawing.Point(6, 64); replaceHistoryComboBox.Name = "replaceHistoryComboBox"; replaceHistoryComboBox.Size = new System.Drawing.Size(288, 21); replaceHistoryComboBox.TabIndex = 7; // // replaceButton // replaceButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); replaceButton.Location = new System.Drawing.Point(300, 62); replaceButton.Name = "replaceButton"; replaceButton.Size = new System.Drawing.Size(79, 23); replaceButton.TabIndex = 2; replaceButton.Text = "&Replace"; replaceButton.UseVisualStyleBackColor = true; replaceButton.Click += new System.EventHandler(this.replaceButton_Click); replaceButton.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // replaceAllButton // replaceAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); replaceAllButton.Location = new System.Drawing.Point(300, 100); replaceAllButton.Name = "replaceAllButton"; replaceAllButton.Size = new System.Drawing.Size(79, 23); replaceAllButton.TabIndex = 2; replaceAllButton.Text = "Replace &All"; replaceAllButton.UseVisualStyleBackColor = true; replaceAllButton.Click += new System.EventHandler(this.replaceAllButton_Click); replaceAllButton.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // replaceModeCheckBox // replaceModeCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); replaceModeCheckBox.AutoSize = true; replaceModeCheckBox.Checked = true; replaceModeCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; replaceModeCheckBox.Location = new System.Drawing.Point(319, 5); replaceModeCheckBox.Name = "replaceModeCheckBox"; replaceModeCheckBox.Size = new System.Drawing.Size(66, 17); replaceModeCheckBox.TabIndex = 9; replaceModeCheckBox.Text = "Replace"; replaceModeCheckBox.UseVisualStyleBackColor = true; replaceModeCheckBox.CheckedChanged += new System.EventHandler(this.replaceModeCheckBox_CheckedChanged); // // cancelButton // cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; cancelButton.Enabled = false; cancelButton.Location = new System.Drawing.Point(215, 100); cancelButton.Name = "cancelButton"; cancelButton.Size = new System.Drawing.Size(79, 23); cancelButton.TabIndex = 2; cancelButton.Text = "&Cancel"; cancelButton.UseVisualStyleBackColor = true; cancelButton.Click += new System.EventHandler(this.cancelButton_Click); cancelButton.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); // // wFindDlg // AcceptButton = this.searchButton; AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(384, 130); Controls.Add(this.replaceModeCheckBox); Controls.Add(this.label2); Controls.Add(this.replaceHistoryComboBox); Controls.Add(this.label1); Controls.Add(this.searchHistoryComboBox); Controls.Add(this.searchTypeComboBox); Controls.Add(this.cancelButton); Controls.Add(this.replaceAllButton); Controls.Add(this.replaceButton); Controls.Add(this.ignoreCaseCheckBox); Controls.Add(this.searchButton); FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; MaximizeBox = false; MaximumSize = new System.Drawing.Size(800, 199); MinimizeBox = false; MinimumSize = new System.Drawing.Size(392, 26); Name = "wFindDlg"; Padding = new System.Windows.Forms.Padding(2); ShowInTaskbar = false; StartPosition = System.Windows.Forms.FormStartPosition.Manual; Text = "Find Text"; KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindDialog_KeyDown); ResumeLayout(false); PerformLayout(); }
/// <summary> /// Обязательный метод для поддержки конструктора - не изменяйте /// содержимое данного метода при помощи редактора кода. /// </summary> private void InitializeComponent() { groupBox1 = new System.Windows.Forms.GroupBox(); comboBoxParity = new System.Windows.Forms.ComboBox(); comboBoxStopBits = new System.Windows.Forms.ComboBox(); labelParity = new System.Windows.Forms.Label(); labelStopBits = new System.Windows.Forms.Label(); labelDataBits = new System.Windows.Forms.Label(); comboBoxDataBits = new System.Windows.Forms.ComboBox(); comboBoxBautRate = new System.Windows.Forms.ComboBox(); labelBautRate = new System.Windows.Forms.Label(); labelSerialPort = new System.Windows.Forms.Label(); comboBoxPortName = new System.Windows.Forms.ComboBox(); buttonOk = new System.Windows.Forms.Button(); groupBox1.SuspendLayout(); SuspendLayout(); // // groupBox1 // groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); groupBox1.Controls.Add(comboBoxParity); groupBox1.Controls.Add(comboBoxStopBits); groupBox1.Controls.Add(labelParity); groupBox1.Controls.Add(labelStopBits); groupBox1.Controls.Add(labelDataBits); groupBox1.Controls.Add(comboBoxDataBits); groupBox1.Controls.Add(comboBoxBautRate); groupBox1.Controls.Add(labelBautRate); groupBox1.Controls.Add(labelSerialPort); groupBox1.Controls.Add(comboBoxPortName); groupBox1.Location = new System.Drawing.Point(3, 3); groupBox1.Name = "groupBox1"; groupBox1.Size = new System.Drawing.Size(209, 185); groupBox1.TabIndex = 0; groupBox1.TabStop = false; groupBox1.Text = "Настройки порта"; // // comboBoxParity // comboBoxParity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBoxParity.FormattingEnabled = true; comboBoxParity.Location = new System.Drawing.Point(94, 121); comboBoxParity.Name = "comboBoxParity"; comboBoxParity.Size = new System.Drawing.Size(109, 24); comboBoxParity.TabIndex = 12; comboBoxParity.SelectedIndexChanged += new System.EventHandler(comboBoxParity_SelectedIndexChanged); // // comboBoxStopBits // comboBoxStopBits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBoxStopBits.FormattingEnabled = true; comboBoxStopBits.Location = new System.Drawing.Point(94, 151); comboBoxStopBits.Name = "comboBoxStopBits"; comboBoxStopBits.Size = new System.Drawing.Size(109, 24); comboBoxStopBits.TabIndex = 11; comboBoxStopBits.SelectedIndexChanged += new System.EventHandler(comboBoxStopBits_SelectedIndexChanged); // // labelParity // labelParity.AutoSize = true; labelParity.Location = new System.Drawing.Point(6, 124); labelParity.Name = "labelParity"; labelParity.Size = new System.Drawing.Size(64, 17); labelParity.TabIndex = 10; labelParity.Text = "Паритет"; // // labelStopBits // labelStopBits.AutoSize = true; labelStopBits.Location = new System.Drawing.Point(6, 154); labelStopBits.Name = "labelStopBits"; labelStopBits.RightToLeft = System.Windows.Forms.RightToLeft.No; labelStopBits.Size = new System.Drawing.Size(81, 17); labelStopBits.TabIndex = 9; labelStopBits.Text = "Стоп биты:"; // // labelDataBits // labelDataBits.AutoSize = true; labelDataBits.Location = new System.Drawing.Point(6, 94); labelDataBits.Name = "labelDataBits"; labelDataBits.Size = new System.Drawing.Size(65, 17); labelDataBits.TabIndex = 8; labelDataBits.Text = "Данные:"; // // comboBoxDataBits // comboBoxDataBits.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBoxDataBits.FormattingEnabled = true; comboBoxDataBits.Location = new System.Drawing.Point(94, 91); comboBoxDataBits.Name = "comboBoxDataBits"; comboBoxDataBits.Size = new System.Drawing.Size(109, 24); comboBoxDataBits.TabIndex = 7; comboBoxDataBits.SelectedIndexChanged += new System.EventHandler(comboBoxDataBits_SelectedIndexChanged); // // comboBoxBautRate // comboBoxBautRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBoxBautRate.Location = new System.Drawing.Point(94, 61); comboBoxBautRate.Name = "comboBoxBautRate"; comboBoxBautRate.Size = new System.Drawing.Size(109, 24); comboBoxBautRate.TabIndex = 6; comboBoxBautRate.SelectedIndexChanged += new System.EventHandler(comboBoxBautRate_SelectedIndexChanged); // // labelBautRate // labelBautRate.AutoSize = true; labelBautRate.Location = new System.Drawing.Point(6, 64); labelBautRate.Name = "labelBautRate"; labelBautRate.Size = new System.Drawing.Size(73, 17); labelBautRate.TabIndex = 5; labelBautRate.Text = "Скорость:"; // // labelSerialPort // labelSerialPort.AutoSize = true; labelSerialPort.Location = new System.Drawing.Point(6, 34); labelSerialPort.Name = "labelSerialPort"; labelSerialPort.Size = new System.Drawing.Size(45, 17); labelSerialPort.TabIndex = 4; labelSerialPort.Text = "Порт:"; // // comboBoxPortName // comboBoxPortName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; comboBoxPortName.FormattingEnabled = true; comboBoxPortName.Location = new System.Drawing.Point(94, 31); comboBoxPortName.Name = "comboBoxPortName"; comboBoxPortName.Size = new System.Drawing.Size(109, 24); comboBoxPortName.TabIndex = 3; comboBoxPortName.SelectedIndexChanged += new System.EventHandler(comboBoxPortName_SelectedIndexChanged); // // buttonOk // buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); buttonOk.Location = new System.Drawing.Point(139, 191); buttonOk.Name = "buttonOk"; buttonOk.Size = new System.Drawing.Size(75, 31); buttonOk.TabIndex = 1; buttonOk.Text = "OK"; buttonOk.UseVisualStyleBackColor = true; buttonOk.Click += new System.EventHandler(buttonOk_Click); // // SerialPortSettings // AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; Controls.Add(buttonOk); Controls.Add(groupBox1); Name = "SerialPortSettings"; Size = new System.Drawing.Size(217, 227); Load += new System.EventHandler(SerialPortSettings_Load); KeyDown += new System.Windows.Forms.KeyEventHandler(SerialPortSettings_KeyDown); groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); ResumeLayout(false); }