Пример #1
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SimulationUI));
     this.m_lbl_start_time           = new System.Windows.Forms.Label();
     this.m_tb_sim_time              = new System.Windows.Forms.TextBox();
     this.m_il                       = new System.Windows.Forms.ImageList(this.components);
     this.m_tt                       = new System.Windows.Forms.ToolTip(this.components);
     this.m_btn_run_to_trade         = new System.Windows.Forms.Button();
     this.m_btn_reset                = new System.Windows.Forms.Button();
     this.m_btn_run                  = new System.Windows.Forms.Button();
     this.m_btn_step_fwd             = new System.Windows.Forms.Button();
     this.m_cb_step_size             = new pr.gui.ComboBox();
     this.m_lbl_step_size            = new System.Windows.Forms.Label();
     this.m_lbl_sim_date             = new System.Windows.Forms.Label();
     this.m_dtp_start_date           = new pr.gui.DateTimePicker();
     this.m_lbl_start_balance        = new System.Windows.Forms.Label();
     this.m_tb_start_balance         = new System.Windows.Forms.TextBox();
     this.m_tbar_start_date          = new System.Windows.Forms.TrackBar();
     this.m_panel_sim_controls       = new System.Windows.Forms.Panel();
     this.m_tb_step_rate             = new pr.gui.ValueBox();
     this.m_lbl_step_rate            = new System.Windows.Forms.Label();
     this.m_panel_initial_conditions = new System.Windows.Forms.Panel();
     this.m_spinner_tbar_counts      = new System.Windows.Forms.NumericUpDown();
     this.label1                     = new System.Windows.Forms.Label();
     this.m_tb_balance               = new System.Windows.Forms.TextBox();
     this.m_panel_sim_results        = new System.Windows.Forms.Panel();
     this.m_tb_avr_profit            = new System.Windows.Forms.TextBox();
     this.m_lbl_avr_profit           = new System.Windows.Forms.Label();
     this.m_panel_step_size          = new System.Windows.Forms.Panel();
     this.m_timer_sim                = new System.Windows.Forms.Timer(this.components);
     this.m_btn_step_back            = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.m_tbar_start_date)).BeginInit();
     this.m_panel_sim_controls.SuspendLayout();
     this.m_panel_initial_conditions.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_tbar_counts)).BeginInit();
     this.m_panel_sim_results.SuspendLayout();
     this.m_panel_step_size.SuspendLayout();
     this.SuspendLayout();
     //
     // m_lbl_start_time
     //
     this.m_lbl_start_time.AutoSize = true;
     this.m_lbl_start_time.Location = new System.Drawing.Point(3, 7);
     this.m_lbl_start_time.Name     = "m_lbl_start_time";
     this.m_lbl_start_time.Size     = new System.Drawing.Size(55, 13);
     this.m_lbl_start_time.TabIndex = 1;
     this.m_lbl_start_time.Text     = "Start Date";
     //
     // m_tb_sim_time
     //
     this.m_tb_sim_time.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                       | System.Windows.Forms.AnchorStyles.Right)));
     this.m_tb_sim_time.Location = new System.Drawing.Point(59, 29);
     this.m_tb_sim_time.Name     = "m_tb_sim_time";
     this.m_tb_sim_time.ReadOnly = true;
     this.m_tb_sim_time.Size     = new System.Drawing.Size(176, 20);
     this.m_tb_sim_time.TabIndex = 2;
     //
     // m_il
     //
     this.m_il.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_il.ImageStream")));
     this.m_il.TransparentColor = System.Drawing.Color.Transparent;
     this.m_il.Images.SetKeyName(0, "media_player_start.png");
     this.m_il.Images.SetKeyName(1, "media_player_step_bck.png");
     this.m_il.Images.SetKeyName(2, "media_player_step_fwd.png");
     this.m_il.Images.SetKeyName(3, "media_player_fwd.png");
     this.m_il.Images.SetKeyName(4, "media_player_pause.png");
     this.m_il.Images.SetKeyName(5, "media_player_play.png");
     //
     // m_btn_run_to_trade
     //
     this.m_btn_run_to_trade.ImageKey  = "media_player_fwd.png";
     this.m_btn_run_to_trade.ImageList = this.m_il;
     this.m_btn_run_to_trade.Location  = new System.Drawing.Point(144, 58);
     this.m_btn_run_to_trade.Name      = "m_btn_run_to_trade";
     this.m_btn_run_to_trade.Size      = new System.Drawing.Size(45, 46);
     this.m_btn_run_to_trade.TabIndex  = 5;
     this.m_btn_run_to_trade.UseVisualStyleBackColor = true;
     //
     // m_btn_reset
     //
     this.m_btn_reset.ImageKey  = "media_player_start.png";
     this.m_btn_reset.ImageList = this.m_il;
     this.m_btn_reset.Location  = new System.Drawing.Point(0, 58);
     this.m_btn_reset.Name      = "m_btn_reset";
     this.m_btn_reset.Size      = new System.Drawing.Size(45, 46);
     this.m_btn_reset.TabIndex  = 4;
     this.m_btn_reset.UseVisualStyleBackColor = true;
     //
     // m_btn_run
     //
     this.m_btn_run.ImageKey  = "media_player_play.png";
     this.m_btn_run.ImageList = this.m_il;
     this.m_btn_run.Location  = new System.Drawing.Point(192, 58);
     this.m_btn_run.Name      = "m_btn_run";
     this.m_btn_run.Size      = new System.Drawing.Size(45, 46);
     this.m_btn_run.TabIndex  = 3;
     this.m_btn_run.UseVisualStyleBackColor = true;
     //
     // m_btn_step_fwd
     //
     this.m_btn_step_fwd.ImageKey  = "media_player_step_fwd.png";
     this.m_btn_step_fwd.ImageList = this.m_il;
     this.m_btn_step_fwd.Location  = new System.Drawing.Point(96, 58);
     this.m_btn_step_fwd.Name      = "m_btn_step_fwd";
     this.m_btn_step_fwd.Size      = new System.Drawing.Size(45, 46);
     this.m_btn_step_fwd.TabIndex  = 6;
     this.m_btn_step_fwd.UseVisualStyleBackColor = true;
     //
     // m_cb_step_size
     //
     this.m_cb_step_size.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.m_cb_step_size.DisplayProperty   = null;
     this.m_cb_step_size.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cb_step_size.FormattingEnabled = true;
     this.m_cb_step_size.Location          = new System.Drawing.Point(76, 4);
     this.m_cb_step_size.Name = "m_cb_step_size";
     this.m_cb_step_size.PreserveSelectionThruFocusChange = false;
     this.m_cb_step_size.Size     = new System.Drawing.Size(159, 21);
     this.m_cb_step_size.TabIndex = 7;
     //
     // m_lbl_step_size
     //
     this.m_lbl_step_size.AutoSize = true;
     this.m_lbl_step_size.Location = new System.Drawing.Point(12, 7);
     this.m_lbl_step_size.Name     = "m_lbl_step_size";
     this.m_lbl_step_size.Size     = new System.Drawing.Size(52, 13);
     this.m_lbl_step_size.TabIndex = 8;
     this.m_lbl_step_size.Text     = "Step Size";
     //
     // m_lbl_sim_date
     //
     this.m_lbl_sim_date.AutoSize = true;
     this.m_lbl_sim_date.Location = new System.Drawing.Point(3, 33);
     this.m_lbl_sim_date.Name     = "m_lbl_sim_date";
     this.m_lbl_sim_date.Size     = new System.Drawing.Size(53, 13);
     this.m_lbl_sim_date.TabIndex = 9;
     this.m_lbl_sim_date.Text     = "Sim Time:";
     //
     // m_dtp_start_date
     //
     this.m_dtp_start_date.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                          | System.Windows.Forms.AnchorStyles.Right)));
     this.m_dtp_start_date.CustomFormat = "ddd yyyy-MM-dd HH:mm:ss";
     this.m_dtp_start_date.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.m_dtp_start_date.Kind         = System.DateTimeKind.Unspecified;
     this.m_dtp_start_date.Location     = new System.Drawing.Point(64, 3);
     this.m_dtp_start_date.MaxDate      = new System.DateTime(9998, 12, 31, 0, 0, 0, 0);
     this.m_dtp_start_date.MinDate      = new System.DateTime(1753, 1, 1, 0, 0, 0, 0);
     this.m_dtp_start_date.Name         = "m_dtp_start_date";
     this.m_dtp_start_date.Size         = new System.Drawing.Size(171, 20);
     this.m_dtp_start_date.TabIndex     = 10;
     this.m_dtp_start_date.Value        = new System.DateTime(2016, 8, 14, 0, 0, 0, 0);
     //
     // m_lbl_start_balance
     //
     this.m_lbl_start_balance.AutoSize = true;
     this.m_lbl_start_balance.Location = new System.Drawing.Point(4, 55);
     this.m_lbl_start_balance.Name     = "m_lbl_start_balance";
     this.m_lbl_start_balance.Size     = new System.Drawing.Size(88, 13);
     this.m_lbl_start_balance.TabIndex = 11;
     this.m_lbl_start_balance.Text     = "Starting Balance:";
     //
     // m_tb_start_balance
     //
     this.m_tb_start_balance.Location = new System.Drawing.Point(95, 52);
     this.m_tb_start_balance.Name     = "m_tb_start_balance";
     this.m_tb_start_balance.Size     = new System.Drawing.Size(94, 20);
     this.m_tb_start_balance.TabIndex = 12;
     //
     // m_tbar_start_date
     //
     this.m_tbar_start_date.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                           | System.Windows.Forms.AnchorStyles.Right)));
     this.m_tbar_start_date.AutoSize  = false;
     this.m_tbar_start_date.Location  = new System.Drawing.Point(64, 29);
     this.m_tbar_start_date.Name      = "m_tbar_start_date";
     this.m_tbar_start_date.Size      = new System.Drawing.Size(171, 23);
     this.m_tbar_start_date.TabIndex  = 13;
     this.m_tbar_start_date.TickStyle = System.Windows.Forms.TickStyle.None;
     //
     // m_panel_sim_controls
     //
     this.m_panel_sim_controls.Controls.Add(this.m_btn_step_back);
     this.m_panel_sim_controls.Controls.Add(this.m_tb_step_rate);
     this.m_panel_sim_controls.Controls.Add(this.m_lbl_step_rate);
     this.m_panel_sim_controls.Controls.Add(this.m_btn_step_fwd);
     this.m_panel_sim_controls.Controls.Add(this.m_btn_run_to_trade);
     this.m_panel_sim_controls.Controls.Add(this.m_btn_reset);
     this.m_panel_sim_controls.Controls.Add(this.m_btn_run);
     this.m_panel_sim_controls.Controls.Add(this.m_tb_sim_time);
     this.m_panel_sim_controls.Controls.Add(this.m_lbl_sim_date);
     this.m_panel_sim_controls.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_sim_controls.Location = new System.Drawing.Point(0, 198);
     this.m_panel_sim_controls.Name     = "m_panel_sim_controls";
     this.m_panel_sim_controls.Size     = new System.Drawing.Size(238, 104);
     this.m_panel_sim_controls.TabIndex = 14;
     //
     // m_tb_step_rate
     //
     this.m_tb_step_rate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                        | System.Windows.Forms.AnchorStyles.Right)));
     this.m_tb_step_rate.Location = new System.Drawing.Point(137, 3);
     this.m_tb_step_rate.Name     = "m_tb_step_rate";
     this.m_tb_step_rate.Size     = new System.Drawing.Size(98, 20);
     this.m_tb_step_rate.TabIndex = 16;
     this.m_tb_step_rate.Value    = null;
     //
     // m_lbl_step_rate
     //
     this.m_lbl_step_rate.AutoSize = true;
     this.m_lbl_step_rate.Location = new System.Drawing.Point(5, 6);
     this.m_lbl_step_rate.Name     = "m_lbl_step_rate";
     this.m_lbl_step_rate.Size     = new System.Drawing.Size(114, 13);
     this.m_lbl_step_rate.TabIndex = 10;
     this.m_lbl_step_rate.Text     = "Step Rate (steps/sec):";
     //
     // m_panel_initial_conditions
     //
     this.m_panel_initial_conditions.Controls.Add(this.m_spinner_tbar_counts);
     this.m_panel_initial_conditions.Controls.Add(this.m_lbl_start_time);
     this.m_panel_initial_conditions.Controls.Add(this.m_dtp_start_date);
     this.m_panel_initial_conditions.Controls.Add(this.m_tbar_start_date);
     this.m_panel_initial_conditions.Controls.Add(this.m_tb_start_balance);
     this.m_panel_initial_conditions.Controls.Add(this.m_lbl_start_balance);
     this.m_panel_initial_conditions.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_initial_conditions.Location = new System.Drawing.Point(0, 30);
     this.m_panel_initial_conditions.Name     = "m_panel_initial_conditions";
     this.m_panel_initial_conditions.Size     = new System.Drawing.Size(238, 79);
     this.m_panel_initial_conditions.TabIndex = 15;
     //
     // m_spinner_tbar_counts
     //
     this.m_spinner_tbar_counts.Location = new System.Drawing.Point(6, 29);
     this.m_spinner_tbar_counts.Name     = "m_spinner_tbar_counts";
     this.m_spinner_tbar_counts.Size     = new System.Drawing.Size(52, 20);
     this.m_spinner_tbar_counts.TabIndex = 14;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(3, 9);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(49, 13);
     this.label1.TabIndex = 16;
     this.label1.Text     = "Balance:";
     //
     // m_tb_balance
     //
     this.m_tb_balance.Location = new System.Drawing.Point(58, 6);
     this.m_tb_balance.Name     = "m_tb_balance";
     this.m_tb_balance.ReadOnly = true;
     this.m_tb_balance.Size     = new System.Drawing.Size(80, 20);
     this.m_tb_balance.TabIndex = 17;
     //
     // m_panel_sim_results
     //
     this.m_panel_sim_results.Controls.Add(this.m_tb_avr_profit);
     this.m_panel_sim_results.Controls.Add(this.m_lbl_avr_profit);
     this.m_panel_sim_results.Controls.Add(this.label1);
     this.m_panel_sim_results.Controls.Add(this.m_tb_balance);
     this.m_panel_sim_results.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_sim_results.Location = new System.Drawing.Point(0, 109);
     this.m_panel_sim_results.Name     = "m_panel_sim_results";
     this.m_panel_sim_results.Size     = new System.Drawing.Size(238, 89);
     this.m_panel_sim_results.TabIndex = 18;
     //
     // m_tb_avr_profit
     //
     this.m_tb_avr_profit.Location = new System.Drawing.Point(58, 30);
     this.m_tb_avr_profit.Name     = "m_tb_avr_profit";
     this.m_tb_avr_profit.ReadOnly = true;
     this.m_tb_avr_profit.Size     = new System.Drawing.Size(80, 20);
     this.m_tb_avr_profit.TabIndex = 19;
     //
     // m_lbl_avr_profit
     //
     this.m_lbl_avr_profit.AutoSize = true;
     this.m_lbl_avr_profit.Location = new System.Drawing.Point(3, 33);
     this.m_lbl_avr_profit.Name     = "m_lbl_avr_profit";
     this.m_lbl_avr_profit.Size     = new System.Drawing.Size(53, 13);
     this.m_lbl_avr_profit.TabIndex = 18;
     this.m_lbl_avr_profit.Text     = "Avr Profit:";
     //
     // m_panel_step_size
     //
     this.m_panel_step_size.Controls.Add(this.m_lbl_step_size);
     this.m_panel_step_size.Controls.Add(this.m_cb_step_size);
     this.m_panel_step_size.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_step_size.Location = new System.Drawing.Point(0, 0);
     this.m_panel_step_size.Name     = "m_panel_step_size";
     this.m_panel_step_size.Size     = new System.Drawing.Size(238, 30);
     this.m_panel_step_size.TabIndex = 19;
     //
     // m_btn_step_back
     //
     this.m_btn_step_back.ImageKey  = "media_player_step_bck.png";
     this.m_btn_step_back.ImageList = this.m_il;
     this.m_btn_step_back.Location  = new System.Drawing.Point(48, 58);
     this.m_btn_step_back.Name      = "m_btn_step_back";
     this.m_btn_step_back.Size      = new System.Drawing.Size(45, 46);
     this.m_btn_step_back.TabIndex  = 17;
     this.m_btn_step_back.UseVisualStyleBackColor = true;
     //
     // SimulationUI
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(238, 326);
     this.Controls.Add(this.m_panel_sim_controls);
     this.Controls.Add(this.m_panel_sim_results);
     this.Controls.Add(this.m_panel_initial_conditions);
     this.Controls.Add(this.m_panel_step_size);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MinimumSize = new System.Drawing.Size(254, 39);
     this.Name        = "SimulationUI";
     this.PinOffset   = new System.Drawing.Point(-300, 0);
     this.Text        = "Simulation";
     ((System.ComponentModel.ISupportInitialize)(this.m_tbar_start_date)).EndInit();
     this.m_panel_sim_controls.ResumeLayout(false);
     this.m_panel_sim_controls.PerformLayout();
     this.m_panel_initial_conditions.ResumeLayout(false);
     this.m_panel_initial_conditions.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_tbar_counts)).EndInit();
     this.m_panel_sim_results.ResumeLayout(false);
     this.m_panel_sim_results.PerformLayout();
     this.m_panel_step_size.ResumeLayout(false);
     this.m_panel_step_size.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #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);
 }
Пример #3
0
 private void InitializeComponent()
 {
     this.m_split                = new System.Windows.Forms.SplitContainer();
     this.m_grid_fav             = new pr.gui.DataGridView();
     this.m_grid_all             = new pr.gui.DataGridView();
     this.m_panel_add_instrument = new System.Windows.Forms.Panel();
     this.m_cb_symbols           = new pr.gui.ComboBox();
     this.m_btn_add_instrument   = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.m_split)).BeginInit();
     this.m_split.Panel1.SuspendLayout();
     this.m_split.Panel2.SuspendLayout();
     this.m_split.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.m_grid_fav)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_grid_all)).BeginInit();
     this.m_panel_add_instrument.SuspendLayout();
     this.SuspendLayout();
     //
     // m_split
     //
     this.m_split.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.m_split.Location    = new System.Drawing.Point(0, 0);
     this.m_split.Name        = "m_split";
     this.m_split.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // m_split.Panel1
     //
     this.m_split.Panel1.Controls.Add(this.m_grid_fav);
     //
     // m_split.Panel2
     //
     this.m_split.Panel2.Controls.Add(this.m_grid_all);
     this.m_split.Panel2.Controls.Add(this.m_panel_add_instrument);
     this.m_split.Size             = new System.Drawing.Size(238, 599);
     this.m_split.SplitterDistance = 283;
     this.m_split.TabIndex         = 0;
     //
     // m_grid_fav
     //
     this.m_grid_fav.AllowUserToAddRows          = false;
     this.m_grid_fav.AllowUserToDeleteRows       = false;
     this.m_grid_fav.AllowUserToResizeRows       = false;
     this.m_grid_fav.AutoSizeColumnsMode         = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.m_grid_fav.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.m_grid_fav.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.m_grid_fav.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.m_grid_fav.Location        = new System.Drawing.Point(0, 0);
     this.m_grid_fav.Name            = "m_grid_fav";
     this.m_grid_fav.ReadOnly        = true;
     this.m_grid_fav.RowHeadersWidth = 20;
     this.m_grid_fav.SelectionMode   = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.m_grid_fav.Size            = new System.Drawing.Size(238, 283);
     this.m_grid_fav.TabIndex        = 0;
     //
     // m_grid_all
     //
     this.m_grid_all.AllowUserToAddRows          = false;
     this.m_grid_all.AllowUserToDeleteRows       = false;
     this.m_grid_all.AllowUserToResizeRows       = false;
     this.m_grid_all.AutoSizeColumnsMode         = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.m_grid_all.AutoSizeRowsMode            = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
     this.m_grid_all.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.m_grid_all.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.m_grid_all.Location        = new System.Drawing.Point(0, 24);
     this.m_grid_all.Name            = "m_grid_all";
     this.m_grid_all.ReadOnly        = true;
     this.m_grid_all.RowHeadersWidth = 20;
     this.m_grid_all.SelectionMode   = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
     this.m_grid_all.Size            = new System.Drawing.Size(238, 288);
     this.m_grid_all.TabIndex        = 1;
     //
     // m_panel_add_instrument
     //
     this.m_panel_add_instrument.Controls.Add(this.m_cb_symbols);
     this.m_panel_add_instrument.Controls.Add(this.m_btn_add_instrument);
     this.m_panel_add_instrument.Dock     = System.Windows.Forms.DockStyle.Top;
     this.m_panel_add_instrument.Location = new System.Drawing.Point(0, 0);
     this.m_panel_add_instrument.Name     = "m_panel_add_instrument";
     this.m_panel_add_instrument.Size     = new System.Drawing.Size(238, 24);
     this.m_panel_add_instrument.TabIndex = 2;
     //
     // m_cb_symbols
     //
     this.m_cb_symbols.DisplayProperty   = null;
     this.m_cb_symbols.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.m_cb_symbols.Font              = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.m_cb_symbols.FormattingEnabled = true;
     this.m_cb_symbols.Location          = new System.Drawing.Point(0, 0);
     this.m_cb_symbols.Name              = "m_cb_symbols";
     this.m_cb_symbols.PreserveSelectionThruFocusChange = false;
     this.m_cb_symbols.Size     = new System.Drawing.Size(203, 23);
     this.m_cb_symbols.TabIndex = 1;
     //
     // m_btn_add_instrument
     //
     this.m_btn_add_instrument.Dock     = System.Windows.Forms.DockStyle.Right;
     this.m_btn_add_instrument.Location = new System.Drawing.Point(203, 0);
     this.m_btn_add_instrument.Name     = "m_btn_add_instrument";
     this.m_btn_add_instrument.Size     = new System.Drawing.Size(35, 24);
     this.m_btn_add_instrument.TabIndex = 0;
     this.m_btn_add_instrument.Text     = "+";
     this.m_btn_add_instrument.UseVisualStyleBackColor = true;
     //
     // InstrumentsUI
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.m_split);
     this.Name = "InstrumentsUI";
     this.Size = new System.Drawing.Size(238, 599);
     this.m_split.Panel1.ResumeLayout(false);
     this.m_split.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_split)).EndInit();
     this.m_split.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.m_grid_fav)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_grid_all)).EndInit();
     this.m_panel_add_instrument.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Пример #4
0
 private void InitializeComponent()
 {
     this.m_btn_delete             = new System.Windows.Forms.Button();
     this.m_btn_ok                 = new System.Windows.Forms.Button();
     this.m_lbl_src_time_frame     = new System.Windows.Forms.Label();
     this.m_cb_src_time_frame      = new pr.gui.ComboBox();
     this.m_lbl_history_length     = new System.Windows.Forms.Label();
     this.m_spinner_history_length = new System.Windows.Forms.NumericUpDown();
     this.m_colour                 = new pr.gui.ColourWheel();
     this.m_lbl_colour             = new System.Windows.Forms.Label();
     this.m_cb_attribute           = new pr.gui.ComboBox();
     this.m_lbl_attribute          = new System.Windows.Forms.Label();
     this.m_lbl_gfx_width          = new System.Windows.Forms.Label();
     this.m_spinner_gfx_width      = new System.Windows.Forms.NumericUpDown();
     this.m_spinner_power          = new System.Windows.Forms.NumericUpDown();
     this.m_lbl_power              = new System.Windows.Forms.Label();
     this.m_spinner_window_size    = new System.Windows.Forms.NumericUpDown();
     this.m_lbl_window_size        = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_history_length)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_gfx_width)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_power)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).BeginInit();
     this.SuspendLayout();
     //
     // m_btn_delete
     //
     this.m_btn_delete.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.m_btn_delete.Location = new System.Drawing.Point(12, 240);
     this.m_btn_delete.Name     = "m_btn_delete";
     this.m_btn_delete.Size     = new System.Drawing.Size(75, 23);
     this.m_btn_delete.TabIndex = 14;
     this.m_btn_delete.Text     = "Delete";
     this.m_btn_delete.UseVisualStyleBackColor = true;
     //
     // m_btn_ok
     //
     this.m_btn_ok.Anchor                  = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.m_btn_ok.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this.m_btn_ok.Location                = new System.Drawing.Point(144, 240);
     this.m_btn_ok.Name                    = "m_btn_ok";
     this.m_btn_ok.Size                    = new System.Drawing.Size(75, 23);
     this.m_btn_ok.TabIndex                = 13;
     this.m_btn_ok.Text                    = "OK";
     this.m_btn_ok.UseVisualStyleBackColor = true;
     //
     // m_lbl_src_time_frame
     //
     this.m_lbl_src_time_frame.AutoSize = true;
     this.m_lbl_src_time_frame.Location = new System.Drawing.Point(9, 12);
     this.m_lbl_src_time_frame.Name     = "m_lbl_src_time_frame";
     this.m_lbl_src_time_frame.Size     = new System.Drawing.Size(102, 13);
     this.m_lbl_src_time_frame.TabIndex = 15;
     this.m_lbl_src_time_frame.Text     = "Source Time Frame:";
     //
     // m_cb_src_time_frame
     //
     this.m_cb_src_time_frame.DisplayProperty   = null;
     this.m_cb_src_time_frame.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cb_src_time_frame.FormattingEnabled = true;
     this.m_cb_src_time_frame.Location          = new System.Drawing.Point(117, 9);
     this.m_cb_src_time_frame.Name = "m_cb_src_time_frame";
     this.m_cb_src_time_frame.PreserveSelectionThruFocusChange = false;
     this.m_cb_src_time_frame.Size     = new System.Drawing.Size(102, 21);
     this.m_cb_src_time_frame.TabIndex = 16;
     //
     // m_lbl_history_length
     //
     this.m_lbl_history_length.AutoSize = true;
     this.m_lbl_history_length.Location = new System.Drawing.Point(33, 65);
     this.m_lbl_history_length.Name     = "m_lbl_history_length";
     this.m_lbl_history_length.Size     = new System.Drawing.Size(78, 13);
     this.m_lbl_history_length.TabIndex = 17;
     this.m_lbl_history_length.Text     = "History Length:";
     //
     // m_spinner_history_length
     //
     this.m_spinner_history_length.Location = new System.Drawing.Point(117, 63);
     this.m_spinner_history_length.Name     = "m_spinner_history_length";
     this.m_spinner_history_length.Size     = new System.Drawing.Size(102, 20);
     this.m_spinner_history_length.TabIndex = 18;
     //
     // m_colour
     //
     this.m_colour.Colour   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.m_colour.Location = new System.Drawing.Point(99, 119);
     this.m_colour.Name     = "m_colour";
     this.m_colour.Parts    = ((pr.gui.ColourWheel.EParts)((((((pr.gui.ColourWheel.EParts.Wheel | pr.gui.ColourWheel.EParts.VSlider)
                                                               | pr.gui.ColourWheel.EParts.ASlider)
                                                              | pr.gui.ColourWheel.EParts.ColourSelection)
                                                             | pr.gui.ColourWheel.EParts.VSelection)
                                                            | pr.gui.ColourWheel.EParts.ASelection)));
     this.m_colour.Size           = new System.Drawing.Size(120, 63);
     this.m_colour.SliderWidth    = 20;
     this.m_colour.TabIndex       = 19;
     this.m_colour.VerticalLayout = false;
     //
     // m_lbl_colour
     //
     this.m_lbl_colour.AutoSize = true;
     this.m_lbl_colour.Location = new System.Drawing.Point(47, 119);
     this.m_lbl_colour.Name     = "m_lbl_colour";
     this.m_lbl_colour.Size     = new System.Drawing.Size(40, 13);
     this.m_lbl_colour.TabIndex = 20;
     this.m_lbl_colour.Text     = "Colour:";
     //
     // m_cb_attribute
     //
     this.m_cb_attribute.DisplayProperty   = null;
     this.m_cb_attribute.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.m_cb_attribute.FormattingEnabled = true;
     this.m_cb_attribute.Location          = new System.Drawing.Point(117, 36);
     this.m_cb_attribute.Name = "m_cb_attribute";
     this.m_cb_attribute.PreserveSelectionThruFocusChange = false;
     this.m_cb_attribute.Size     = new System.Drawing.Size(102, 21);
     this.m_cb_attribute.TabIndex = 21;
     //
     // m_lbl_attribute
     //
     this.m_lbl_attribute.AutoSize = true;
     this.m_lbl_attribute.Location = new System.Drawing.Point(62, 39);
     this.m_lbl_attribute.Name     = "m_lbl_attribute";
     this.m_lbl_attribute.Size     = new System.Drawing.Size(49, 13);
     this.m_lbl_attribute.TabIndex = 22;
     this.m_lbl_attribute.Text     = "Attribute:";
     //
     // m_lbl_gfx_width
     //
     this.m_lbl_gfx_width.AutoSize = true;
     this.m_lbl_gfx_width.Location = new System.Drawing.Point(73, 190);
     this.m_lbl_gfx_width.Name     = "m_lbl_gfx_width";
     this.m_lbl_gfx_width.Size     = new System.Drawing.Size(38, 13);
     this.m_lbl_gfx_width.TabIndex = 23;
     this.m_lbl_gfx_width.Text     = "Width:";
     //
     // m_spinner_gfx_width
     //
     this.m_spinner_gfx_width.DecimalPlaces = 2;
     this.m_spinner_gfx_width.Increment     = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     this.m_spinner_gfx_width.Location = new System.Drawing.Point(117, 188);
     this.m_spinner_gfx_width.Maximum  = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.m_spinner_gfx_width.Name     = "m_spinner_gfx_width";
     this.m_spinner_gfx_width.Size     = new System.Drawing.Size(102, 20);
     this.m_spinner_gfx_width.TabIndex = 24;
     this.m_spinner_gfx_width.Value    = new decimal(new int[] {
         2,
         0,
         0,
         65536
     });
     //
     // m_spinner_power
     //
     this.m_spinner_power.DecimalPlaces = 1;
     this.m_spinner_power.Location      = new System.Drawing.Point(117, 214);
     this.m_spinner_power.Maximum       = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.m_spinner_power.Name     = "m_spinner_power";
     this.m_spinner_power.Size     = new System.Drawing.Size(102, 20);
     this.m_spinner_power.TabIndex = 26;
     this.m_spinner_power.Value    = new decimal(new int[] {
         2,
         0,
         0,
         65536
     });
     //
     // m_lbl_power
     //
     this.m_lbl_power.AutoSize = true;
     this.m_lbl_power.Location = new System.Drawing.Point(71, 216);
     this.m_lbl_power.Name     = "m_lbl_power";
     this.m_lbl_power.Size     = new System.Drawing.Size(40, 13);
     this.m_lbl_power.TabIndex = 25;
     this.m_lbl_power.Text     = "Power:";
     //
     // m_spinner_window_size
     //
     this.m_spinner_window_size.Location = new System.Drawing.Point(117, 89);
     this.m_spinner_window_size.Name     = "m_spinner_window_size";
     this.m_spinner_window_size.Size     = new System.Drawing.Size(102, 20);
     this.m_spinner_window_size.TabIndex = 27;
     //
     // m_lbl_window_size
     //
     this.m_lbl_window_size.AutoSize = true;
     this.m_lbl_window_size.Location = new System.Drawing.Point(33, 91);
     this.m_lbl_window_size.Name     = "m_lbl_window_size";
     this.m_lbl_window_size.Size     = new System.Drawing.Size(72, 13);
     this.m_lbl_window_size.TabIndex = 28;
     this.m_lbl_window_size.Text     = "Window Size:";
     //
     // EditSnrUI
     //
     this.AcceptButton        = this.m_btn_ok;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(231, 275);
     this.Controls.Add(this.m_lbl_window_size);
     this.Controls.Add(this.m_spinner_window_size);
     this.Controls.Add(this.m_spinner_power);
     this.Controls.Add(this.m_lbl_power);
     this.Controls.Add(this.m_spinner_gfx_width);
     this.Controls.Add(this.m_lbl_gfx_width);
     this.Controls.Add(this.m_lbl_attribute);
     this.Controls.Add(this.m_cb_attribute);
     this.Controls.Add(this.m_lbl_colour);
     this.Controls.Add(this.m_colour);
     this.Controls.Add(this.m_spinner_history_length);
     this.Controls.Add(this.m_lbl_history_length);
     this.Controls.Add(this.m_cb_src_time_frame);
     this.Controls.Add(this.m_lbl_src_time_frame);
     this.Controls.Add(this.m_btn_delete);
     this.Controls.Add(this.m_btn_ok);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "EditSnrUI";
     this.PinOffset       = new System.Drawing.Point(-300, 0);
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Text            = "Support & Resistance";
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_history_length)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_gfx_width)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_power)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.m_spinner_window_size)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }