コード例 #1
0
 private void InitializeComponent()
 {
     this.m_chk_send_data = new System.Windows.Forms.CheckBox();
     this.m_lb            = new pr.gui.ListBox();
     this.SuspendLayout();
     //
     // m_chk_send_data
     //
     this.m_chk_send_data.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.m_chk_send_data.Appearance = System.Windows.Forms.Appearance.Button;
     this.m_chk_send_data.AutoSize   = true;
     this.m_chk_send_data.Location   = new System.Drawing.Point(139, 126);
     this.m_chk_send_data.Name       = "m_chk_send_data";
     this.m_chk_send_data.Size       = new System.Drawing.Size(68, 23);
     this.m_chk_send_data.TabIndex   = 0;
     this.m_chk_send_data.Text       = "Send Data";
     this.m_chk_send_data.UseVisualStyleBackColor = true;
     //
     // m_lb
     //
     this.m_lb.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.m_lb.FormattingEnabled = true;
     this.m_lb.IntegralHeight    = false;
     this.m_lb.Location          = new System.Drawing.Point(12, 12);
     this.m_lb.Name     = "m_lb";
     this.m_lb.Size     = new System.Drawing.Size(195, 112);
     this.m_lb.TabIndex = 1;
     //
     // MainUI
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(219, 157);
     this.Controls.Add(this.m_lb);
     this.Controls.Add(this.m_chk_send_data);
     this.Name = "MainUI";
     this.Text = "Test Client";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #2
0
 private void InitializeComponent()
 {
     this.components   = new System.ComponentModel.Container();
     this.m_lb_symbols = new pr.gui.ListBox();
     this.m_cb_symbols = new pr.gui.ComboBox();
     this.m_panel_add  = new System.Windows.Forms.Panel();
     this.m_btn_add    = new System.Windows.Forms.Button();
     this.m_timer      = new System.Windows.Forms.Timer(this.components);
     this.m_panel_add.SuspendLayout();
     this.SuspendLayout();
     //
     // m_lb_symbols
     //
     this.m_lb_symbols.BorderStyle       = System.Windows.Forms.BorderStyle.FixedSingle;
     this.m_lb_symbols.DisplayProperty   = null;
     this.m_lb_symbols.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.m_lb_symbols.FormattingEnabled = true;
     this.m_lb_symbols.IntegralHeight    = false;
     this.m_lb_symbols.Location          = new System.Drawing.Point(3, 34);
     this.m_lb_symbols.Name              = "m_lb_symbols";
     this.m_lb_symbols.Size              = new System.Drawing.Size(268, 316);
     this.m_lb_symbols.TabIndex          = 0;
     //
     // m_cb_symbols
     //
     this.m_cb_symbols.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                      | System.Windows.Forms.AnchorStyles.Right)));
     this.m_cb_symbols.DisplayProperty   = null;
     this.m_cb_symbols.DropDownWidth     = 160;
     this.m_cb_symbols.FormattingEnabled = true;
     this.m_cb_symbols.Location          = new System.Drawing.Point(3, 4);
     this.m_cb_symbols.Name = "m_cb_symbols";
     this.m_cb_symbols.PreserveSelectionThruFocusChange = false;
     this.m_cb_symbols.Size     = new System.Drawing.Size(230, 21);
     this.m_cb_symbols.TabIndex = 1;
     //
     // m_panel_add
     //
     this.m_panel_add.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.m_panel_add.Controls.Add(this.m_cb_symbols);
     this.m_panel_add.Controls.Add(this.m_btn_add);
     this.m_panel_add.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_add.Location = new System.Drawing.Point(3, 3);
     this.m_panel_add.Name     = "m_panel_add";
     this.m_panel_add.Size     = new System.Drawing.Size(268, 31);
     this.m_panel_add.TabIndex = 2;
     //
     // m_btn_add
     //
     this.m_btn_add.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.m_btn_add.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.m_btn_add.Font     = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_btn_add.Location = new System.Drawing.Point(237, 3);
     this.m_btn_add.Margin   = new System.Windows.Forms.Padding(0);
     this.m_btn_add.Name     = "m_btn_add";
     this.m_btn_add.Size     = new System.Drawing.Size(25, 23);
     this.m_btn_add.TabIndex = 2;
     this.m_btn_add.Text     = "+";
     this.m_btn_add.UseVisualStyleBackColor = true;
     //
     // TradeeBotUI
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(274, 353);
     this.Controls.Add(this.m_lb_symbols);
     this.Controls.Add(this.m_panel_add);
     this.MaximizeBox = false;
     this.Name        = "TradeeBotUI";
     this.Padding     = new System.Windows.Forms.Padding(3);
     this.ShowIcon    = false;
     this.Text        = "Tradee Bot";
     this.m_panel_add.ResumeLayout(false);
     this.ResumeLayout(false);
 }