public MainForm () { // // _trackBar // _trackBar = new TrackBar (); _trackBar.AutoSize = false; _trackBar.Left = 0; _trackBar.Top = 0; _trackBar.Orientation = Orientation.Vertical; _trackBar.Height = 100; _trackBar.Width = 100; _trackBar.Maximum = 100; Controls.Add (_trackBar); // // _checkBox // _checkBox = new CheckBox (); _checkBox.Location = new Point (110, 8); _checkBox.Text = "Check"; _checkBox.Width = 80; _checkBox.Checked = true; Controls.Add (_checkBox); // // MainForm // ClientSize = new Size (200, 110); Location = new Point (300, 100); StartPosition = FormStartPosition.Manual; Text = "bug #79816"; Load += new EventHandler (MainForm_Load); }
void Start () { //åå§å trackBar = GameObject.Find("Player_slider").GetComponent<TrackBar>(); player = GameObject.Find("Player").GetComponent<PlayerControl>(); lable = this.GetComponent<UILabel>(); playerRunDistance = trackBar.lengthHasBeenRun; scaleFactor = 1; }
/// <summary> /// Construct the window. /// </summary> /// <remarks> /// This method constructs the window by creating both the data grid and the button. /// </remarks> public ScrollingDataBinding( ) { this.AutoScaleBaseSize = new System.Drawing.Size (5, 13); this.ClientSize = new System.Drawing.Size (464, 253); this.Text = "09_ScrollingDataBinding" ; this.retrieveButton = new Button(); retrieveButton.Location = new System.Drawing.Point(4, 4); retrieveButton.Size = new System.Drawing.Size(75, 23); retrieveButton.TabIndex = 1; retrieveButton.Anchor = AnchorStyles.Top | AnchorStyles.Left ; retrieveButton.Text = "Retrieve"; retrieveButton.Click += new System.EventHandler (this.retrieveButton_Click); this.Controls.Add (this.retrieveButton); this.textName = new TextBox(); textName.Location = new System.Drawing.Point(4, 31); textName.Text = "Please click retrieve..."; textName.TabIndex = 2; textName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right ; textName.Size = new System.Drawing.Size(456, 20); textName.Enabled = false; this.Controls.Add(this.textName); this.textQuan = new TextBox(); textQuan.Location = new System.Drawing.Point(4, 55); textQuan.Text = ""; textQuan.TabIndex = 3; textQuan.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Top; textQuan.Size = new System.Drawing.Size(456, 20); textQuan.Enabled = false; this.Controls.Add(this.textQuan); this.trackBar = new TrackBar(); trackBar.BeginInit(); trackBar.Dock = DockStyle.Bottom ; trackBar.Location = new System.Drawing.Point(0, 275); trackBar.TabIndex = 4; trackBar.Size = new System.Drawing.Size(504, 42); trackBar.Scroll += new System.EventHandler(this.trackBar_Scroll); trackBar.Enabled = false; this.Controls.Add(this.trackBar); }
public MainForm () { // // _trackBar // _trackBar = new TrackBar (); _trackBar.Dock = DockStyle.Fill; Controls.Add (_trackBar); // // MainForm // ClientSize = new Size (300, 50); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82751"; Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _printPreviewControl // _printPreviewControl = new PrintPreviewControl (); _printPreviewControl.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); _printPreviewControl.Dock = DockStyle.Bottom; _printPreviewControl.Height = 295; _printPreviewControl.TabIndex = 0; _printPreviewControl.Zoom = 1; Controls.Add (_printPreviewControl); // // _printButton // _zoomTrackBar = new TrackBar (); _zoomTrackBar.Location = new Point (12, 12); _zoomTrackBar.Maximum = 100; _zoomTrackBar.Minimum = 1; _zoomTrackBar.Size = new Size (330, 23); _zoomTrackBar.TabIndex = 1; _zoomTrackBar.Text = "Zoom"; _zoomTrackBar.Value = 10; _zoomTrackBar.ValueChanged += new EventHandler (ZoomTrackBar_ValueChanged); Controls.Add (_zoomTrackBar); // // _printDocument // _printDocument = new PrintDocument (); _printDocument.PrintPage += new PrintPageEventHandler (PrintDocument_PrintPage); _printPreviewControl.Document = _printDocument; // // MainForm // ClientSize = new Size (350, 350); Location = new Point (200, 100); StartPosition = FormStartPosition.Manual; Text = "bug #81744"; Load += new EventHandler (MainForm_Load); }
public MForm3() { Text = "TrackBar"; Size = new Size(260, 190); tb = new TrackBar(); tb.Parent = this; tb.Size = new Size(160, 30); tb.Location = new Point(20, 40); tb.TickStyle = TickStyle.None; tb.ValueChanged += new EventHandler(OnChanged); LoadImages(); pb = new PictureBox(); pb.Parent = this; pb.Location = new Point(210, 50); pb.Image = mute; CenterToScreen(); }
public MainDialog() { Text="Dialog based application"; StartPosition = FormStartPosition.Manual; Location = new Point(100, 100); Size = new Size(700, 400); Closed += new EventHandler(MainDialog_Closed); m_Label = new Label(); m_Label.Text = ".Net Framevork"; m_Label.Name = "Label1"; m_Label.Location = new Point(16, 16); m_Label.Size = new Size(120, 16); m_Label.TextAlign = ContentAlignment.MiddleCenter; m_Label.Font = new Font("Arial", 10F, FontStyle.Italic | FontStyle.Bold); m_Label.ForeColor = Color.FromArgb(255, 0, 0); Controls.Add(m_Label); m_LLabel = new LinkLabel(); m_LLabel.Name = "Label2"; //m_LLabel.Text = "www.microsoft.com"; m_LLabel.Text = "text.txt"; m_LLabel.Location = new Point(16, 40); m_LLabel.Size = new Size(120, 16); m_LLabel.TextAlign = ContentAlignment.MiddleCenter; m_LLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(L2_LClicked); Controls.Add(m_LLabel); m_B = new Button(); m_B.Text = "Push me"; m_B.Location = new Point(18, 70); m_B.Size = new Size(100, 24); m_B.FlatStyle = System.Windows.Forms.FlatStyle.Popup; m_B.Click += new System.EventHandler(B_C); Controls.Add(m_B); m_TB = new TextBox(); m_TB.Text = ""; m_TB.Location = new Point(140, 16); m_TB.Size = new Size(160, 190); m_TB.Multiline = true; m_TB.MaxLength = 1000; m_TB.ScrollBars = ScrollBars.Both; m_TB.WordWrap = false; m_TB.TextChanged += new EventHandler(TB_TextChanged); Controls.Add(m_TB); m_RB_Red = new RadioButton(); m_RB_Red.Text = "Red"; m_RB_Red.Checked = false; m_RB_Red.Location = new Point(16, 16); m_RB_Red.Size = new Size(80, 20); m_RB_Red.Click += new System.EventHandler(RB_Click); m_RB_Red.Click += new System.EventHandler(RB_Click_Mes); m_RB_Green = new RadioButton(); m_RB_Green.Text = "Green"; m_RB_Green.Checked = true; m_RB_Green.Location = new Point(16, 36); m_RB_Green.Size = new Size(80, 20); m_RB_Green.Click += new System.EventHandler(RB_Click); m_RB_Blue = new RadioButton(); m_RB_Blue.Text = "Blue"; m_RB_Blue.Checked = false; m_RB_Blue.Location = new Point(16, 56); m_RB_Blue.Size = new Size(80, 20); m_RB_Blue.Click += new System.EventHandler(RB_Click); m_B.BackColor = Color.Green; m_GB_Color = new GroupBox(); m_GB_Color.Text = "Choose color"; m_GB_Color.Location = new Point(18, 100); m_GB_Color.Size = new Size(100, 80); m_GB_Color.Controls.AddRange(new Control[] {m_RB_Red, m_RB_Green, m_RB_Blue}); Controls.Add(m_GB_Color); m_TT = new ToolTip(); m_TT.AutomaticDelay = 300; m_TT.ShowAlways = true; m_TT.SetToolTip(m_B, "pressing the button will display message box"); m_LB = new ListBox(); m_LB.Items.Clear(); m_LB.IntegralHeight = false; m_LB.Location = new Point(310, 16); m_LB.Size = new Size(160, 90); m_LB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"}); m_LB.SelectionMode = SelectionMode.MultiSimple; m_LB.SetSelected(1, true); m_LB.SelectedIndexChanged += new EventHandler(LB_SelIndChanged); Controls.Add(m_LB); m_CLB = new CheckedListBox(); m_CLB.Items.Clear(); m_CLB.IntegralHeight = false; m_CLB.Location = new Point(310, 110); m_CLB.Size = new Size(160, 90); m_CLB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"}); m_CLB.SelectionMode = SelectionMode.One; m_CLB.SetSelected(1, true); m_CLB.CheckOnClick = true; m_CLB.SelectedIndexChanged += new EventHandler(CLB_SelIndChanged); Controls.Add(m_CLB); m_CB = new ComboBox(); m_CB.Items.Clear(); m_CB.Location = new Point(480, 16); m_CB.Size = new Size(160, 20); m_CB.DropDownStyle = ComboBoxStyle.DropDownList; m_CB.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"}); m_CB.SelectedIndex = 0; m_CB.SelectedIndexChanged += new EventHandler(CB_TextChanged); Controls.Add(m_CB); m_DUD = new DomainUpDown(); m_DUD.Items.Clear(); m_DUD.Location = new Point(480, 46); m_DUD.Size = new Size(160, 20); m_DUD.Items.AddRange(new object[]{"Red", "Orange", "Yellow", "Green", "Blue", "Indigo", "Violet"}); m_DUD.ReadOnly = true; m_DUD.UpDownAlign = LeftRightAlignment.Left; m_DUD.TextAlign = HorizontalAlignment.Right; m_DUD.Wrap = true; m_DUD.SelectedIndex = 1; Controls.Add(m_DUD); m_NUD = new NumericUpDown(); m_NUD.Location = new Point(480, 76); m_NUD.Size = new Size(160, 20); m_NUD.Minimum = new Decimal(-10); m_NUD.Maximum = new Decimal(10); m_NUD.Increment = new Decimal(0.1); m_NUD.DecimalPlaces = 1; m_NUD.Value = new Decimal(0.0); m_NUD.ValueChanged += new EventHandler(NUD_ValueChanged); Controls.Add(m_NUD); m_CT_L = new Label(); m_CT_L.Text = ""; m_CT_L.Location = new Point(18, 220); m_CT_L.Size = new Size(100, 16); m_CT_L.BorderStyle = BorderStyle.Fixed3D; m_CT_L.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(m_CT_L); m_STT_B = new Button(); m_STT_B.Text = "Start timer"; m_STT_B.Location = new Point(18, 246); m_STT_B.Size = new Size(100, 24); m_STT_B.Click += new EventHandler(STT_BC); Controls.Add(m_STT_B); m_SPT_B = new Button(); m_SPT_B.Text = "Stop timer"; m_SPT_B.Location = new Point(18, 280); m_SPT_B.Size = new Size(100, 24); m_SPT_B.Click += new EventHandler(STP_BC); Controls.Add(m_SPT_B); m_T = new Timer(); m_T.Enabled = true; m_T.Interval = 100; m_T.Stop(); m_T.Tick += new EventHandler(T_T); m_LL = new Label(); m_LL.Location = new Point(480, 116); m_LL.Size = new Size(160, 20); m_LL.TextAlign = ContentAlignment.MiddleCenter; Controls.Add(m_LL); m_TrB = new TrackBar(); m_TrB.Minimum = 0; m_TrB.Maximum = 100; m_TrB.Value = 50; m_LL.Text = "Nivelul indicatorul este " + m_TrB.Value; m_TrB.Location = new Point(480, 146); m_TrB.Size = new Size(160, 20); m_TrB.Orientation = Orientation.Horizontal; m_TrB.TickStyle = TickStyle.TopLeft; m_TrB.TickFrequency = 10; m_TrB.Scroll += new EventHandler(TrB_Scroll); Controls.Add(m_TrB); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.lblBlue = new System.Windows.Forms.Label(); this.lblGreen = new System.Windows.Forms.Label(); this.lblRed = new System.Windows.Forms.Label(); this.lblValue = new System.Windows.Forms.Label(); this.lblSaturation = new System.Windows.Forms.Label(); this.lblHue = new System.Windows.Forms.Label(); this.pnlColor = new System.Windows.Forms.Panel(); this.label5 = new System.Windows.Forms.Label(); this.pnlBrightness = new System.Windows.Forms.Panel(); this.lblAlpha2 = new System.Windows.Forms.Label(); this.tbHexCode = new System.Windows.Forms.TextBox(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.labelRed = new System.Windows.Forms.Label(); this.tbRed = new System.Windows.Forms.TrackBar(); this.labelGreen = new System.Windows.Forms.Label(); this.tbGreen = new System.Windows.Forms.TrackBar(); this.labelBlue = new System.Windows.Forms.Label(); this.tbBlue = new System.Windows.Forms.TrackBar(); this.labelAlpha1 = new System.Windows.Forms.Label(); this.tbAlpha = new System.Windows.Forms.TrackBar(); this.tbHue = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.tbSaturation = new System.Windows.Forms.TrackBar(); this.label2 = new System.Windows.Forms.Label(); this.tbValue = new System.Windows.Forms.TrackBar(); this.pnlSelectedColor = new System.Windows.Forms.Panel(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.flowLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbRed)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbHue)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbSaturation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbValue)).BeginInit(); this.SuspendLayout(); // // lblBlue // this.lblBlue.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblBlue.Location = new System.Drawing.Point(322, 70); this.lblBlue.Name = "lblBlue"; this.lblBlue.Size = new System.Drawing.Size(39, 23); this.lblBlue.TabIndex = 54; this.lblBlue.Text = "Blue"; this.lblBlue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblGreen // this.lblGreen.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblGreen.Location = new System.Drawing.Point(322, 35); this.lblGreen.Name = "lblGreen"; this.lblGreen.Size = new System.Drawing.Size(39, 23); this.lblGreen.TabIndex = 53; this.lblGreen.Text = "Green"; this.lblGreen.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblRed // this.lblRed.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblRed.Location = new System.Drawing.Point(322, 0); this.lblRed.Name = "lblRed"; this.lblRed.Size = new System.Drawing.Size(39, 23); this.lblRed.TabIndex = 52; this.lblRed.Text = "Red"; this.lblRed.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblValue // this.lblValue.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblValue.Location = new System.Drawing.Point(623, 217); this.lblValue.Name = "lblValue"; this.lblValue.Size = new System.Drawing.Size(39, 23); this.lblValue.TabIndex = 51; this.lblValue.Text = "Value"; this.lblValue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblValue.Visible = false; // // lblSaturation // this.lblSaturation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSaturation.Location = new System.Drawing.Point(623, 182); this.lblSaturation.Name = "lblSaturation"; this.lblSaturation.Size = new System.Drawing.Size(39, 23); this.lblSaturation.TabIndex = 50; this.lblSaturation.Text = "Sat"; this.lblSaturation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblSaturation.Visible = false; // // lblHue // this.lblHue.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblHue.Location = new System.Drawing.Point(623, 155); this.lblHue.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.lblHue.Name = "lblHue"; this.lblHue.Size = new System.Drawing.Size(41, 23); this.lblHue.TabIndex = 49; this.lblHue.Text = "Hue"; this.lblHue.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblHue.Visible = false; // // pnlColor // this.pnlColor.Location = new System.Drawing.Point(5, 8); this.pnlColor.Name = "pnlColor"; this.pnlColor.Size = new System.Drawing.Size(224, 216); this.pnlColor.TabIndex = 38; this.pnlColor.Visible = false; // // label5 // this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(304, 155); this.label5.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(72, 18); this.label5.TabIndex = 35; this.label5.Text = "Hue"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label5.Visible = false; // // pnlBrightness // this.pnlBrightness.Location = new System.Drawing.Point(254, 8); this.pnlBrightness.Name = "pnlBrightness"; this.pnlBrightness.Size = new System.Drawing.Size(24, 216); this.pnlBrightness.TabIndex = 39; this.pnlBrightness.Visible = false; // // lblAlpha2 // this.lblAlpha2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblAlpha2.Location = new System.Drawing.Point(322, 111); this.lblAlpha2.Name = "lblAlpha2"; this.lblAlpha2.Size = new System.Drawing.Size(39, 24); this.lblAlpha2.TabIndex = 57; this.lblAlpha2.Text = "Alpha"; this.lblAlpha2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tbHexCode // this.tbHexCode.BackColor = System.Drawing.Color.White; this.tbHexCode.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbHexCode.Location = new System.Drawing.Point(295, 50); this.tbHexCode.MaxLength = 8; this.tbHexCode.Name = "tbHexCode"; this.tbHexCode.ReadOnly = true; this.tbHexCode.Size = new System.Drawing.Size(96, 22); this.tbHexCode.TabIndex = 58; this.tbHexCode.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TbHexCodeMouseDown); // // flowLayoutPanel1 // this.flowLayoutPanel1.Controls.Add(this.labelRed); this.flowLayoutPanel1.Controls.Add(this.tbRed); this.flowLayoutPanel1.Controls.Add(this.lblRed); this.flowLayoutPanel1.Controls.Add(this.labelGreen); this.flowLayoutPanel1.Controls.Add(this.tbGreen); this.flowLayoutPanel1.Controls.Add(this.lblGreen); this.flowLayoutPanel1.Controls.Add(this.labelBlue); this.flowLayoutPanel1.Controls.Add(this.tbBlue); this.flowLayoutPanel1.Controls.Add(this.lblBlue); this.flowLayoutPanel1.Controls.Add(this.labelAlpha1); this.flowLayoutPanel1.Controls.Add(this.tbAlpha); this.flowLayoutPanel1.Controls.Add(this.lblAlpha2); this.flowLayoutPanel1.Location = new System.Drawing.Point(5, 232); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(386, 157); this.flowLayoutPanel1.TabIndex = 59; // // labelRed // this.labelRed.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelRed.Location = new System.Drawing.Point(3, 8); this.labelRed.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.labelRed.Name = "labelRed"; this.labelRed.Size = new System.Drawing.Size(72, 18); this.labelRed.TabIndex = 42; this.labelRed.Text = "Red"; this.labelRed.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbRed // this.tbRed.AutoSize = false; this.tbRed.LargeChange = 16; this.tbRed.Location = new System.Drawing.Point(78, 3); this.tbRed.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbRed.Maximum = 255; this.tbRed.Name = "tbRed"; this.tbRed.Size = new System.Drawing.Size(238, 32); this.tbRed.TabIndex = 43; this.tbRed.TickFrequency = 32; this.tbRed.Scroll += new System.EventHandler(this.HandleRGBScroll); // // labelGreen // this.labelGreen.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelGreen.Location = new System.Drawing.Point(3, 43); this.labelGreen.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.labelGreen.Name = "labelGreen"; this.labelGreen.Size = new System.Drawing.Size(72, 18); this.labelGreen.TabIndex = 44; this.labelGreen.Text = "Green"; this.labelGreen.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbGreen // this.tbGreen.AutoSize = false; this.tbGreen.LargeChange = 16; this.tbGreen.Location = new System.Drawing.Point(78, 38); this.tbGreen.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbGreen.Maximum = 255; this.tbGreen.Name = "tbGreen"; this.tbGreen.Size = new System.Drawing.Size(238, 32); this.tbGreen.TabIndex = 45; this.tbGreen.TickFrequency = 32; this.tbGreen.Scroll += new System.EventHandler(this.HandleRGBScroll); // // labelBlue // this.labelBlue.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelBlue.Location = new System.Drawing.Point(3, 78); this.labelBlue.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.labelBlue.Name = "labelBlue"; this.labelBlue.Size = new System.Drawing.Size(72, 18); this.labelBlue.TabIndex = 46; this.labelBlue.Text = "Blue"; this.labelBlue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbBlue // this.tbBlue.AutoSize = false; this.tbBlue.LargeChange = 16; this.tbBlue.Location = new System.Drawing.Point(78, 73); this.tbBlue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 6); this.tbBlue.Maximum = 255; this.tbBlue.Name = "tbBlue"; this.tbBlue.Size = new System.Drawing.Size(238, 32); this.tbBlue.TabIndex = 47; this.tbBlue.TickFrequency = 32; this.tbBlue.Scroll += new System.EventHandler(this.HandleRGBScroll); // // labelAlpha1 // this.labelAlpha1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelAlpha1.Location = new System.Drawing.Point(3, 119); this.labelAlpha1.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.labelAlpha1.Name = "labelAlpha1"; this.labelAlpha1.Size = new System.Drawing.Size(72, 18); this.labelAlpha1.TabIndex = 55; this.labelAlpha1.Text = "Alpha"; this.labelAlpha1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbAlpha // this.tbAlpha.AutoSize = false; this.tbAlpha.LargeChange = 16; this.tbAlpha.Location = new System.Drawing.Point(78, 114); this.tbAlpha.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbAlpha.Maximum = 255; this.tbAlpha.Name = "tbAlpha"; this.tbAlpha.Size = new System.Drawing.Size(238, 32); this.tbAlpha.TabIndex = 56; this.tbAlpha.TickFrequency = 32; this.tbAlpha.Scroll += new System.EventHandler(this.TbAlphaScroll); // // tbHue // this.tbHue.AutoSize = false; this.tbHue.LargeChange = 16; this.tbHue.Location = new System.Drawing.Point(379, 150); this.tbHue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbHue.Maximum = 255; this.tbHue.Name = "tbHue"; this.tbHue.Size = new System.Drawing.Size(238, 32); this.tbHue.TabIndex = 36; this.tbHue.TickFrequency = 32; this.tbHue.Visible = false; this.tbHue.Scroll += new System.EventHandler(this.HandleHSVScroll); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(304, 190); this.label1.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 18); this.label1.TabIndex = 38; this.label1.Text = "Saturation"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label1.Visible = false; // // tbSaturation // this.tbSaturation.AutoSize = false; this.tbSaturation.LargeChange = 16; this.tbSaturation.Location = new System.Drawing.Point(379, 185); this.tbSaturation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbSaturation.Maximum = 255; this.tbSaturation.Name = "tbSaturation"; this.tbSaturation.Size = new System.Drawing.Size(238, 32); this.tbSaturation.TabIndex = 39; this.tbSaturation.TickFrequency = 32; this.tbSaturation.Visible = false; this.tbSaturation.Scroll += new System.EventHandler(this.HandleHSVScroll); // // label2 // this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(304, 225); this.label2.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(72, 18); this.label2.TabIndex = 40; this.label2.Text = "Value"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label2.Visible = false; // // tbValue // this.tbValue.AutoSize = false; this.tbValue.LargeChange = 16; this.tbValue.Location = new System.Drawing.Point(379, 220); this.tbValue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 6); this.tbValue.Maximum = 255; this.tbValue.Name = "tbValue"; this.tbValue.Size = new System.Drawing.Size(238, 32); this.tbValue.TabIndex = 41; this.tbValue.TickFrequency = 32; this.tbValue.Visible = false; this.tbValue.Scroll += new System.EventHandler(this.HandleHSVScroll); // // pnlSelectedColor // this.pnlSelectedColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.pnlSelectedColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlSelectedColor.Location = new System.Drawing.Point(295, 12); this.pnlSelectedColor.Name = "pnlSelectedColor"; this.pnlSelectedColor.Size = new System.Drawing.Size(96, 32); this.pnlSelectedColor.TabIndex = 40; this.pnlSelectedColor.Visible = false; // // buttonCancel // this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.Location = new System.Drawing.Point(311, 408); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(75, 21); this.buttonCancel.TabIndex = 61; this.buttonCancel.Text = "C&ancel"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonOK // this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.Location = new System.Drawing.Point(230, 408); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(75, 21); this.buttonOK.TabIndex = 60; this.buttonOK.Text = "&OK"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // // ColorChooser // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(398, 441); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.Controls.Add(this.label5); this.Controls.Add(this.tbHue); this.Controls.Add(this.tbHexCode); this.Controls.Add(this.lblHue); this.Controls.Add(this.label1); this.Controls.Add(this.tbSaturation); this.Controls.Add(this.pnlColor); this.Controls.Add(this.lblSaturation); this.Controls.Add(this.pnlSelectedColor); this.Controls.Add(this.label2); this.Controls.Add(this.pnlBrightness); this.Controls.Add(this.tbValue); this.Controls.Add(this.flowLayoutPanel1); this.Controls.Add(this.lblValue); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.KeyPreview = true; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorChooser"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Select color"; this.Load += new System.EventHandler(this.ColorChooserLoad); this.Paint += new System.Windows.Forms.PaintEventHandler(this.ColorChooserPaint); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ColorChooser_KeyDown); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.HandleMouse); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.HandleMouse); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FormMainMouseUp); this.flowLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tbRed)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbHue)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbSaturation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbValue)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
// Token: 0x0600002A RID: 42 RVA: 0x00003D80 File Offset: 0x00001F80 public OverlayUI(OverlayElement _Config, ListView _ListView, Label _LabelHeaderFontPreview, Label _LabelHeaderFontName, Label _LabelDataFontPreview, Label _LabelDataFontName, Label _LabelBackgroundColourPreview, CheckBox _CheckBoxEnable, CheckBox _CheckBoxBackgroundEnable, NumericUpDown _NumericUpDownX, NumericUpDown _NumericUpDownY, TrackBar _TrackBarBackgroundOpacity, Button _ButtonEdit, Button _ButtonRemove, Button _ButtonMoveUp, Button _ButtonMoveDown) { DebugTools.Print("Startup: Initialising overlay user interface."); this.Config = _Config; this.ListView = _ListView; this.LabelHeaderFontPreview = _LabelHeaderFontPreview; this.LabelHeaderFontName = _LabelHeaderFontName; this.LabelDataFontPreview = _LabelDataFontPreview; this.LabelDataFontName = _LabelDataFontName; this.LabelBackgroundColourPreview = _LabelBackgroundColourPreview; this.CheckBoxEnable = _CheckBoxEnable; this.CheckBoxBackgroundEnable = _CheckBoxBackgroundEnable; this.NumericUpDownX = _NumericUpDownX; this.NumericUpDownY = _NumericUpDownY; this.TrackBarBackgroundOpacity = _TrackBarBackgroundOpacity; this.ButtonEdit = _ButtonEdit; this.ButtonRemove = _ButtonRemove; this.ButtonMoveUp = _ButtonMoveUp; this.ButtonMoveDown = _ButtonMoveDown; this.UpdateStatic(); this.ListView.CreateGraphics(); }
public Info_forma(int Ancho_lienzo, int Alto_Lienzo, int Ancho_forma, int Alto_forma, int Grosor_pared, Point Punto_origen, Point Nuevo_origen, int Columna_cuadrada_valor, int Columna_redonda_valor, int Pisos_reales, int Grados, float Distancia_entre_columnas, int Mover_ascensor, bool Rotar, TrackBar Posibilidad, TrackBar Distancia, bool Pegar_casas, string Vano_ventana, String Forma, int Col_prox, int Cant_puerta) { ancho_lienzo = Ancho_lienzo; alto_lienzo = Alto_Lienzo; ancho_forma = Ancho_forma; alto_forma = Alto_forma; grosor_pared = Grosor_pared; po = Punto_origen; punto_medio = centro(); pegar_casas = Pegar_casas; grados = Grados; a = A(); b = B(); c = C(); d = D(); nuevo_origen = Nuevo_origen; columna_cuadrada_med = Columna_cuadrada_valor; columna_redonda_med = Columna_redonda_valor; col_prox = Col_prox; espacio_forma = rectangulo(); pisos_reales = Pisos_reales; distancia_entre_columnas = Distancia_entre_columnas; mover_ascensor = Mover_ascensor; rotar_activo = Rotar; area_puntos = area(); posibilidad = Posibilidad; distancia = Distancia; cant_puerta = Cant_puerta; forma = Forma; vano_ventana = Vano_ventana; }
private void onZoomTrackBarScroll(object sender, EventArgs e) { TrackBar zoomTrackBar = sender as TrackBar; if (zoomTrackBar != null && m_ImageHandler.OriginalBitmap != null) { if (m_ImageHub.CurrentImage.Width > 40 && m_ImageHub.CurrentImage.Height > 40) { double magnificationLevel = 1; switch (zoomTrackBar.Value) { case 1: magnificationLevel = 0.2; break; case 2: magnificationLevel = 0.4; break; case 3: magnificationLevel = 0.6; break; case 4: magnificationLevel = 0.8; break; case 5: magnificationLevel = 1; break; case 6: magnificationLevel = 1.2; break; case 7: magnificationLevel = 1.4; break; case 8: magnificationLevel = 1.6; break; case 9: magnificationLevel = 1.8; break; case 10: magnificationLevel = 2.0; break; } m_ImageHub.CurrentImage.Width = Convert.ToInt32(m_ImageHandler.CurrentBitmap.Width * magnificationLevel); m_ImageHub.CurrentImage.Height = Convert.ToInt32(m_ImageHandler.CurrentBitmap.Height * magnificationLevel); m_ImageHub.CurrentImage.Refresh(); m_ImageHub.CurrentImage.Update(); } } else { zoomTrackBar.Value = 5; } }
/// <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(FiltersMonogramAACDecoder)); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.mpGradientLabel1 = new MediaPortal.UserInterface.Controls.MPGradientLabel(); this.mpGroupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.mpLabel2 = new MediaPortal.UserInterface.Controls.MPLabel(); this.mpLabel1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.volumeTrackBar = new System.Windows.Forms.TrackBar(); this.labelVolume = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelSpeakerOut = new MediaPortal.UserInterface.Controls.MPLabel(); this.comboBoxSpeakerOutput = new MediaPortal.UserInterface.Controls.MPComboBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.mpGroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.volumeTrackBar)).BeginInit(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(0, 2); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(472, 60); this.pictureBox1.TabIndex = 3; this.pictureBox1.TabStop = false; // // mpGradientLabel1 // this.mpGradientLabel1.Caption = ""; this.mpGradientLabel1.FirstColor = System.Drawing.Color.DarkSlateBlue; this.mpGradientLabel1.LastColor = System.Drawing.Color.White; this.mpGradientLabel1.Location = new System.Drawing.Point(0, 60); this.mpGradientLabel1.Name = "mpGradientLabel1"; this.mpGradientLabel1.Size = new System.Drawing.Size(472, 8); this.mpGradientLabel1.TabIndex = 4; this.mpGradientLabel1.TextColor = System.Drawing.SystemColors.ControlText; this.mpGradientLabel1.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // mpGroupBox1 // this.mpGroupBox1.Controls.Add(this.mpLabel2); this.mpGroupBox1.Controls.Add(this.mpLabel1); this.mpGroupBox1.Controls.Add(this.volumeTrackBar); this.mpGroupBox1.Controls.Add(this.labelVolume); this.mpGroupBox1.Controls.Add(this.labelSpeakerOut); this.mpGroupBox1.Controls.Add(this.comboBoxSpeakerOutput); this.mpGroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.mpGroupBox1.Location = new System.Drawing.Point(6, 74); this.mpGroupBox1.Name = "mpGroupBox1"; this.mpGroupBox1.Size = new System.Drawing.Size(462, 144); this.mpGroupBox1.TabIndex = 2; this.mpGroupBox1.TabStop = false; this.mpGroupBox1.Text = "AAC Audio Decoder Settings"; // // mpLabel2 // this.mpLabel2.AutoSize = true; this.mpLabel2.Location = new System.Drawing.Point(400, 111); this.mpLabel2.Name = "mpLabel2"; this.mpLabel2.Size = new System.Drawing.Size(44, 13); this.mpLabel2.TabIndex = 6; this.mpLabel2.Text = "10.0 dB"; // // mpLabel1 // this.mpLabel1.AutoSize = true; this.mpLabel1.Location = new System.Drawing.Point(74, 111); this.mpLabel1.Name = "mpLabel1"; this.mpLabel1.Size = new System.Drawing.Size(47, 13); this.mpLabel1.TabIndex = 5; this.mpLabel1.Text = "-10.0 dB"; // // volumeTrackBar // this.volumeTrackBar.Location = new System.Drawing.Point(116, 93); this.volumeTrackBar.Minimum = -10; this.volumeTrackBar.Name = "volumeTrackBar"; this.volumeTrackBar.Size = new System.Drawing.Size(290, 45); this.volumeTrackBar.TabIndex = 4; this.volumeTrackBar.ValueChanged += new System.EventHandler(this.volumeTrackBar_ValueChanged); // // labelVolume // this.labelVolume.AutoSize = true; this.labelVolume.Location = new System.Drawing.Point(19, 81); this.labelVolume.Name = "labelVolume"; this.labelVolume.Size = new System.Drawing.Size(79, 13); this.labelVolume.TabIndex = 3; this.labelVolume.Text = "Volume: 0.0 dB"; // // labelSpeakerOut // this.labelSpeakerOut.AutoSize = true; this.labelSpeakerOut.Location = new System.Drawing.Point(19, 28); this.labelSpeakerOut.Name = "labelSpeakerOut"; this.labelSpeakerOut.Size = new System.Drawing.Size(132, 13); this.labelSpeakerOut.TabIndex = 2; this.labelSpeakerOut.Text = "Speaker Output Properties"; // // comboBoxSpeakerOutput // this.comboBoxSpeakerOutput.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboBoxSpeakerOutput.BorderColor = System.Drawing.Color.Empty; this.comboBoxSpeakerOutput.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxSpeakerOutput.Items.AddRange(new object[] { "No channel mixing", "Mix to mono (1 channel)", "Mix to stereo (2 channels)", "Mix to 2.1 (3 channels)", "Mix to quadrophonic (4 channels)", "Mix to 5.1 (6 channels)" }); this.comboBoxSpeakerOutput.Location = new System.Drawing.Point(103, 50); this.comboBoxSpeakerOutput.Name = "comboBoxSpeakerOutput"; this.comboBoxSpeakerOutput.Size = new System.Drawing.Size(320, 21); this.comboBoxSpeakerOutput.TabIndex = 1; // // FiltersMonogramAACDecoder // this.Controls.Add(this.mpGradientLabel1); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.mpGroupBox1); this.Name = "FiltersMonogramAACDecoder"; this.Size = new System.Drawing.Size(472, 408); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.mpGroupBox1.ResumeLayout(false); this.mpGroupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.volumeTrackBar)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Save setting from windows form control to current INI file. /// </summary> /// <param name="path">path of parameter (related to actual control)</param> /// <param name="dstIniSection">if not null then section will be different inside INI file than specified in path</param> public bool SaveSetting(Ini ini, string path, bool single = false) { var control = SettingsMap[path]; var section = path.Split('\\')[0]; string key = path.Split('\\')[1]; var padIndex = SettingName.GetPadIndex(path); string v = string.Empty; if (key == SettingName.HookMode || key.EndsWith(SettingName.GamePadType) || key.EndsWith(SettingName.ForceType) || key.EndsWith(SettingName.LeftMotorDirection) || key.EndsWith(SettingName.RightMotorDirection) || key.EndsWith(SettingName.PassThroughIndex) || key.EndsWith(SettingName.CombinedIndex)) { var v1 = ((ComboBox)control).SelectedItem; if (v1 == null) { v = "0"; } else if (v1 is KeyValuePair) { v = ((KeyValuePair)v1).Value; } else { v = System.Convert.ToInt32(v1).ToString(); } } // If di menu strip attached. else if (control is ComboBox) { var cbx = (ComboBox)control; if (control.ContextMenuStrip == null) { v = control.Text; } else { v = SettingsConverter.ToIniValue(control.Text); // make sure that disabled button value is "0". if (SettingName.IsButton(key) && string.IsNullOrEmpty(v)) { v = "0"; } } // If mapping setting changed then... if (single && key.EndsWith(SettingName.MapToPad)) { // Remember device which needs to be restored. MainForm.Current.AutoSelectControllerInstance = GetInstanceGuid(padIndex); MainForm.Current.ControllerIndex = padIndex; } } else if (control is TextBox) { // if setting is read-only. if (key == SettingName.InstanceGuid || key == SettingName.ProductGuid) { v = string.IsNullOrEmpty(control.Text) ? Guid.Empty.ToString("D") : control.Text; } else { v = control.Text; } } else if (control is ListBox) { var lbx = (ListBox)control; v = string.Join(",", lbx.Items.Cast <string>().ToArray()); } else if (control is NumericUpDown) { NumericUpDown nud = (NumericUpDown)control; v = nud.Value.ToString(); } else if (control is TrackBar) { TrackBar tc = (TrackBar)control; // convert 100% to 256 if (key == SettingName.AxisToDPadDeadZone || key == SettingName.AxisToDPadOffset || key == SettingName.LeftTriggerDeadZone || key == SettingName.RightTriggerDeadZone) { v = System.Convert.ToInt32((float)tc.Value / 100F * 256F).ToString(); } // convert 100% to 500 else if (key == SettingName.LeftMotorPeriod || key == SettingName.RightMotorPeriod) { v = System.Convert.ToInt32((float)tc.Value / 100F * 500F).ToString(); } // Convert 100% to 32767 else if (key == SettingName.LeftThumbDeadZoneX || key == SettingName.LeftThumbDeadZoneY || key == SettingName.RightThumbDeadZoneX || key == SettingName.RightThumbDeadZoneY) { v = System.Convert.ToInt32((float)tc.Value / 100F * ((float)Int16.MaxValue)).ToString(); } else { v = tc.Value.ToString(); } } else if (control is CheckBox) { CheckBox tc = (CheckBox)control; v = tc.Checked ? "1" : "0"; } if (SettingName.IsThumbAxis(key)) { v = v.Replace(SettingName.SType.Axis, ""); } // If this is DPad setting then remove prefix. if (key == SettingName.DPad) { v = v.Replace(SettingName.SType.POV, ""); } //if (v == "v1") v = "UP"; //if (v == "v2") v = "RIGHT"; //if (v == "v3") v = "DOWN"; //if (v == "v4") v = "LEFT"; //if (v == "") //{ // if (key == SettingName.DPadUp) v = "UP"; // if (key == SettingName.DPadDown) v = "DOWN"; // if (key == SettingName.DPadLeft) v = "LEFT"; // if (key == SettingName.DPadRight) v = "RIGHT"; //} // add comment. //var l = SettingName.MaxNameLength - key.Length + 24; //v = string.Format("{0, -" + l + "} # {1} Default: '{2}'.", v, SettingName.GetDescription(key), SettingName.GetDefaultValue(key)); // If this is PAD section then if (padIndex > -1) { section = GetInstanceSection(padIndex); // If destination section is empty because controller is not connected then skip. if (string.IsNullOrEmpty(section)) { return(false); } } var oldValue = ini.GetValue(section, key); var saved = false; if (oldValue != v) { ini.SetValue(section, key, v); saveCount++; saved = true; if (ConfigSaved != null) { ConfigSaved(this, new SettingEventArgs(IniFileName, saveCount)); } } // Flush XML too. Save(); return(saved); }
/// <summary> /// Read setting from INI file into windows form control. /// </summary> public void LoadSetting(Control control, string key = null, string value = null) { if (key != null && ( key == SettingName.HookMode || key.EndsWith(SettingName.GamePadType) || key.EndsWith(SettingName.ForceType) || key.EndsWith(SettingName.LeftMotorDirection) || key.EndsWith(SettingName.RightMotorDirection) || key.EndsWith(SettingName.PassThroughIndex) || key.EndsWith(SettingName.CombinedIndex) ) ) { var cbx = (ComboBox)control; for (int i = 0; i < cbx.Items.Count; i++) { if (cbx.Items[i] is KeyValuePair) { var kv = (KeyValuePair)cbx.Items[i]; if (kv.Value == value) { cbx.SelectedIndex = i; break; } } else { var kv = System.Convert.ToInt32(cbx.Items[i]); if (kv.ToString() == value) { cbx.SelectedIndex = i; break; } } } } // If DI menu strip attached. else if (control is ComboBox) { var cbx = (ComboBox)control; if (control.ContextMenuStrip == null) { control.Text = value; } else { var text = SettingsConverter.ToTextValue(value); SetComboBoxValue(cbx, text); } } else if (control is TextBox) { // if setting is read-only. if (key == SettingName.ProductName) { return; } if (key == SettingName.ProductGuid) { return; } if (key == SettingName.InstanceGuid) { return; } // Always override version. if (key == SettingName.Version) { value = SettingName.DefaultVersion; } control.Text = value; } else if (control is NumericUpDown) { var nud = (NumericUpDown)control; decimal n = 0; decimal.TryParse(value, out n); if (n < nud.Minimum) { n = nud.Minimum; } if (n > nud.Maximum) { n = nud.Maximum; } nud.Value = n; } else if (control is TrackBar) { TrackBar tc = (TrackBar)control; int n = 0; int.TryParse(value, out n); // convert 256 to 100% if (key == SettingName.AxisToDPadDeadZone || key == SettingName.AxisToDPadOffset || key == SettingName.LeftTriggerDeadZone || key == SettingName.RightTriggerDeadZone) { if (key == SettingName.AxisToDPadDeadZone && value == "") { n = 256; } n = System.Convert.ToInt32((float)n / 256F * 100F); } // Convert 500 to 100% else if (key == SettingName.LeftMotorPeriod || key == SettingName.RightMotorPeriod) { n = System.Convert.ToInt32((float)n / 500F * 100F); } // Convert 32767 to 100% else if (key == SettingName.LeftThumbDeadZoneX || key == SettingName.LeftThumbDeadZoneY || key == SettingName.RightThumbDeadZoneX || key == SettingName.RightThumbDeadZoneY) { n = System.Convert.ToInt32((float)n / ((float)Int16.MaxValue) * 100F); } if (n < tc.Minimum) { n = tc.Minimum; } if (n > tc.Maximum) { n = tc.Maximum; } tc.Value = n; } else if (control is CheckBox) { CheckBox tc = (CheckBox)control; int n = 0; int.TryParse(value, out n); tc.Checked = n != 0; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(AdminForm)); this.showToastPanel = new System.Windows.Forms.Panel(); this.toastNoRadio = new System.Windows.Forms.RadioButton(); this.toastYesRadio = new System.Windows.Forms.RadioButton(); this.label11 = new System.Windows.Forms.Label(); this.premiumInfoGroupBox = new System.Windows.Forms.GroupBox(); this.ListenKeyLinkLabel = new System.Windows.Forms.LinkLabel(); this.ListenKeyTextbox = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.serviceLevelValues = new System.Windows.Forms.CheckedListBox(); this.label5 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); this.PasswordTextbox = new System.Windows.Forms.TextBox(); this.UsernameTextbox = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); this.lable12 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.trackBarValue = new System.Windows.Forms.Label(); this.transparencyTrackBar = new System.Windows.Forms.TrackBar(); this.label4 = new System.Windows.Forms.Label(); this.sortByValue = new System.Windows.Forms.DomainUpDown(); this.adminFormToolStrip = new System.Windows.Forms.ToolStrip(); this.toolStripStatusLabel = new System.Windows.Forms.ToolStripLabel(); this.toolStripSave = new System.Windows.Forms.ToolStripButton(); this.toolStripLoadDefaults = new System.Windows.Forms.ToolStripButton(); this.label3 = new System.Windows.Forms.Label(); this.sortOrderValue = new System.Windows.Forms.DomainUpDown(); this.previousChannelPanel = new System.Windows.Forms.Panel(); this.rememberNoRadio = new System.Windows.Forms.RadioButton(); this.rememberYesRadio = new System.Windows.Forms.RadioButton(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.AdminErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.refreshCounter1 = new RefreshCounter(); this.channelColorPicker = new ColorPicker(); this.alternatingChannelColorPicker = new ColorPicker(); this.selectedChannelColorPicker = new ColorPicker(); this.label13 = new System.Windows.Forms.Label(); this.calendarFormatValue = new System.Windows.Forms.DomainUpDown(); this.showToastPanel.SuspendLayout(); this.premiumInfoGroupBox.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.transparencyTrackBar)).BeginInit(); this.adminFormToolStrip.SuspendLayout(); this.previousChannelPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.AdminErrorProvider)).BeginInit(); this.SuspendLayout(); // // showToastPanel // this.showToastPanel.Controls.Add(this.toastNoRadio); this.showToastPanel.Controls.Add(this.toastYesRadio); this.showToastPanel.Controls.Add(this.label11); this.showToastPanel.Location = new System.Drawing.Point(8, 189); this.showToastPanel.Name = "showToastPanel"; this.showToastPanel.Size = new System.Drawing.Size(218, 23); this.showToastPanel.TabIndex = 28; // // toastNoRadio // this.toastNoRadio.AutoSize = true; this.toastNoRadio.Location = new System.Drawing.Point(173, 1); this.toastNoRadio.Name = "toastNoRadio"; this.toastNoRadio.Size = new System.Drawing.Size(39, 17); this.toastNoRadio.TabIndex = 2; this.toastNoRadio.Text = "No"; this.toastNoRadio.UseVisualStyleBackColor = true; // // toastYesRadio // this.toastYesRadio.AutoSize = true; this.toastYesRadio.Checked = true; this.toastYesRadio.Location = new System.Drawing.Point(126, 1); this.toastYesRadio.Name = "toastYesRadio"; this.toastYesRadio.Size = new System.Drawing.Size(43, 17); this.toastYesRadio.TabIndex = 1; this.toastYesRadio.TabStop = true; this.toastYesRadio.Text = "Yes"; this.toastYesRadio.UseVisualStyleBackColor = true; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(-3, 1); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(91, 13); this.label11.TabIndex = 0; this.label11.Text = "Show Info Toast?"; // // premiumInfoGroupBox // this.premiumInfoGroupBox.Controls.Add(this.ListenKeyLinkLabel); this.premiumInfoGroupBox.Controls.Add(this.ListenKeyTextbox); this.premiumInfoGroupBox.Controls.Add(this.label12); this.premiumInfoGroupBox.Controls.Add(this.serviceLevelValues); this.premiumInfoGroupBox.Controls.Add(this.label5); this.premiumInfoGroupBox.Controls.Add(this.label10); this.premiumInfoGroupBox.Controls.Add(this.PasswordTextbox); this.premiumInfoGroupBox.Controls.Add(this.UsernameTextbox); this.premiumInfoGroupBox.Controls.Add(this.label9); this.premiumInfoGroupBox.Controls.Add(this.lable12); this.premiumInfoGroupBox.Location = new System.Drawing.Point(8, 302); this.premiumInfoGroupBox.Name = "premiumInfoGroupBox"; this.premiumInfoGroupBox.Size = new System.Drawing.Size(218, 173); this.premiumInfoGroupBox.TabIndex = 25; this.premiumInfoGroupBox.TabStop = false; this.premiumInfoGroupBox.Text = "Premium Info"; // // ListenKeyLinkLabel // this.ListenKeyLinkLabel.AutoSize = true; this.ListenKeyLinkLabel.Cursor = System.Windows.Forms.Cursors.Hand; this.ListenKeyLinkLabel.DisabledLinkColor = System.Drawing.Color.Red; this.ListenKeyLinkLabel.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; this.ListenKeyLinkLabel.LinkColor = System.Drawing.Color.Navy; this.ListenKeyLinkLabel.Location = new System.Drawing.Point(67, 131); this.ListenKeyLinkLabel.Name = "ListenKeyLinkLabel"; this.ListenKeyLinkLabel.Size = new System.Drawing.Size(112, 13); this.ListenKeyLinkLabel.TabIndex = 30; this.ListenKeyLinkLabel.TabStop = true; this.ListenKeyLinkLabel.Text = "What is my listen key?"; this.ListenKeyLinkLabel.VisitedLinkColor = System.Drawing.Color.Blue; this.ListenKeyLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.ListenKeyLinkLabel_LinkClicked); // // ListenKeyTextbox // this.ListenKeyTextbox.Enabled = false; this.ListenKeyTextbox.Location = new System.Drawing.Point(70, 108); this.ListenKeyTextbox.Name = "ListenKeyTextbox"; this.ListenKeyTextbox.Size = new System.Drawing.Size(142, 20); this.ListenKeyTextbox.TabIndex = 29; // // label12 // this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(6, 110); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(59, 13); this.label12.TabIndex = 28; this.label12.Text = "Listen Key:"; // // serviceLevelValues // this.serviceLevelValues.CheckOnClick = true; this.serviceLevelValues.FormattingEnabled = true; this.serviceLevelValues.Location = new System.Drawing.Point(90, 16); this.serviceLevelValues.Name = "serviceLevelValues"; this.serviceLevelValues.Size = new System.Drawing.Size(122, 34); this.serviceLevelValues.TabIndex = 6; this.serviceLevelValues.ThreeDCheckBoxes = true; this.serviceLevelValues.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.serviceLevelValues_ItemCheck); this.serviceLevelValues.SelectedIndexChanged += new System.EventHandler(this.serviceLevelValues_SelectedIndexChanged); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(6, 147); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(98, 13); this.label5.TabIndex = 27; this.label5.Text = "Form Transparency"; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(6, 16); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(75, 13); this.label10.TabIndex = 5; this.label10.Text = "Service Level:"; // // PasswordTextbox // this.PasswordTextbox.Enabled = false; this.PasswordTextbox.Location = new System.Drawing.Point(70, 82); this.PasswordTextbox.Name = "PasswordTextbox"; this.PasswordTextbox.Size = new System.Drawing.Size(142, 20); this.PasswordTextbox.TabIndex = 4; this.PasswordTextbox.UseSystemPasswordChar = true; // // UsernameTextbox // this.UsernameTextbox.Enabled = false; this.UsernameTextbox.Location = new System.Drawing.Point(70, 56); this.UsernameTextbox.Name = "UsernameTextbox"; this.UsernameTextbox.Size = new System.Drawing.Size(142, 20); this.UsernameTextbox.TabIndex = 3; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(6, 85); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(56, 13); this.label9.TabIndex = 2; this.label9.Text = "Password:"******"lable12"; this.lable12.Size = new System.Drawing.Size(58, 13); this.lable12.TabIndex = 1; this.lable12.Text = "Username:"******"label8"; this.label8.Size = new System.Drawing.Size(118, 13); this.label8.TabIndex = 24; this.label8.Text = "Selected Channel Color"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(59, 77); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(126, 13); this.label7.TabIndex = 23; this.label7.Text = "Alternating Channel Color"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(81, 35); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(73, 13); this.label6.TabIndex = 22; this.label6.Text = "Channel Color"; // // trackBarValue // this.trackBarValue.AutoSize = true; this.trackBarValue.Location = new System.Drawing.Point(127, 385); this.trackBarValue.Name = "trackBarValue"; this.trackBarValue.Size = new System.Drawing.Size(98, 13); this.trackBarValue.TabIndex = 17; this.trackBarValue.Text = "Form Transparency"; // // transparencyTrackBar // this.transparencyTrackBar.Location = new System.Drawing.Point(8, 481); this.transparencyTrackBar.Maximum = 100; this.transparencyTrackBar.Name = "transparencyTrackBar"; this.transparencyTrackBar.Size = new System.Drawing.Size(219, 45); this.transparencyTrackBar.SmallChange = 5; this.transparencyTrackBar.TabIndex = 16; this.transparencyTrackBar.TickFrequency = 10; this.transparencyTrackBar.Scroll += new System.EventHandler(this.transparencyTrackBar_Scroll); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(4, 242); this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(89, 13); this.label4.TabIndex = 12; this.label4.Text = "Channel Sort By: "; // // sortByValue // this.sortByValue.Location = new System.Drawing.Point(119, 240); this.sortByValue.Margin = new System.Windows.Forms.Padding(2); this.sortByValue.Name = "sortByValue"; this.sortByValue.Size = new System.Drawing.Size(105, 20); this.sortByValue.Sorted = true; this.sortByValue.TabIndex = 11; this.sortByValue.Wrap = true; // // adminFormToolStrip // this.adminFormToolStrip.Dock = System.Windows.Forms.DockStyle.Bottom; this.adminFormToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel, this.toolStripSave, this.toolStripLoadDefaults }); this.adminFormToolStrip.Location = new System.Drawing.Point(0, 521); this.adminFormToolStrip.Name = "adminFormToolStrip"; this.adminFormToolStrip.Size = new System.Drawing.Size(234, 25); this.adminFormToolStrip.TabIndex = 9; this.adminFormToolStrip.Text = "toolStrip1"; // // toolStripStatusLabel // this.toolStripStatusLabel.Name = "toolStripStatusLabel"; this.toolStripStatusLabel.Size = new System.Drawing.Size(39, 22); this.toolStripStatusLabel.Text = "Ready"; // // toolStripSave // this.toolStripSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripSave.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSave.Image"))); this.toolStripSave.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripSave.Name = "toolStripSave"; this.toolStripSave.Size = new System.Drawing.Size(35, 22); this.toolStripSave.Text = "S&ave"; this.toolStripSave.Click += new System.EventHandler(this.saveButton_Click); // // toolStripLoadDefaults // this.toolStripLoadDefaults.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripLoadDefaults.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripLoadDefaults.Image = ((System.Drawing.Image)(resources.GetObject("toolStripLoadDefaults.Image"))); this.toolStripLoadDefaults.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripLoadDefaults.Name = "toolStripLoadDefaults"; this.toolStripLoadDefaults.Size = new System.Drawing.Size(83, 22); this.toolStripLoadDefaults.Text = "Load &Defaults"; this.toolStripLoadDefaults.Click += new System.EventHandler(this.reloadDefaultsButton_Click); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(4, 219); this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(103, 13); this.label3.TabIndex = 8; this.label3.Text = "Channel Sort Order: "; // // sortOrderValue // this.sortOrderValue.Location = new System.Drawing.Point(119, 217); this.sortOrderValue.Margin = new System.Windows.Forms.Padding(2); this.sortOrderValue.Name = "sortOrderValue"; this.sortOrderValue.Size = new System.Drawing.Size(105, 20); this.sortOrderValue.Sorted = true; this.sortOrderValue.TabIndex = 4; this.sortOrderValue.Wrap = true; // // previousChannelPanel // this.previousChannelPanel.Controls.Add(this.rememberNoRadio); this.previousChannelPanel.Controls.Add(this.rememberYesRadio); this.previousChannelPanel.Controls.Add(this.label2); this.previousChannelPanel.Location = new System.Drawing.Point(8, 163); this.previousChannelPanel.Margin = new System.Windows.Forms.Padding(2); this.previousChannelPanel.Name = "previousChannelPanel"; this.previousChannelPanel.Size = new System.Drawing.Size(217, 21); this.previousChannelPanel.TabIndex = 3; // // rememberNoRadio // this.rememberNoRadio.AutoSize = true; this.rememberNoRadio.Location = new System.Drawing.Point(173, 2); this.rememberNoRadio.Margin = new System.Windows.Forms.Padding(2); this.rememberNoRadio.Name = "rememberNoRadio"; this.rememberNoRadio.Size = new System.Drawing.Size(39, 17); this.rememberNoRadio.TabIndex = 2; this.rememberNoRadio.Text = "&No"; this.rememberNoRadio.UseVisualStyleBackColor = true; // // rememberYesRadio // this.rememberYesRadio.AutoSize = true; this.rememberYesRadio.Checked = true; this.rememberYesRadio.Location = new System.Drawing.Point(126, 2); this.rememberYesRadio.Margin = new System.Windows.Forms.Padding(2); this.rememberYesRadio.Name = "rememberYesRadio"; this.rememberYesRadio.Size = new System.Drawing.Size(43, 17); this.rememberYesRadio.TabIndex = 1; this.rememberYesRadio.TabStop = true; this.rememberYesRadio.Text = "&Yes"; this.rememberYesRadio.UseVisualStyleBackColor = true; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(-3, 2); this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(119, 13); this.label2.TabIndex = 0; this.label2.Text = "Play Previous Channel?"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(5, 10); this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(117, 13); this.label1.TabIndex = 4; this.label1.Text = "Playlist Refresh Interval"; // // AdminErrorProvider // this.AdminErrorProvider.ContainerControl = this; // // refreshCounter1 // this.refreshCounter1.Location = new System.Drawing.Point(164, 5); this.refreshCounter1.Margin = new System.Windows.Forms.Padding(2); this.refreshCounter1.Name = "refreshCounter1"; this.refreshCounter1.Size = new System.Drawing.Size(56, 18); this.refreshCounter1.TabIndex = 26; this.refreshCounter1.Value = "02:11"; // // channelColorPicker // this.channelColorPicker.Color = System.Drawing.Color.Gainsboro; this.channelColorPicker.Location = new System.Drawing.Point(8, 51); this.channelColorPicker.Name = "channelColorPicker"; this.channelColorPicker.Size = new System.Drawing.Size(218, 23); this.channelColorPicker.TabIndex = 21; // // alternatingChannelColorPicker // this.alternatingChannelColorPicker.Color = System.Drawing.Color.WhiteSmoke; this.alternatingChannelColorPicker.Location = new System.Drawing.Point(8, 93); this.alternatingChannelColorPicker.Name = "alternatingChannelColorPicker"; this.alternatingChannelColorPicker.Size = new System.Drawing.Size(218, 23); this.alternatingChannelColorPicker.TabIndex = 20; // // selectedChannelColorPicker // this.selectedChannelColorPicker.Color = System.Drawing.Color.Beige; this.selectedChannelColorPicker.Location = new System.Drawing.Point(8, 135); this.selectedChannelColorPicker.Name = "selectedChannelColorPicker"; this.selectedChannelColorPicker.Size = new System.Drawing.Size(218, 23); this.selectedChannelColorPicker.TabIndex = 19; // // label13 // this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(4, 267); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(87, 13); this.label13.TabIndex = 29; this.label13.Text = "Calendar Format:"; // // calendarFormatValue // this.calendarFormatValue.Location = new System.Drawing.Point(119, 265); this.calendarFormatValue.Name = "calendarFormatValue"; this.calendarFormatValue.Size = new System.Drawing.Size(105, 20); this.calendarFormatValue.TabIndex = 30; // // AdminForm // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(234, 546); this.Controls.Add(this.calendarFormatValue); this.Controls.Add(this.label13); this.Controls.Add(this.showToastPanel); this.Controls.Add(this.refreshCounter1); this.Controls.Add(this.premiumInfoGroupBox); this.Controls.Add(this.label8); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.channelColorPicker); this.Controls.Add(this.alternatingChannelColorPicker); this.Controls.Add(this.selectedChannelColorPicker); this.Controls.Add(this.trackBarValue); this.Controls.Add(this.transparencyTrackBar); this.Controls.Add(this.label4); this.Controls.Add(this.sortByValue); this.Controls.Add(this.adminFormToolStrip); this.Controls.Add(this.label3); this.Controls.Add(this.sortOrderValue); this.Controls.Add(this.previousChannelPanel); this.Controls.Add(this.label1); this.DoubleBuffered = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(2); this.Name = "AdminForm"; this.ShowInTaskbar = false; this.Text = "Digitally Imported Radio :: Options"; this.Load += new System.EventHandler(this.DIAdmin_Load); this.showToastPanel.ResumeLayout(false); this.showToastPanel.PerformLayout(); this.premiumInfoGroupBox.ResumeLayout(false); this.premiumInfoGroupBox.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.transparencyTrackBar)).EndInit(); this.adminFormToolStrip.ResumeLayout(false); this.adminFormToolStrip.PerformLayout(); this.previousChannelPanel.ResumeLayout(false); this.previousChannelPanel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.AdminErrorProvider)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Read setting from INI file into windows form control. /// </summary> public void ReadSettingTo(Control control, string key, string value) { if (key == SettingName.HookMode || key.EndsWith(SettingName.GamePadType) || key.EndsWith(SettingName.ForceType) || key.EndsWith(SettingName.LeftMotorDirection) || key.EndsWith(SettingName.RightMotorDirection) || key.EndsWith(SettingName.PassThroughIndex) || key.EndsWith(SettingName.CombinedIndex)) { var cbx = (ComboBox)control; for (int i = 0; i < cbx.Items.Count; i++) { if (cbx.Items[i] is KeyValuePair) { var kv = (KeyValuePair)cbx.Items[i]; if (kv.Value == value) { cbx.SelectedIndex = i; break; } } else { var kv = System.Convert.ToInt32(cbx.Items[i]); if (kv.ToString() == value) { cbx.SelectedIndex = i; break; } } } } // If Di menu strip attached. else if (control is ComboBox) { var cbx = (ComboBox)control; if (control.ContextMenuStrip == null) { control.Text = value; } else { var text = SettingsConverter.ToTextValue(value); SetComboBoxValue(cbx, text); } } else if (control is TextBox) { // if setting is read-only. if (key == SettingName.ProductName) { return; } if (key == SettingName.ProductGuid) { return; } if (key == SettingName.InstanceGuid) { return; } if (key == SettingName.InternetDatabaseUrl && string.IsNullOrEmpty(value)) { value = SettingName.DefaultInternetDatabaseUrl; } // Always override version. if (key == SettingName.Version) { value = SettingName.DefaultVersion; } control.Text = value; } else if (control is ListBox) { var lbx = (ListBox)control; lbx.Items.Clear(); if (string.IsNullOrEmpty(value)) { var folders = new List <string>(); if (Environment.Is64BitOperatingSystem) { var pf = Environment.GetEnvironmentVariable("ProgramW6432"); if (System.IO.Directory.Exists(pf)) { folders.Add(pf); } } var pf86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86); if (System.IO.Directory.Exists(pf86)) { folders.Add(pf86); } lbx.Items.AddRange(folders.ToArray()); } else { lbx.Items.AddRange(value.Split(',')); } } else if (control is NumericUpDown) { var nud = (NumericUpDown)control; decimal n = 0; decimal.TryParse(value, out n); if (n < nud.Minimum) { n = nud.Minimum; } if (n > nud.Maximum) { n = nud.Maximum; } nud.Value = n; } else if (control is TrackBar) { TrackBar tc = (TrackBar)control; int n = 0; int.TryParse(value, out n); // convert 256 to 100% if (key == SettingName.AxisToDPadDeadZone || key == SettingName.AxisToDPadOffset || key == SettingName.LeftTriggerDeadZone || key == SettingName.RightTriggerDeadZone) { if (key == SettingName.AxisToDPadDeadZone && value == "") { n = 256; } n = System.Convert.ToInt32((float)n / 256F * 100F); } // Convert 500 to 100% else if (key == SettingName.LeftMotorPeriod || key == SettingName.RightMotorPeriod) { n = System.Convert.ToInt32((float)n / 500F * 100F); } // Convert 32767 to 100% else if (key == SettingName.LeftThumbDeadZoneX || key == SettingName.LeftThumbDeadZoneY || key == SettingName.RightThumbDeadZoneX || key == SettingName.RightThumbDeadZoneY) { n = System.Convert.ToInt32((float)n / ((float)Int16.MaxValue) * 100F); } if (n < tc.Minimum) { n = tc.Minimum; } if (n > tc.Maximum) { n = tc.Maximum; } tc.Value = n; } else if (control is CheckBox) { CheckBox tc = (CheckBox)control; int n = 0; int.TryParse(value, out n); tc.Checked = n != 0; } }
App() { Icon = new Icon(GetType(), "musicbox.ico"); t.Interval = 200; t.Tick += t_Tick; SetDirty(false); Size = new Size(800, 600); MainMenuStrip = new MenuStrip(); MainMenuStrip.Items.Add(tsmiFile); tsmiPlay = new ToolStripMenuItem("&Play", null, OnPlay, Keys.F5); MainMenuStrip.Items.Add(tsmiPlay); ToolStripLabel tsl = new ToolStripLabel(); TrackBar tb = new TrackBar(); tb.ValueChanged += (s, e) => { tsl.Text = tb.Value.ToString(); t.Interval = 1000 * 60 / tb.Value; }; tb.Minimum = 120; tb.Maximum = 480; tb.SmallChange = 10; tb.LargeChange = 60; tb.TickStyle = TickStyle.None; tb.Value = 240; ToolStripControlHost tsch = new ToolStripControlHost(tb); MainMenuStrip.Items.Add(new ToolStripSeparator()); MainMenuStrip.Items.Add(new ToolStripLabel("&Tempo")); MainMenuStrip.Items.Add(tsch); MainMenuStrip.Items.Add(tsl); AddMenuItem(tsmiFile, "&New", "new.bmp", OnFileOpen, Keys.Control | Keys.N); AddMenuItem(tsmiFile, "&Open...", "open.bmp", OnFileOpen, Keys.Control | Keys.O); AddMenuItem(tsmiFile, "&Save", "save.bmp", OnFileSave, Keys.Control | Keys.S); AddMenuItem(tsmiFile, "Save &as...", null, OnFileSaveAs, Keys.None); AddMenuItem(tsmiFile, "Print", null, OnFilePrint, Keys.Control | Keys.P); Closing += OnClosing; Resize += delegate { pbKeyboard.Refresh(); }; Load += delegate { if (sFileName != null) { Open(sFileName); } }; pnl.BackColor = Color.LightGray; pnl.Dock = DockStyle.Fill; pnl.Resize += delegate { pbCanvas.Size = new Size(DX * MAXNOTE, pnl.ClientSize.Height); pbCanvas.Invalidate(); }; pnl.Controls.Add(pbCanvas); pnl.AutoScroll = true; pbKeyboard.BackColor = Color.White; pbKeyboard.Size = new Size(100, 1); pbKeyboard.Dock = DockStyle.Left; pbKeyboard.Paint += pbKeyboard_OnPaint; pbKeyboard.Resize += delegate { pbKeyboard.Refresh(); }; pbCanvas.BackColor = Color.Beige; pbCanvas.MouseMove += pbCanvas_MouseMove; pbCanvas.MouseUp += pbCanvas_MouseUp; pbCanvas.MouseLeave += pbCanvas_MouseLeave; pbCanvas.Paint += pbCanvas_OnPaint; Controls.AddRange(new System.Windows.Forms.Control[] { pnl, pbKeyboard, MainMenuStrip }); }
private void ExportCharacter(object sender, EventArgs e) { //Initialise Word wordApp = new Microsoft.Office.Interop.Word.Application(); wordApp.Visible = true; try { wordDoc = wordApp.Documents.Open(System.Windows.Forms.Application.StartupPath + "/blanksheet.docx"); } catch { } //Character Details //Character Name getRange("CharacterName").Text = CharacterName.Text; //Nature getRange("Nature").Text = Nature.Text; //Demeanour getRange("Demeanour").Text = Demeanour.Text; //Corp getRange("CorpName").Text = Corp.Text; //Proprietary Mod Names - Inferred from Corp getRange("Proprietary1").Text = pMod1; getRange("Proprietary2").Text = pMod2; getRange("Proprietary3").Text = pMod3; //Attributes //Physical getRange("Strength").Text = getDots(Strength.Value); getRange("Dexterity").Text = getDots(Dexterity.Value); getRange("Stamina").Text = getDots(Stamina.Value); //Social getRange("Charisma").Text = getDots(Charisma.Value); getRange("Manipulation").Text = getDots(Manipulation.Value); getRange("Appearance").Text = getDots(Appearance.Value); //Mental getRange("Perception").Text = getDots(Perception.Value); getRange("Intelligence").Text = getDots(Intelligence.Value); getRange("Wits").Text = getDots(Wits.Value); //Inferred Values getRange("Willpower").Text = getDots(Stamina.Value + Math.Max(Intelligence.Value, Wits.Value), 10); //Abilities //Talents getRange("Alertness").Text = getDots(Alertness.Value); getRange("Athletics").Text = getDots(Athletics.Value); getRange("Spook").Text = getDots(Spook.Value); getRange("Brawl").Text = getDots(Brawl.Value); getRange("Empathy").Text = getDots(Empathy.Value); getRange("Expression").Text = getDots(Expression.Value); getRange("Intimidate").Text = getDots(Intimidate.Value); getRange("Leadership").Text = getDots(Leadership.Value); getRange("Streetwise").Text = getDots(Streetwise.Value); getRange("Subterfuge").Text = getDots(Subterfuge.Value); //Skills getRange("Animal").Text = getDots(Animal.Value); getRange("Crafts").Text = getDots(Crafts.Value); getRange("Drive").Text = getDots(Drive.Value); getRange("Etiquette").Text = getDots(Etiquette.Value); getRange("Firearms").Text = getDots(Firearms.Value); getRange("Larceny").Text = getDots(Larceny.Value); getRange("Melee").Text = getDots(Melee.Value); getRange("Performance").Text = getDots(Performance.Value); getRange("Pilot").Text = getDots(Pilot.Value); getRange("Stealth").Text = getDots(Stealth.Value); getRange("Survival").Text = getDots(Survival.Value); //Knowledges getRange("Academics").Text = getDots(Academics.Value); getRange("Computers").Text = getDots(Computers.Value); getRange("Finance").Text = getDots(Finance.Value); getRange("Investigation").Text = getDots(Investigation.Value); getRange("Law").Text = getDots(Law.Value); getRange("Medicine").Text = getDots(Medicine.Value); getRange("Netlore").Text = getDots(Netlore.Value); getRange("Politics").Text = getDots(Politics.Value); getRange("Science").Text = getDots(Science.Value); getRange("Technology").Text = getDots(Technology.Value); getRange("Demolitions").Text = getDots(Demolitions.Value); //Advantages //Proprietary Mods getRange("ProprietaryValue1").Text = getDots(propMod1.Value); getRange("ProprietaryValue2").Text = getDots(propMod2.Value); getRange("ProprietaryValue3").Text = getDots(propMod3.Value); //Backgrounds & Juice TrackBar[] bars = new TrackBar[4] { bgdots1, bgdots2, bgdots3, bgdots4 }; bool dotsInClearance = false; for (int i = 1; i < 5; i++) { getRange("Background" + i.ToString()).Text = selectedBG[i - 1]; getRange("BackgroundDots" + i.ToString()).Text = getDots(bars[i - 1].Value); if (selectedBG[i - 1] == "Clearance" && !dotsInClearance) { dotsInClearance = true; if (bars[i - 1].Value < 4) { getRange("JuiceperTurn").Text = "1"; } else if (bars[i - 1].Value == 4) { getRange("JuiceperTurn").Text = "2"; } else if (bars[i - 1].Value == 5) { getRange("JuiceperTurn").Text = "3"; } getRange("Juice").Text = getDots(10 + bars[i - 1].Value, 10 + bars[i - 1].Value); getRange("ClearanceLevel").Text = (9 - bars[i - 1].Value).ToString(); } } if (!dotsInClearance) { getRange("JuiceperTurn").Text = "1"; getRange("Juice").Text = getDots(10, 10); getRange("ClearanceLevel").Text = (9).ToString(); } //Cyber Defenses getRange("Firewall").Text = getDots(firewall.Value); getRange("Backtrace").Text = getDots(backtrace.Value); getRange("AttackBarrier").Text = getDots(attackBarrier.Value); //Freebie Points //Flaws for (int i = 1; i < 4; i++) { getRange("Flaw" + (i.ToString())).Text = selectedFlaws[i - 1].item; getRange("Flaw" + (i.ToString()) + "Pts").Text = selectedFlaws[i - 1].cost.ToString(); } //Save Document wordDoc.SaveAs2(System.Windows.Forms.Application.StartupPath + "/" + CharacterName.Text + " - Character Sheet"); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.Windows.Forms.Label label42; this.tabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.showdebug = new System.Windows.Forms.CheckBox(); this.Compare_Settings = new System.Windows.Forms.Button(); this.RxD = new System.Windows.Forms.GroupBox(); this.static48 = new System.Windows.Forms.Label(); this.bytecounter = new System.Windows.Forms.Label(); this.textRxD = new System.Windows.Forms.TextBox(); this.clearRxD = new System.Windows.Forms.Button(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.btnRefresh = new System.Windows.Forms.Button(); this.readsettings = new System.Windows.Forms.Button(); this.writesettings = new System.Windows.Forms.Button(); this.labelok = new System.Windows.Forms.Label(); this.writeall = new System.Windows.Forms.Button(); this.resetmC = new System.Windows.Forms.Button(); this.comport = new System.Windows.Forms.ComboBox(); this.connect = new System.Windows.Forms.Button(); this.searchlabel = new System.Windows.Forms.Label(); this.progressBar2 = new System.Windows.Forms.ProgressBar(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox14 = new System.Windows.Forms.GroupBox(); this.label34 = new System.Windows.Forms.Label(); this.label33 = new System.Windows.Forms.Label(); this.label32 = new System.Windows.Forms.Label(); this.label31 = new System.Windows.Forms.Label(); this.label30 = new System.Windows.Forms.Label(); this.label29 = new System.Windows.Forms.Label(); this.label28 = new System.Windows.Forms.Label(); this.label27 = new System.Windows.Forms.Label(); this.tbch8 = new XComponent.SliderBar.MACTrackBar(); this.tbch7 = new XComponent.SliderBar.MACTrackBar(); this.tbch6 = new XComponent.SliderBar.MACTrackBar(); this.tbch5 = new XComponent.SliderBar.MACTrackBar(); this.tbch4 = new XComponent.SliderBar.MACTrackBar(); this.tbch3 = new XComponent.SliderBar.MACTrackBar(); this.tbch2 = new XComponent.SliderBar.MACTrackBar(); this.tbch1 = new XComponent.SliderBar.MACTrackBar(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.switchbox = new System.Windows.Forms.ComboBox(); this.deactivatemotors = new System.Windows.Forms.CheckBox(); this.static67 = new System.Windows.Forms.Label(); this.static68 = new System.Windows.Forms.Label(); this.static66 = new System.Windows.Forms.Label(); this.static65 = new System.Windows.Forms.Label(); this.static64 = new System.Windows.Forms.Label(); this.static63 = new System.Windows.Forms.Label(); this.yawbox = new System.Windows.Forms.ComboBox(); this.rollbox = new System.Windows.Forms.ComboBox(); this.Nickbox = new System.Windows.Forms.ComboBox(); this.throttlebox = new System.Windows.Forms.ComboBox(); this.textBoxu = new System.Windows.Forms.TextBox(); this.labelu = new System.Windows.Forms.Label(); this.static40 = new System.Windows.Forms.Label(); this.textBoxS = new System.Windows.Forms.TextBox(); this.textBoxR = new System.Windows.Forms.TextBox(); this.textBoxQ = new System.Windows.Forms.TextBox(); this.checkBoxT = new System.Windows.Forms.CheckBox(); this.labels = new System.Windows.Forms.Label(); this.labelr = new System.Windows.Forms.Label(); this.labelq = new System.Windows.Forms.Label(); this.static15 = new System.Windows.Forms.Label(); this.static13 = new System.Windows.Forms.Label(); this.static14 = new System.Windows.Forms.Label(); this.static12 = new System.Windows.Forms.Label(); this.static11 = new System.Windows.Forms.Label(); this.checkBoxT2 = new System.Windows.Forms.CheckBox(); this.static9 = new System.Windows.Forms.Label(); this.static10 = new System.Windows.Forms.Label(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.textBoxx = new System.Windows.Forms.TextBox(); this.textBoxw = new System.Windows.Forms.TextBox(); this.labelx = new System.Windows.Forms.Label(); this.labelw = new System.Windows.Forms.Label(); this.static46 = new System.Windows.Forms.Label(); this.static45 = new System.Windows.Forms.Label(); this.textBoxp = new System.Windows.Forms.TextBox(); this.textBoxo = new System.Windows.Forms.TextBox(); this.textBoxn = new System.Windows.Forms.TextBox(); this.labelp = new System.Windows.Forms.Label(); this.labelo = new System.Windows.Forms.Label(); this.labeln = new System.Windows.Forms.Label(); this.static39 = new System.Windows.Forms.Label(); this.static38 = new System.Windows.Forms.Label(); this.static37 = new System.Windows.Forms.Label(); this.static36 = new System.Windows.Forms.Label(); this.static35 = new System.Windows.Forms.Label(); this.static34 = new System.Windows.Forms.Label(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.trackBar15 = new System.Windows.Forms.TrackBar(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.label14 = new System.Windows.Forms.Label(); this.label25 = new System.Windows.Forms.Label(); this.label26 = new System.Windows.Forms.Label(); this.textBoxm = new System.Windows.Forms.TextBox(); this.textBoxl = new System.Windows.Forms.TextBox(); this.labelm = new System.Windows.Forms.Label(); this.labell = new System.Windows.Forms.Label(); this.static33 = new System.Windows.Forms.Label(); this.static32 = new System.Windows.Forms.Label(); this.static29 = new System.Windows.Forms.Label(); this.static31 = new System.Windows.Forms.Label(); this.static30 = new System.Windows.Forms.Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.checkBoxf2 = new System.Windows.Forms.CheckBox(); this.checkBoxf = new System.Windows.Forms.CheckBox(); this.checkBoxe2 = new System.Windows.Forms.CheckBox(); this.checkBoxe = new System.Windows.Forms.CheckBox(); this.static28 = new System.Windows.Forms.Label(); this.static27 = new System.Windows.Forms.Label(); this.checkBoxD2 = new System.Windows.Forms.CheckBox(); this.checkBoxB2 = new System.Windows.Forms.CheckBox(); this.checkBoxC2 = new System.Windows.Forms.CheckBox(); this.checkBoxD = new System.Windows.Forms.CheckBox(); this.checkBoxC = new System.Windows.Forms.CheckBox(); this.checkBoxB = new System.Windows.Forms.CheckBox(); this.static26 = new System.Windows.Forms.Label(); this.static25 = new System.Windows.Forms.Label(); this.static24 = new System.Windows.Forms.Label(); this.static22 = new System.Windows.Forms.Label(); this.static23 = new System.Windows.Forms.Label(); this.static21 = new System.Windows.Forms.Label(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.trackBar14 = new System.Windows.Forms.TrackBar(); this.label24 = new System.Windows.Forms.Label(); this.textBoxy = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); this.textBoxH = new System.Windows.Forms.TextBox(); this.textBoxG = new System.Windows.Forms.TextBox(); this.labely = new System.Windows.Forms.Label(); this.labelH = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.labelG = new System.Windows.Forms.Label(); this.static17 = new System.Windows.Forms.Label(); this.label22 = new System.Windows.Forms.Label(); this.static16 = new System.Windows.Forms.Label(); this.static18 = new System.Windows.Forms.Label(); this.static20 = new System.Windows.Forms.Label(); this.static19 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.label21 = new System.Windows.Forms.Label(); this.label20 = new System.Windows.Forms.Label(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.trackBar13 = new System.Windows.Forms.TrackBar(); this.label18 = new System.Windows.Forms.Label(); this.static6 = new System.Windows.Forms.Label(); this.static5 = new System.Windows.Forms.Label(); this.static4 = new System.Windows.Forms.Label(); this.textBoxi = new System.Windows.Forms.TextBox(); this.label19 = new System.Windows.Forms.Label(); this.static3 = new System.Windows.Forms.Label(); this.labeli = new System.Windows.Forms.Label(); this.static7 = new System.Windows.Forms.Label(); this.static2 = new System.Windows.Forms.Label(); this.labelj = new System.Windows.Forms.Label(); this.textBoxz = new System.Windows.Forms.TextBox(); this.textBoxk = new System.Windows.Forms.TextBox(); this.labelz = new System.Windows.Forms.Label(); this.labelk = new System.Windows.Forms.Label(); this.textBoxj = new System.Windows.Forms.TextBox(); this.tabPage5 = new System.Windows.Forms.TabPage(); this.groupBox15 = new System.Windows.Forms.GroupBox(); this.label41 = new System.Windows.Forms.Label(); this.label40 = new System.Windows.Forms.Label(); this.labelled2 = new System.Windows.Forms.Label(); this.labelled1 = new System.Windows.Forms.Label(); this.label37 = new System.Windows.Forms.Label(); this.label38 = new System.Windows.Forms.Label(); this.label39 = new System.Windows.Forms.Label(); this.label36 = new System.Windows.Forms.Label(); this.label35 = new System.Windows.Forms.Label(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.errorlabel = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); this.static47 = new System.Windows.Forms.Label(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.voltagelevel = new System.Windows.Forms.Label(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.textBoxv = new System.Windows.Forms.TextBox(); this.labelv = new System.Windows.Forms.Label(); this.static44 = new System.Windows.Forms.Label(); this.static41 = new System.Windows.Forms.Label(); this.static43 = new System.Windows.Forms.Label(); this.static42 = new System.Windows.Forms.Label(); this.tabPage4 = new System.Windows.Forms.TabPage(); this.static99 = new System.Windows.Forms.Label(); this.Battery = new System.Windows.Forms.GroupBox(); this.labelvolts = new System.Windows.Forms.Label(); this.pbVoltage = new System.Windows.Forms.ProgressBar(); this.groupBox12 = new System.Windows.Forms.GroupBox(); this.TrackBar7 = new XComponent.SliderBar.MACTrackBar(); this.static58 = new System.Windows.Forms.Label(); this.static55 = new System.Windows.Forms.Label(); this.static61 = new System.Windows.Forms.Label(); this.groupBox11 = new System.Windows.Forms.GroupBox(); this.TrackBar12 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar11 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar10 = new XComponent.SliderBar.MACTrackBar(); this.panel2 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel(); this.panelRollCenter = new System.Windows.Forms.Panel(); this.label15 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.TrackBar9 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar8 = new XComponent.SliderBar.MACTrackBar(); this.groupBox10 = new System.Windows.Forms.GroupBox(); this.TrackBar6 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar5 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar4 = new XComponent.SliderBar.MACTrackBar(); this.static54 = new System.Windows.Forms.Label(); this.static53 = new System.Windows.Forms.Label(); this.staic59 = new System.Windows.Forms.Label(); this.static60 = new System.Windows.Forms.Label(); this.static52 = new System.Windows.Forms.Label(); this.groupBox9 = new System.Windows.Forms.GroupBox(); this.TrackBar3 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar2 = new XComponent.SliderBar.MACTrackBar(); this.static51 = new System.Windows.Forms.Label(); this.TrackBar1 = new XComponent.SliderBar.MACTrackBar(); this.static49 = new System.Windows.Forms.Label(); this.static57 = new System.Windows.Forms.Label(); this.static50 = new System.Windows.Forms.Label(); this.static56 = new System.Windows.Forms.Label(); this.tabPage6 = new System.Windows.Forms.TabPage(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.label13 = new System.Windows.Forms.Label(); this.flash = new System.Windows.Forms.Button(); this.progressBar4 = new System.Windows.Forms.ProgressBar(); this.showavrout = new System.Windows.Forms.CheckBox(); this.avrdudeout = new System.Windows.Forms.TextBox(); this.serialPort = new System.IO.Ports.SerialPort(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.timersens = new System.Windows.Forms.Timer(this.components); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.pingshrediquette = new System.Windows.Forms.Timer(this.components); this.label11 = new System.Windows.Forms.Label(); this.startupdelay = new System.Windows.Forms.Timer(this.components); this.linkLabel2 = new System.Windows.Forms.LinkLabel(); this.label17 = new System.Windows.Forms.Label(); this.lbch1 = new System.Windows.Forms.Label(); this.lbch2 = new System.Windows.Forms.Label(); this.lbch3 = new System.Windows.Forms.Label(); this.lbch4 = new System.Windows.Forms.Label(); this.lbch5 = new System.Windows.Forms.Label(); this.lbch6 = new System.Windows.Forms.Label(); this.lbch7 = new System.Windows.Forms.Label(); this.lbch8 = new System.Windows.Forms.Label(); this.emergmask = new TriGUI_v11.BitMask(); this.led2mask = new TriGUI_v11.BitMask(); this.led1mask = new TriGUI_v11.BitMask(); label42 = new System.Windows.Forms.Label(); this.tabControl.SuspendLayout(); this.tabPage1.SuspendLayout(); this.RxD.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.tabPage2.SuspendLayout(); this.groupBox14.SuspendLayout(); this.groupBox2.SuspendLayout(); this.tabPage3.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupBox5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar15)).BeginInit(); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar14)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar13)).BeginInit(); this.tabPage5.SuspendLayout(); this.groupBox15.SuspendLayout(); this.groupBox8.SuspendLayout(); this.groupBox7.SuspendLayout(); this.tabPage4.SuspendLayout(); this.Battery.SuspendLayout(); this.groupBox12.SuspendLayout(); this.groupBox11.SuspendLayout(); this.groupBox10.SuspendLayout(); this.groupBox9.SuspendLayout(); this.tabPage6.SuspendLayout(); this.groupBox13.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // tabControl // this.tabControl.Controls.Add(this.tabPage1); this.tabControl.Controls.Add(this.tabPage2); this.tabControl.Controls.Add(this.tabPage3); this.tabControl.Controls.Add(this.tabPage5); this.tabControl.Controls.Add(this.tabPage4); this.tabControl.Controls.Add(this.tabPage6); this.tabControl.Location = new System.Drawing.Point(12, 60); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.Size = new System.Drawing.Size(657, 392); this.tabControl.TabIndex = 0; this.tabControl.SelectedIndexChanged += new System.EventHandler(this.TabControl1SelectedIndexChanged); // // tabPage1 // this.tabPage1.Controls.Add(this.showdebug); this.tabPage1.Controls.Add(this.Compare_Settings); this.tabPage1.Controls.Add(this.RxD); this.tabPage1.Controls.Add(this.linkLabel1); this.tabPage1.Controls.Add(this.btnRefresh); this.tabPage1.Controls.Add(this.readsettings); this.tabPage1.Controls.Add(this.writesettings); this.tabPage1.Controls.Add(this.labelok); this.tabPage1.Controls.Add(this.writeall); this.tabPage1.Controls.Add(this.resetmC); this.tabPage1.Controls.Add(this.comport); this.tabPage1.Controls.Add(this.connect); this.tabPage1.Controls.Add(this.searchlabel); this.tabPage1.Controls.Add(this.progressBar2); this.tabPage1.Controls.Add(this.pictureBox2); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(649, 366); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Connection"; this.tabPage1.UseVisualStyleBackColor = true; // // showdebug // this.showdebug.Location = new System.Drawing.Point(21, 307); this.showdebug.Name = "showdebug"; this.showdebug.Size = new System.Drawing.Size(104, 24); this.showdebug.TabIndex = 11; this.showdebug.Text = "Show terminal"; this.toolTip1.SetToolTip(this.showdebug, "Shows a terminal windows showing which things are transferred from the tricopter"); this.showdebug.UseVisualStyleBackColor = true; this.showdebug.CheckedChanged += new System.EventHandler(this.ShowdebugCheckedChanged); // // Compare_Settings // this.Compare_Settings.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Compare_Settings.Location = new System.Drawing.Point(21, 278); this.Compare_Settings.Name = "Compare_Settings"; this.Compare_Settings.Size = new System.Drawing.Size(136, 23); this.Compare_Settings.TabIndex = 21; this.Compare_Settings.Text = "Compare settings (*.shr)"; this.Compare_Settings.UseVisualStyleBackColor = true; this.Compare_Settings.Click += new System.EventHandler(this.Button2Click); // // RxD // this.RxD.Controls.Add(this.static48); this.RxD.Controls.Add(this.bytecounter); this.RxD.Controls.Add(this.textRxD); this.RxD.Controls.Add(this.clearRxD); this.RxD.Location = new System.Drawing.Point(338, 14); this.RxD.Name = "RxD"; this.RxD.Size = new System.Drawing.Size(289, 297); this.RxD.TabIndex = 10; this.RxD.TabStop = false; this.RxD.Text = "RxD"; this.RxD.Visible = false; // // static48 // this.static48.Location = new System.Drawing.Point(39, 273); this.static48.Name = "static48"; this.static48.Size = new System.Drawing.Size(70, 18); this.static48.TabIndex = 16; this.static48.Text = "Dataset size:"; // // bytecounter // this.bytecounter.Location = new System.Drawing.Point(114, 273); this.bytecounter.Name = "bytecounter"; this.bytecounter.Size = new System.Drawing.Size(83, 18); this.bytecounter.TabIndex = 15; this.bytecounter.Text = "---"; // // textRxD // this.textRxD.Location = new System.Drawing.Point(6, 19); this.textRxD.Multiline = true; this.textRxD.Name = "textRxD"; this.textRxD.ReadOnly = true; this.textRxD.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textRxD.Size = new System.Drawing.Size(285, 224); this.textRxD.TabIndex = 3; // // clearRxD // this.clearRxD.Location = new System.Drawing.Point(207, 268); this.clearRxD.Name = "clearRxD"; this.clearRxD.Size = new System.Drawing.Size(75, 23); this.clearRxD.TabIndex = 5; this.clearRxD.Text = "clear"; this.toolTip1.SetToolTip(this.clearRxD, "Clears the content of the terminal window"); this.clearRxD.UseVisualStyleBackColor = true; this.clearRxD.Click += new System.EventHandler(this.ClearRxDClick); // // linkLabel1 // this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.linkLabel1.Location = new System.Drawing.Point(366, 285); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(211, 23); this.linkLabel1.TabIndex = 20; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Watch the tutorial video!"; this.toolTip1.SetToolTip(this.linkLabel1, "http://www.villalachouette.de/william/krims/tricopter/TriGUI_tut.wmv"); this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked); // // btnRefresh // this.btnRefresh.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRefresh.Location = new System.Drawing.Point(163, 62); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(58, 21); this.btnRefresh.TabIndex = 19; this.btnRefresh.Text = "Refresh"; this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.Click += new System.EventHandler(this.Button1Click); // // readsettings // this.readsettings.Enabled = false; this.readsettings.Location = new System.Drawing.Point(21, 229); this.readsettings.Name = "readsettings"; this.readsettings.Size = new System.Drawing.Size(136, 23); this.readsettings.TabIndex = 16; this.readsettings.Text = "Load file and write to ĀµC"; this.toolTip1.SetToolTip(this.readsettings, "Loads all parameters from a text file and writes them to the the ĀµC"); this.readsettings.UseVisualStyleBackColor = true; this.readsettings.Click += new System.EventHandler(this.ReadsettingsClick); // // writesettings // this.writesettings.Enabled = false; this.writesettings.Location = new System.Drawing.Point(21, 200); this.writesettings.Name = "writesettings"; this.writesettings.Size = new System.Drawing.Size(136, 23); this.writesettings.TabIndex = 15; this.writesettings.Text = "Save all parameters to file"; this.toolTip1.SetToolTip(this.writesettings, "Saves the all parameters from the GUI to a text file"); this.writesettings.UseVisualStyleBackColor = true; this.writesettings.Click += new System.EventHandler(this.writesettingsClick); // // labelok // this.labelok.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelok.ForeColor = System.Drawing.Color.Lime; this.labelok.Location = new System.Drawing.Point(567, 314); this.labelok.Name = "labelok"; this.labelok.Size = new System.Drawing.Size(76, 23); this.labelok.TabIndex = 13; this.labelok.Text = "OK!"; this.labelok.TextAlign = System.Drawing.ContentAlignment.BottomRight; this.labelok.Visible = false; // // writeall // this.writeall.Enabled = false; this.writeall.Location = new System.Drawing.Point(21, 131); this.writeall.Name = "writeall"; this.writeall.Size = new System.Drawing.Size(136, 50); this.writeall.TabIndex = 6; this.writeall.Text = "Write all parameters to ĀµC"; this.toolTip1.SetToolTip(this.writeall, "Writes all the parameters of all tabs and resets the tricopter. The new parameter" + "s are subsequently loaded again from the copter"); this.writeall.UseVisualStyleBackColor = true; this.writeall.Click += new System.EventHandler(this.WriteallClick); // // resetmC // this.resetmC.Enabled = false; this.resetmC.Location = new System.Drawing.Point(21, 89); this.resetmC.Name = "resetmC"; this.resetmC.Size = new System.Drawing.Size(136, 23); this.resetmC.TabIndex = 2; this.resetmC.Text = "Disconnect"; this.toolTip1.SetToolTip(this.resetmC, "Sends reset command to the tricopter and closes the serialport"); this.resetmC.UseVisualStyleBackColor = true; this.resetmC.Click += new System.EventHandler(this.resetmCClick); // // comport // this.comport.FormattingEnabled = true; this.comport.Items.AddRange(new object[] { "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "COM10", "COM11", "COM12", "COM13", "COM14", "COM15", "COM16", "COM17", "COM18", "COM19", "COM20", "COM21", "COM22", "COM23", "COM24", "COM25", "COM26", "COM27", "COM28", "COM29", "COM30"}); this.comport.Location = new System.Drawing.Point(163, 35); this.comport.Name = "comport"; this.comport.Size = new System.Drawing.Size(58, 21); this.comport.TabIndex = 1; this.comport.Text = "COM1"; this.toolTip1.SetToolTip(this.comport, "Select the COM port here.\r\nPlease note that avrdude doesn\'t seem to support high " + "COM port numbers..."); this.comport.SelectedIndexChanged += new System.EventHandler(this.ComportSelectedIndexChanged); // // connect // this.connect.Location = new System.Drawing.Point(21, 33); this.connect.Name = "connect"; this.connect.Size = new System.Drawing.Size(136, 50); this.connect.TabIndex = 0; this.connect.Text = "Connect + read out"; this.toolTip1.SetToolTip(this.connect, "Opens a serial connection and reads the current paramters from the tricopter"); this.connect.UseVisualStyleBackColor = true; this.connect.Click += new System.EventHandler(this.ConnectClick); // // searchlabel // this.searchlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.searchlabel.ForeColor = System.Drawing.Color.Lime; this.searchlabel.Location = new System.Drawing.Point(511, 314); this.searchlabel.Name = "searchlabel"; this.searchlabel.Size = new System.Drawing.Size(132, 23); this.searchlabel.TabIndex = 17; this.searchlabel.Text = "Searching..."; this.searchlabel.TextAlign = System.Drawing.ContentAlignment.BottomRight; this.searchlabel.Visible = false; // // progressBar2 // this.progressBar2.Location = new System.Drawing.Point(6, 337); this.progressBar2.MarqueeAnimationSpeed = 10; this.progressBar2.Maximum = 27; this.progressBar2.Name = "progressBar2"; this.progressBar2.Size = new System.Drawing.Size(637, 20); this.progressBar2.Step = 1; this.progressBar2.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar2.TabIndex = 12; // // pictureBox2 // this.pictureBox2.Location = new System.Drawing.Point(327, 14); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(300, 300); this.pictureBox2.TabIndex = 14; this.pictureBox2.TabStop = false; // // tabPage2 // this.tabPage2.Controls.Add(this.groupBox14); this.tabPage2.Controls.Add(this.groupBox2); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(649, 366); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Radio settings"; this.tabPage2.UseVisualStyleBackColor = true; // // groupBox14 // this.groupBox14.Controls.Add(label42); this.groupBox14.Controls.Add(this.lbch8); this.groupBox14.Controls.Add(this.lbch7); this.groupBox14.Controls.Add(this.lbch6); this.groupBox14.Controls.Add(this.lbch5); this.groupBox14.Controls.Add(this.lbch4); this.groupBox14.Controls.Add(this.lbch3); this.groupBox14.Controls.Add(this.lbch2); this.groupBox14.Controls.Add(this.lbch1); this.groupBox14.Controls.Add(this.label34); this.groupBox14.Controls.Add(this.label33); this.groupBox14.Controls.Add(this.label32); this.groupBox14.Controls.Add(this.label31); this.groupBox14.Controls.Add(this.label30); this.groupBox14.Controls.Add(this.label29); this.groupBox14.Controls.Add(this.label28); this.groupBox14.Controls.Add(this.label27); this.groupBox14.Controls.Add(this.tbch8); this.groupBox14.Controls.Add(this.tbch7); this.groupBox14.Controls.Add(this.tbch6); this.groupBox14.Controls.Add(this.tbch5); this.groupBox14.Controls.Add(this.tbch4); this.groupBox14.Controls.Add(this.tbch3); this.groupBox14.Controls.Add(this.tbch2); this.groupBox14.Controls.Add(this.tbch1); this.groupBox14.Location = new System.Drawing.Point(407, 20); this.groupBox14.Name = "groupBox14"; this.groupBox14.Size = new System.Drawing.Size(223, 329); this.groupBox14.TabIndex = 8; this.groupBox14.TabStop = false; this.groupBox14.Text = "RX Channels"; // // label34 // this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(191, 141); this.label34.Name = "label34"; this.label34.Size = new System.Drawing.Size(13, 13); this.label34.TabIndex = 40; this.label34.Text = "8"; // // label33 // this.label33.AutoSize = true; this.label33.Location = new System.Drawing.Point(166, 141); this.label33.Name = "label33"; this.label33.Size = new System.Drawing.Size(13, 13); this.label33.TabIndex = 39; this.label33.Text = "7"; // // label32 // this.label32.AutoSize = true; this.label32.Location = new System.Drawing.Point(141, 141); this.label32.Name = "label32"; this.label32.Size = new System.Drawing.Size(13, 13); this.label32.TabIndex = 38; this.label32.Text = "6"; // // label31 // this.label31.AutoSize = true; this.label31.Location = new System.Drawing.Point(116, 141); this.label31.Name = "label31"; this.label31.Size = new System.Drawing.Size(13, 13); this.label31.TabIndex = 37; this.label31.Text = "5"; // // label30 // this.label30.AutoSize = true; this.label30.Location = new System.Drawing.Point(91, 141); this.label30.Name = "label30"; this.label30.Size = new System.Drawing.Size(13, 13); this.label30.TabIndex = 36; this.label30.Text = "4"; // // label29 // this.label29.AutoSize = true; this.label29.Location = new System.Drawing.Point(66, 141); this.label29.Name = "label29"; this.label29.Size = new System.Drawing.Size(13, 13); this.label29.TabIndex = 35; this.label29.Text = "3"; // // label28 // this.label28.AutoSize = true; this.label28.Location = new System.Drawing.Point(41, 141); this.label28.Name = "label28"; this.label28.Size = new System.Drawing.Size(13, 13); this.label28.TabIndex = 34; this.label28.Text = "2"; // // label27 // this.label27.AutoSize = true; this.label27.Location = new System.Drawing.Point(16, 141); this.label27.Name = "label27"; this.label27.Size = new System.Drawing.Size(13, 13); this.label27.TabIndex = 33; this.label27.Text = "1"; // // tbch8 // this.tbch8.BackColor = System.Drawing.Color.Transparent; this.tbch8.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch8.IndentHeight = 1; this.tbch8.IndentWidth = 1; this.tbch8.LargeChange = 100; this.tbch8.Location = new System.Drawing.Point(188, 35); this.tbch8.Maximum = 255; this.tbch8.Minimum = 0; this.tbch8.Name = "tbch8"; this.tbch8.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch8.Size = new System.Drawing.Size(19, 100); this.tbch8.SmallChange = 10; this.tbch8.TabIndex = 32; this.tbch8.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch8.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch8.TickFrequency = 64; this.tbch8.TickHeight = 1; this.tbch8.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch8.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch8.TrackerSize = new System.Drawing.Size(13, 13); this.tbch8.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch8.TrackLineHeight = 9; this.tbch8.Value = 9; // // tbch7 // this.tbch7.BackColor = System.Drawing.Color.Transparent; this.tbch7.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch7.IndentHeight = 1; this.tbch7.IndentWidth = 1; this.tbch7.LargeChange = 100; this.tbch7.Location = new System.Drawing.Point(163, 35); this.tbch7.Maximum = 255; this.tbch7.Minimum = 0; this.tbch7.Name = "tbch7"; this.tbch7.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch7.Size = new System.Drawing.Size(19, 100); this.tbch7.SmallChange = 10; this.tbch7.TabIndex = 31; this.tbch7.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch7.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch7.TickFrequency = 64; this.tbch7.TickHeight = 1; this.tbch7.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch7.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch7.TrackerSize = new System.Drawing.Size(13, 13); this.tbch7.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch7.TrackLineHeight = 9; this.tbch7.Value = 9; // // tbch6 // this.tbch6.BackColor = System.Drawing.Color.Transparent; this.tbch6.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch6.IndentHeight = 1; this.tbch6.IndentWidth = 1; this.tbch6.LargeChange = 100; this.tbch6.Location = new System.Drawing.Point(138, 35); this.tbch6.Maximum = 255; this.tbch6.Minimum = 0; this.tbch6.Name = "tbch6"; this.tbch6.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch6.Size = new System.Drawing.Size(19, 100); this.tbch6.SmallChange = 10; this.tbch6.TabIndex = 30; this.tbch6.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch6.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch6.TickFrequency = 64; this.tbch6.TickHeight = 1; this.tbch6.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch6.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch6.TrackerSize = new System.Drawing.Size(13, 13); this.tbch6.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch6.TrackLineHeight = 9; this.tbch6.Value = 9; // // tbch5 // this.tbch5.BackColor = System.Drawing.Color.Transparent; this.tbch5.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch5.IndentHeight = 1; this.tbch5.IndentWidth = 1; this.tbch5.LargeChange = 100; this.tbch5.Location = new System.Drawing.Point(113, 35); this.tbch5.Maximum = 255; this.tbch5.Minimum = 0; this.tbch5.Name = "tbch5"; this.tbch5.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch5.Size = new System.Drawing.Size(19, 100); this.tbch5.SmallChange = 10; this.tbch5.TabIndex = 29; this.tbch5.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch5.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch5.TickFrequency = 64; this.tbch5.TickHeight = 1; this.tbch5.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch5.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch5.TrackerSize = new System.Drawing.Size(13, 13); this.tbch5.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch5.TrackLineHeight = 9; this.tbch5.Value = 9; // // tbch4 // this.tbch4.BackColor = System.Drawing.Color.Transparent; this.tbch4.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch4.IndentHeight = 1; this.tbch4.IndentWidth = 1; this.tbch4.LargeChange = 100; this.tbch4.Location = new System.Drawing.Point(88, 35); this.tbch4.Maximum = 255; this.tbch4.Minimum = 0; this.tbch4.Name = "tbch4"; this.tbch4.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch4.Size = new System.Drawing.Size(19, 100); this.tbch4.SmallChange = 10; this.tbch4.TabIndex = 28; this.tbch4.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch4.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch4.TickFrequency = 64; this.tbch4.TickHeight = 1; this.tbch4.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch4.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch4.TrackerSize = new System.Drawing.Size(13, 13); this.tbch4.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch4.TrackLineHeight = 9; this.tbch4.Value = 9; // // tbch3 // this.tbch3.BackColor = System.Drawing.Color.Transparent; this.tbch3.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch3.IndentHeight = 1; this.tbch3.IndentWidth = 1; this.tbch3.LargeChange = 100; this.tbch3.Location = new System.Drawing.Point(63, 35); this.tbch3.Maximum = 255; this.tbch3.Minimum = 0; this.tbch3.Name = "tbch3"; this.tbch3.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch3.Size = new System.Drawing.Size(19, 100); this.tbch3.SmallChange = 10; this.tbch3.TabIndex = 27; this.tbch3.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch3.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch3.TickFrequency = 64; this.tbch3.TickHeight = 1; this.tbch3.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch3.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch3.TrackerSize = new System.Drawing.Size(13, 13); this.tbch3.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch3.TrackLineHeight = 9; this.tbch3.Value = 9; // // tbch2 // this.tbch2.BackColor = System.Drawing.Color.Transparent; this.tbch2.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch2.IndentHeight = 1; this.tbch2.IndentWidth = 1; this.tbch2.LargeChange = 100; this.tbch2.Location = new System.Drawing.Point(38, 35); this.tbch2.Maximum = 255; this.tbch2.Minimum = 0; this.tbch2.Name = "tbch2"; this.tbch2.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch2.Size = new System.Drawing.Size(19, 100); this.tbch2.SmallChange = 10; this.tbch2.TabIndex = 26; this.tbch2.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch2.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch2.TickFrequency = 64; this.tbch2.TickHeight = 1; this.tbch2.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch2.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch2.TrackerSize = new System.Drawing.Size(13, 13); this.tbch2.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch2.TrackLineHeight = 9; this.tbch2.Value = 9; // // tbch1 // this.tbch1.BackColor = System.Drawing.Color.Transparent; this.tbch1.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch1.IndentHeight = 1; this.tbch1.IndentWidth = 1; this.tbch1.LargeChange = 100; this.tbch1.Location = new System.Drawing.Point(13, 35); this.tbch1.Maximum = 255; this.tbch1.Minimum = 0; this.tbch1.Name = "tbch1"; this.tbch1.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch1.Size = new System.Drawing.Size(19, 100); this.tbch1.SmallChange = 10; this.tbch1.TabIndex = 25; this.tbch1.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch1.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch1.TickFrequency = 64; this.tbch1.TickHeight = 1; this.tbch1.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch1.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch1.TrackerSize = new System.Drawing.Size(13, 13); this.tbch1.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch1.TrackLineHeight = 9; this.tbch1.Value = 9; // // groupBox2 // this.groupBox2.Controls.Add(this.switchbox); this.groupBox2.Controls.Add(this.deactivatemotors); this.groupBox2.Controls.Add(this.static67); this.groupBox2.Controls.Add(this.static68); this.groupBox2.Controls.Add(this.static66); this.groupBox2.Controls.Add(this.static65); this.groupBox2.Controls.Add(this.static64); this.groupBox2.Controls.Add(this.static63); this.groupBox2.Controls.Add(this.yawbox); this.groupBox2.Controls.Add(this.rollbox); this.groupBox2.Controls.Add(this.Nickbox); this.groupBox2.Controls.Add(this.throttlebox); this.groupBox2.Controls.Add(this.textBoxu); this.groupBox2.Controls.Add(this.labelu); this.groupBox2.Controls.Add(this.static40); this.groupBox2.Controls.Add(this.textBoxS); this.groupBox2.Controls.Add(this.textBoxR); this.groupBox2.Controls.Add(this.textBoxQ); this.groupBox2.Controls.Add(this.checkBoxT); this.groupBox2.Controls.Add(this.labels); this.groupBox2.Controls.Add(this.labelr); this.groupBox2.Controls.Add(this.labelq); this.groupBox2.Controls.Add(this.static15); this.groupBox2.Controls.Add(this.static13); this.groupBox2.Controls.Add(this.static14); this.groupBox2.Controls.Add(this.static12); this.groupBox2.Controls.Add(this.static11); this.groupBox2.Controls.Add(this.checkBoxT2); this.groupBox2.Controls.Add(this.static9); this.groupBox2.Controls.Add(this.static10); this.groupBox2.Location = new System.Drawing.Point(18, 20); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(383, 329); this.groupBox2.TabIndex = 7; this.groupBox2.TabStop = false; this.groupBox2.Text = "Transmitter settings"; // // switchbox // this.switchbox.FormattingEnabled = true; this.switchbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.switchbox.Location = new System.Drawing.Point(267, 235); this.switchbox.Name = "switchbox"; this.switchbox.Size = new System.Drawing.Size(57, 21); this.switchbox.TabIndex = 28; this.toolTip1.SetToolTip(this.switchbox, "Select RC function here"); // // deactivatemotors // this.deactivatemotors.Checked = true; this.deactivatemotors.CheckState = System.Windows.Forms.CheckState.Checked; this.deactivatemotors.Location = new System.Drawing.Point(15, 286); this.deactivatemotors.Name = "deactivatemotors"; this.deactivatemotors.Size = new System.Drawing.Size(132, 24); this.deactivatemotors.TabIndex = 27; this.deactivatemotors.Text = "Deactivate motors"; this.toolTip1.SetToolTip(this.deactivatemotors, "Deactivate motors (for safety)"); this.deactivatemotors.UseVisualStyleBackColor = true; this.deactivatemotors.Click += new System.EventHandler(this.DeactivatemotorsClick); // // static67 // this.static67.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static67.Location = new System.Drawing.Point(15, 202); this.static67.Name = "static67"; this.static67.Size = new System.Drawing.Size(246, 15); this.static67.TabIndex = 26; this.static67.Text = "Controls (RX/TX channel assignment)"; // // static68 // this.static68.Location = new System.Drawing.Point(267, 204); this.static68.Name = "static68"; this.static68.Size = new System.Drawing.Size(87, 30); this.static68.TabIndex = 26; this.static68.Text = "Motor switch/ \r\nmode selection:"; // // static66 // this.static66.Location = new System.Drawing.Point(204, 217); this.static66.Name = "static66"; this.static66.Size = new System.Drawing.Size(57, 15); this.static66.TabIndex = 26; this.static66.Text = "Yaw:"; // // static65 // this.static65.Location = new System.Drawing.Point(141, 217); this.static65.Name = "static65"; this.static65.Size = new System.Drawing.Size(57, 15); this.static65.TabIndex = 26; this.static65.Text = "Roll:"; // // static64 // this.static64.Location = new System.Drawing.Point(78, 217); this.static64.Name = "static64"; this.static64.Size = new System.Drawing.Size(57, 15); this.static64.TabIndex = 26; this.static64.Text = "Nick:"; // // static63 // this.static63.Location = new System.Drawing.Point(15, 217); this.static63.Name = "static63"; this.static63.Size = new System.Drawing.Size(57, 15); this.static63.TabIndex = 26; this.static63.Text = "Throttle:"; // // yawbox // this.yawbox.FormattingEnabled = true; this.yawbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.yawbox.Location = new System.Drawing.Point(204, 235); this.yawbox.Name = "yawbox"; this.yawbox.Size = new System.Drawing.Size(57, 21); this.yawbox.TabIndex = 25; this.toolTip1.SetToolTip(this.yawbox, "Select RC function here"); // // rollbox // this.rollbox.FormattingEnabled = true; this.rollbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.rollbox.Location = new System.Drawing.Point(141, 235); this.rollbox.Name = "rollbox"; this.rollbox.Size = new System.Drawing.Size(57, 21); this.rollbox.TabIndex = 24; this.toolTip1.SetToolTip(this.rollbox, "Select RC function here"); // // Nickbox // this.Nickbox.FormattingEnabled = true; this.Nickbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.Nickbox.Location = new System.Drawing.Point(78, 235); this.Nickbox.Name = "Nickbox"; this.Nickbox.Size = new System.Drawing.Size(57, 21); this.Nickbox.TabIndex = 23; this.toolTip1.SetToolTip(this.Nickbox, "Select RC function here"); // // throttlebox // this.throttlebox.FormattingEnabled = true; this.throttlebox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.throttlebox.Location = new System.Drawing.Point(15, 235); this.throttlebox.Name = "throttlebox"; this.throttlebox.Size = new System.Drawing.Size(57, 21); this.throttlebox.TabIndex = 22; this.toolTip1.SetToolTip(this.throttlebox, "Select RC function here"); // // textBoxu // this.textBoxu.Location = new System.Drawing.Point(290, 128); this.textBoxu.Name = "textBoxu"; this.textBoxu.Size = new System.Drawing.Size(50, 20); this.textBoxu.TabIndex = 21; this.toolTip1.SetToolTip(this.textBoxu, "Minimum throttle of the motors when they are turned on and the throttle stick is " + "at the bottom"); this.textBoxu.TextChanged += new System.EventHandler(this.TextBoxuTextChanged); // // labelu // this.labelu.Location = new System.Drawing.Point(225, 131); this.labelu.Name = "labelu"; this.labelu.Size = new System.Drawing.Size(50, 20); this.labelu.TabIndex = 20; this.labelu.Text = "---"; // // static40 // this.static40.Location = new System.Drawing.Point(15, 131); this.static40.Name = "static40"; this.static40.Size = new System.Drawing.Size(186, 23); this.static40.TabIndex = 19; this.static40.Text = "Minimum throttle (idle up) [15]"; // // textBoxS // this.textBoxS.Location = new System.Drawing.Point(290, 82); this.textBoxS.Name = "textBoxS"; this.textBoxS.Size = new System.Drawing.Size(50, 20); this.textBoxS.TabIndex = 17; this.toolTip1.SetToolTip(this.textBoxS, "Yaw sensitivity (for both hover and acro mode)"); this.textBoxS.TextChanged += new System.EventHandler(this.TextBoxSTextChanged); // // textBoxR // this.textBoxR.Location = new System.Drawing.Point(290, 59); this.textBoxR.Name = "textBoxR"; this.textBoxR.Size = new System.Drawing.Size(50, 20); this.textBoxR.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxR, "Agility in hover mode"); this.textBoxR.TextChanged += new System.EventHandler(this.TextBoxRTextChanged); // // textBoxQ // this.textBoxQ.Location = new System.Drawing.Point(290, 36); this.textBoxQ.Name = "textBoxQ"; this.textBoxQ.Size = new System.Drawing.Size(50, 20); this.textBoxQ.TabIndex = 15; this.toolTip1.SetToolTip(this.textBoxQ, "Agility in acro mode"); this.textBoxQ.TextChanged += new System.EventHandler(this.TextBoxQTextChanged); // // checkBoxT // this.checkBoxT.Checked = true; this.checkBoxT.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxT.Enabled = false; this.checkBoxT.Location = new System.Drawing.Point(225, 105); this.checkBoxT.Name = "checkBoxT"; this.checkBoxT.Size = new System.Drawing.Size(30, 20); this.checkBoxT.TabIndex = 14; this.checkBoxT.UseVisualStyleBackColor = true; // // labels // this.labels.Location = new System.Drawing.Point(225, 85); this.labels.Name = "labels"; this.labels.Size = new System.Drawing.Size(50, 20); this.labels.TabIndex = 13; this.labels.Text = "---"; // // labelr // this.labelr.Location = new System.Drawing.Point(225, 62); this.labelr.Name = "labelr"; this.labelr.Size = new System.Drawing.Size(50, 20); this.labelr.TabIndex = 12; this.labelr.Text = "---"; // // labelq // this.labelq.Location = new System.Drawing.Point(225, 39); this.labelq.Name = "labelq"; this.labelq.Size = new System.Drawing.Size(50, 20); this.labelq.TabIndex = 11; this.labelq.Text = "---"; // // static15 // this.static15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static15.Location = new System.Drawing.Point(290, 16); this.static15.Name = "static15"; this.static15.Size = new System.Drawing.Size(84, 23); this.static15.TabIndex = 10; this.static15.Text = "New values"; // // static13 // this.static13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static13.Location = new System.Drawing.Point(15, 16); this.static13.Name = "static13"; this.static13.Size = new System.Drawing.Size(115, 23); this.static13.TabIndex = 9; this.static13.Text = "Parameter [default]"; // // static14 // this.static14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static14.Location = new System.Drawing.Point(205, 16); this.static14.Name = "static14"; this.static14.Size = new System.Drawing.Size(79, 23); this.static14.TabIndex = 8; this.static14.Text = "Values in ĀµC"; // // static12 // this.static12.Location = new System.Drawing.Point(15, 108); this.static12.Name = "static12"; this.static12.Size = new System.Drawing.Size(198, 23); this.static12.TabIndex = 5; this.static12.Text = "ACRO: Exponential agility boost [0]"; // // static11 // this.static11.Location = new System.Drawing.Point(15, 85); this.static11.Name = "static11"; this.static11.Size = new System.Drawing.Size(198, 23); this.static11.TabIndex = 4; this.static11.Text = "Yaw stick sensitivity [130]"; // // checkBoxT2 // this.checkBoxT2.Checked = true; this.checkBoxT2.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxT2.Location = new System.Drawing.Point(290, 105); this.checkBoxT2.Name = "checkBoxT2"; this.checkBoxT2.Size = new System.Drawing.Size(50, 20); this.checkBoxT2.TabIndex = 6; this.checkBoxT2.Text = "on"; this.toolTip1.SetToolTip(this.checkBoxT2, "Exponential increase in agility when roll or yaw sticks move out of the centre"); this.checkBoxT2.UseVisualStyleBackColor = true; // // static9 // this.static9.Location = new System.Drawing.Point(15, 39); this.static9.Name = "static9"; this.static9.Size = new System.Drawing.Size(198, 23); this.static9.TabIndex = 2; this.static9.Text = "ACRO: Stick sensitivity roll + nick [130]"; // // static10 // this.static10.Location = new System.Drawing.Point(15, 62); this.static10.Name = "static10"; this.static10.Size = new System.Drawing.Size(200, 23); this.static10.TabIndex = 3; this.static10.Text = "HOVER: Stick sensitivity roll + nick [70]"; // // tabPage3 // this.tabPage3.Controls.Add(this.groupBox6); this.tabPage3.Controls.Add(this.groupBox5); this.tabPage3.Controls.Add(this.groupBox4); this.tabPage3.Controls.Add(this.groupBox3); this.tabPage3.Controls.Add(this.groupBox1); this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Size = new System.Drawing.Size(649, 366); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "PID loop"; this.tabPage3.UseVisualStyleBackColor = true; // // groupBox6 // this.groupBox6.Controls.Add(this.textBoxx); this.groupBox6.Controls.Add(this.textBoxw); this.groupBox6.Controls.Add(this.labelx); this.groupBox6.Controls.Add(this.labelw); this.groupBox6.Controls.Add(this.static46); this.groupBox6.Controls.Add(this.static45); this.groupBox6.Controls.Add(this.textBoxp); this.groupBox6.Controls.Add(this.textBoxo); this.groupBox6.Controls.Add(this.textBoxn); this.groupBox6.Controls.Add(this.labelp); this.groupBox6.Controls.Add(this.labelo); this.groupBox6.Controls.Add(this.labeln); this.groupBox6.Controls.Add(this.static39); this.groupBox6.Controls.Add(this.static38); this.groupBox6.Controls.Add(this.static37); this.groupBox6.Controls.Add(this.static36); this.groupBox6.Controls.Add(this.static35); this.groupBox6.Controls.Add(this.static34); this.groupBox6.Location = new System.Drawing.Point(3, 180); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(267, 182); this.groupBox6.TabIndex = 4; this.groupBox6.TabStop = false; this.groupBox6.Text = "ACC settings"; // // textBoxx // this.textBoxx.Location = new System.Drawing.Point(193, 130); this.textBoxx.Name = "textBoxx"; this.textBoxx.Size = new System.Drawing.Size(50, 20); this.textBoxx.TabIndex = 25; this.toolTip1.SetToolTip(this.textBoxx, "Y acc offset determines at which angle the acc thinks it is horizontal. If your c" + "opter doesn\'t stay in place, you need to tune this parameter."); this.textBoxx.TextChanged += new System.EventHandler(this.TextBoxxTextChanged); // // textBoxw // this.textBoxw.Location = new System.Drawing.Point(193, 107); this.textBoxw.Name = "textBoxw"; this.textBoxw.Size = new System.Drawing.Size(50, 20); this.textBoxw.TabIndex = 24; this.toolTip1.SetToolTip(this.textBoxw, "X acc offset determines at which angle the acc thinks it is horizontal. If your c" + "opter doesn\'t stay in place, you need to tune this parameter."); this.textBoxw.TextChanged += new System.EventHandler(this.TextBoxwTextChanged); // // labelx // this.labelx.Location = new System.Drawing.Point(126, 133); this.labelx.Name = "labelx"; this.labelx.Size = new System.Drawing.Size(50, 20); this.labelx.TabIndex = 23; this.labelx.Text = "---"; // // labelw // this.labelw.Location = new System.Drawing.Point(126, 110); this.labelw.Name = "labelw"; this.labelw.Size = new System.Drawing.Size(50, 20); this.labelw.TabIndex = 22; this.labelw.Text = "---"; // // static46 // this.static46.Location = new System.Drawing.Point(8, 133); this.static46.Name = "static46"; this.static46.Size = new System.Drawing.Size(100, 23); this.static46.TabIndex = 21; this.static46.Text = "Y acc offset [128]"; // // static45 // this.static45.Location = new System.Drawing.Point(8, 110); this.static45.Name = "static45"; this.static45.Size = new System.Drawing.Size(100, 23); this.static45.TabIndex = 20; this.static45.Text = "X acc offset [128]"; // // textBoxp // this.textBoxp.Location = new System.Drawing.Point(193, 84); this.textBoxp.Name = "textBoxp"; this.textBoxp.Size = new System.Drawing.Size(50, 20); this.textBoxp.TabIndex = 19; this.toolTip1.SetToolTip(this.textBoxp, "Scale factor of the acc, the acc has to have a similar amplitude as the gyro inte" + "gral"); this.textBoxp.TextChanged += new System.EventHandler(this.TextBoxpTextChanged); // // textBoxo // this.textBoxo.Location = new System.Drawing.Point(193, 61); this.textBoxo.Name = "textBoxo"; this.textBoxo.Size = new System.Drawing.Size(50, 20); this.textBoxo.TabIndex = 18; this.toolTip1.SetToolTip(this.textBoxo, "Scale factor of the acc, the acc has to have a similar amplitude as the gyro inte" + "gral"); this.textBoxo.TextChanged += new System.EventHandler(this.TextBoxoTextChanged); // // textBoxn // this.textBoxn.Location = new System.Drawing.Point(193, 38); this.textBoxn.Name = "textBoxn"; this.textBoxn.Size = new System.Drawing.Size(50, 20); this.textBoxn.TabIndex = 17; this.toolTip1.SetToolTip(this.textBoxn, "Determines how much the gyro integral is influenced by the acc"); this.textBoxn.TextChanged += new System.EventHandler(this.TextBoxnTextChanged); // // labelp // this.labelp.Location = new System.Drawing.Point(126, 87); this.labelp.Name = "labelp"; this.labelp.Size = new System.Drawing.Size(50, 20); this.labelp.TabIndex = 16; this.labelp.Text = "---"; // // labelo // this.labelo.Location = new System.Drawing.Point(126, 64); this.labelo.Name = "labelo"; this.labelo.Size = new System.Drawing.Size(50, 20); this.labelo.TabIndex = 15; this.labelo.Text = "---"; // // labeln // this.labeln.Location = new System.Drawing.Point(126, 41); this.labeln.Name = "labeln"; this.labeln.Size = new System.Drawing.Size(50, 20); this.labeln.TabIndex = 14; this.labeln.Text = "---"; // // static39 // this.static39.Location = new System.Drawing.Point(8, 87); this.static39.Name = "static39"; this.static39.Size = new System.Drawing.Size(100, 23); this.static39.TabIndex = 13; this.static39.Text = "Y acc scale [140]"; // // static38 // this.static38.Location = new System.Drawing.Point(8, 64); this.static38.Name = "static38"; this.static38.Size = new System.Drawing.Size(100, 23); this.static38.TabIndex = 12; this.static38.Text = "X acc scale [140]"; // // static37 // this.static37.Location = new System.Drawing.Point(8, 41); this.static37.Name = "static37"; this.static37.Size = new System.Drawing.Size(100, 23); this.static37.TabIndex = 11; this.static37.Text = "ACC influence [10]"; // // static36 // this.static36.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static36.Location = new System.Drawing.Point(193, 14); this.static36.Name = "static36"; this.static36.Size = new System.Drawing.Size(74, 23); this.static36.TabIndex = 10; this.static36.Text = "New values"; // // static35 // this.static35.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static35.Location = new System.Drawing.Point(113, 14); this.static35.Name = "static35"; this.static35.Size = new System.Drawing.Size(79, 23); this.static35.TabIndex = 8; this.static35.Text = "Values in ĀµC"; // // static34 // this.static34.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static34.Location = new System.Drawing.Point(8, 14); this.static34.Name = "static34"; this.static34.Size = new System.Drawing.Size(115, 23); this.static34.TabIndex = 9; this.static34.Text = "Parameter [default]"; // // groupBox5 // this.groupBox5.Controls.Add(this.trackBar15); this.groupBox5.Controls.Add(this.checkBox3); this.groupBox5.Controls.Add(this.label14); this.groupBox5.Controls.Add(this.label25); this.groupBox5.Controls.Add(this.label26); this.groupBox5.Controls.Add(this.textBoxm); this.groupBox5.Controls.Add(this.textBoxl); this.groupBox5.Controls.Add(this.labelm); this.groupBox5.Controls.Add(this.labell); this.groupBox5.Controls.Add(this.static33); this.groupBox5.Controls.Add(this.static32); this.groupBox5.Controls.Add(this.static29); this.groupBox5.Controls.Add(this.static31); this.groupBox5.Controls.Add(this.static30); this.groupBox5.Location = new System.Drawing.Point(276, 267); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(370, 95); this.groupBox5.TabIndex = 3; this.groupBox5.TabStop = false; this.groupBox5.Text = "Yaw PI"; // // trackBar15 // this.trackBar15.BackColor = System.Drawing.SystemColors.Window; this.trackBar15.LargeChange = 2; this.trackBar15.Location = new System.Drawing.Point(325, 30); this.trackBar15.Margin = new System.Windows.Forms.Padding(1); this.trackBar15.Name = "trackBar15"; this.trackBar15.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar15.Size = new System.Drawing.Size(42, 61); this.trackBar15.TabIndex = 21; this.trackBar15.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar15.Value = 6; this.trackBar15.Scroll += new System.EventHandler(this.TrackBar15Scroll); // // checkBox3 // this.checkBox3.Location = new System.Drawing.Point(335, 10); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(20, 24); this.checkBox3.TabIndex = 20; this.checkBox3.UseVisualStyleBackColor = true; this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged); // // label14 // this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label14.Location = new System.Drawing.Point(259, 34); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(63, 23); this.label14.TabIndex = 18; this.label14.Text = "high sens"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label25 // this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label25.Location = new System.Drawing.Point(259, 69); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(63, 23); this.label25.TabIndex = 19; this.label25.Text = "low sens"; this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label26 // this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label26.Location = new System.Drawing.Point(266, 16); this.label26.Name = "label26"; this.label26.Size = new System.Drawing.Size(63, 23); this.label26.TabIndex = 17; this.label26.Text = "Easy mode"; // // textBoxm // this.textBoxm.Location = new System.Drawing.Point(190, 53); this.textBoxm.Name = "textBoxm"; this.textBoxm.Size = new System.Drawing.Size(50, 20); this.textBoxm.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxm, "I of yaw: to sum of the errors in angular velocity"); this.textBoxm.TextChanged += new System.EventHandler(this.TextBoxmTextChanged); // // textBoxl // this.textBoxl.Location = new System.Drawing.Point(190, 30); this.textBoxl.Name = "textBoxl"; this.textBoxl.Size = new System.Drawing.Size(50, 20); this.textBoxl.TabIndex = 15; this.toolTip1.SetToolTip(this.textBoxl, "P of yaw: reacts to errors in yaw velocity"); this.textBoxl.TextChanged += new System.EventHandler(this.TextBoxlTextChanged); // // labelm // this.labelm.Location = new System.Drawing.Point(113, 56); this.labelm.Name = "labelm"; this.labelm.Size = new System.Drawing.Size(50, 20); this.labelm.TabIndex = 14; this.labelm.Text = "---"; // // labell // this.labell.Location = new System.Drawing.Point(113, 33); this.labell.Name = "labell"; this.labell.Size = new System.Drawing.Size(50, 20); this.labell.TabIndex = 13; this.labell.Text = "---"; // // static33 // this.static33.Location = new System.Drawing.Point(7, 56); this.static33.Name = "static33"; this.static33.Size = new System.Drawing.Size(100, 23); this.static33.TabIndex = 12; this.static33.Text = "I [70]"; // // static32 // this.static32.Location = new System.Drawing.Point(7, 33); this.static32.Name = "static32"; this.static32.Size = new System.Drawing.Size(100, 23); this.static32.TabIndex = 11; this.static32.Text = "P [100]"; // // static29 // this.static29.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static29.Location = new System.Drawing.Point(6, 16); this.static29.Name = "static29"; this.static29.Size = new System.Drawing.Size(107, 23); this.static29.TabIndex = 9; this.static29.Text = "Parameter [default]"; // // static31 // this.static31.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static31.Location = new System.Drawing.Point(188, 16); this.static31.Name = "static31"; this.static31.Size = new System.Drawing.Size(100, 23); this.static31.TabIndex = 10; this.static31.Text = "New values"; // // static30 // this.static30.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static30.Location = new System.Drawing.Point(113, 16); this.static30.Name = "static30"; this.static30.Size = new System.Drawing.Size(88, 23); this.static30.TabIndex = 8; this.static30.Text = "Values in ĀµC"; // // groupBox4 // this.groupBox4.Controls.Add(this.checkBoxf2); this.groupBox4.Controls.Add(this.checkBoxf); this.groupBox4.Controls.Add(this.checkBoxe2); this.groupBox4.Controls.Add(this.checkBoxe); this.groupBox4.Controls.Add(this.static28); this.groupBox4.Controls.Add(this.static27); this.groupBox4.Controls.Add(this.checkBoxD2); this.groupBox4.Controls.Add(this.checkBoxB2); this.groupBox4.Controls.Add(this.checkBoxC2); this.groupBox4.Controls.Add(this.checkBoxD); this.groupBox4.Controls.Add(this.checkBoxC); this.groupBox4.Controls.Add(this.checkBoxB); this.groupBox4.Controls.Add(this.static26); this.groupBox4.Controls.Add(this.static25); this.groupBox4.Controls.Add(this.static24); this.groupBox4.Controls.Add(this.static22); this.groupBox4.Controls.Add(this.static23); this.groupBox4.Controls.Add(this.static21); this.groupBox4.Location = new System.Drawing.Point(3, 3); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(267, 171); this.groupBox4.TabIndex = 2; this.groupBox4.TabStop = false; this.groupBox4.Text = "Directions"; // // checkBoxf2 // this.checkBoxf2.Location = new System.Drawing.Point(199, 136); this.checkBoxf2.Name = "checkBoxf2"; this.checkBoxf2.Size = new System.Drawing.Size(50, 20); this.checkBoxf2.TabIndex = 21; this.toolTip1.SetToolTip(this.checkBoxf2, "Reverse Y acc"); this.checkBoxf2.UseVisualStyleBackColor = true; // // checkBoxf // this.checkBoxf.Enabled = false; this.checkBoxf.Location = new System.Drawing.Point(142, 136); this.checkBoxf.Name = "checkBoxf"; this.checkBoxf.Size = new System.Drawing.Size(20, 20); this.checkBoxf.TabIndex = 20; this.checkBoxf.UseVisualStyleBackColor = true; // // checkBoxe2 // this.checkBoxe2.Location = new System.Drawing.Point(199, 109); this.checkBoxe2.Name = "checkBoxe2"; this.checkBoxe2.Size = new System.Drawing.Size(50, 20); this.checkBoxe2.TabIndex = 19; this.toolTip1.SetToolTip(this.checkBoxe2, "Reverse X acc"); this.checkBoxe2.UseVisualStyleBackColor = true; // // checkBoxe // this.checkBoxe.Enabled = false; this.checkBoxe.Location = new System.Drawing.Point(142, 109); this.checkBoxe.Name = "checkBoxe"; this.checkBoxe.Size = new System.Drawing.Size(20, 20); this.checkBoxe.TabIndex = 18; this.checkBoxe.UseVisualStyleBackColor = true; // // static28 // this.static28.Location = new System.Drawing.Point(7, 139); this.static28.Name = "static28"; this.static28.Size = new System.Drawing.Size(100, 23); this.static28.TabIndex = 17; this.static28.Text = "Y acc reverse [0]"; // // static27 // this.static27.Location = new System.Drawing.Point(7, 112); this.static27.Name = "static27"; this.static27.Size = new System.Drawing.Size(100, 23); this.static27.TabIndex = 16; this.static27.Text = "X acc reverse [0]"; // // checkBoxD2 // this.checkBoxD2.Location = new System.Drawing.Point(199, 82); this.checkBoxD2.Name = "checkBoxD2"; this.checkBoxD2.Size = new System.Drawing.Size(50, 20); this.checkBoxD2.TabIndex = 15; this.toolTip1.SetToolTip(this.checkBoxD2, "Reverse yaw gyro"); this.checkBoxD2.UseVisualStyleBackColor = true; // // checkBoxB2 // this.checkBoxB2.Location = new System.Drawing.Point(199, 33); this.checkBoxB2.Name = "checkBoxB2"; this.checkBoxB2.Size = new System.Drawing.Size(50, 20); this.checkBoxB2.TabIndex = 14; this.toolTip1.SetToolTip(this.checkBoxB2, "Reverse roll gyro"); this.checkBoxB2.UseVisualStyleBackColor = true; // // checkBoxC2 // this.checkBoxC2.Location = new System.Drawing.Point(199, 59); this.checkBoxC2.Name = "checkBoxC2"; this.checkBoxC2.Size = new System.Drawing.Size(50, 20); this.checkBoxC2.TabIndex = 13; this.toolTip1.SetToolTip(this.checkBoxC2, "Reverse nick gyro"); this.checkBoxC2.UseVisualStyleBackColor = true; // // checkBoxD // this.checkBoxD.Enabled = false; this.checkBoxD.Location = new System.Drawing.Point(142, 83); this.checkBoxD.Name = "checkBoxD"; this.checkBoxD.Size = new System.Drawing.Size(20, 20); this.checkBoxD.TabIndex = 11; this.checkBoxD.UseVisualStyleBackColor = true; // // checkBoxC // this.checkBoxC.Enabled = false; this.checkBoxC.Location = new System.Drawing.Point(142, 59); this.checkBoxC.Name = "checkBoxC"; this.checkBoxC.Size = new System.Drawing.Size(20, 20); this.checkBoxC.TabIndex = 10; this.checkBoxC.UseVisualStyleBackColor = true; // // checkBoxB // this.checkBoxB.Enabled = false; this.checkBoxB.Location = new System.Drawing.Point(142, 33); this.checkBoxB.Name = "checkBoxB"; this.checkBoxB.Size = new System.Drawing.Size(20, 20); this.checkBoxB.TabIndex = 9; this.checkBoxB.UseVisualStyleBackColor = true; // // static26 // this.static26.Location = new System.Drawing.Point(7, 85); this.static26.Name = "static26"; this.static26.Size = new System.Drawing.Size(114, 23); this.static26.TabIndex = 8; this.static26.Text = "Yaw gyro reverse [0]"; // // static25 // this.static25.Location = new System.Drawing.Point(7, 61); this.static25.Name = "static25"; this.static25.Size = new System.Drawing.Size(114, 23); this.static25.TabIndex = 8; this.static25.Text = "Nick gyro reverse [0]"; // // static24 // this.static24.Location = new System.Drawing.Point(7, 36); this.static24.Name = "static24"; this.static24.Size = new System.Drawing.Size(114, 23); this.static24.TabIndex = 8; this.static24.Text = "Roll gyro reverse [0]"; // // static22 // this.static22.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static22.Location = new System.Drawing.Point(117, 16); this.static22.Name = "static22"; this.static22.Size = new System.Drawing.Size(75, 23); this.static22.TabIndex = 6; this.static22.Text = "Values in ĀµC"; // // static23 // this.static23.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static23.Location = new System.Drawing.Point(193, 16); this.static23.Name = "static23"; this.static23.Size = new System.Drawing.Size(74, 23); this.static23.TabIndex = 7; this.static23.Text = "New values"; // // static21 // this.static21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static21.Location = new System.Drawing.Point(6, 16); this.static21.Name = "static21"; this.static21.Size = new System.Drawing.Size(115, 23); this.static21.TabIndex = 6; this.static21.Text = "Parameter [default]"; // // groupBox3 // this.groupBox3.Controls.Add(this.checkBox2); this.groupBox3.Controls.Add(this.trackBar14); this.groupBox3.Controls.Add(this.label24); this.groupBox3.Controls.Add(this.textBoxy); this.groupBox3.Controls.Add(this.label23); this.groupBox3.Controls.Add(this.textBoxH); this.groupBox3.Controls.Add(this.textBoxG); this.groupBox3.Controls.Add(this.labely); this.groupBox3.Controls.Add(this.labelH); this.groupBox3.Controls.Add(this.label16); this.groupBox3.Controls.Add(this.labelG); this.groupBox3.Controls.Add(this.static17); this.groupBox3.Controls.Add(this.label22); this.groupBox3.Controls.Add(this.static16); this.groupBox3.Controls.Add(this.static18); this.groupBox3.Controls.Add(this.static20); this.groupBox3.Controls.Add(this.static19); this.groupBox3.Location = new System.Drawing.Point(276, 145); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(370, 116); this.groupBox3.TabIndex = 1; this.groupBox3.TabStop = false; this.groupBox3.Text = "ACRO Mode PID"; // // checkBox2 // this.checkBox2.Location = new System.Drawing.Point(335, 10); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(20, 24); this.checkBox2.TabIndex = 12; this.checkBox2.UseVisualStyleBackColor = true; this.checkBox2.CheckedChanged += new System.EventHandler(this.CheckBox2CheckedChanged); // // trackBar14 // this.trackBar14.BackColor = System.Drawing.SystemColors.Window; this.trackBar14.LargeChange = 2; this.trackBar14.Location = new System.Drawing.Point(325, 36); this.trackBar14.Margin = new System.Windows.Forms.Padding(0); this.trackBar14.Name = "trackBar14"; this.trackBar14.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar14.Size = new System.Drawing.Size(42, 77); this.trackBar14.TabIndex = 11; this.trackBar14.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar14.Value = 5; this.trackBar14.Scroll += new System.EventHandler(this.TrackBar14Scroll); // // label24 // this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label24.Location = new System.Drawing.Point(259, 39); this.label24.Name = "label24"; this.label24.Size = new System.Drawing.Size(63, 23); this.label24.TabIndex = 10; this.label24.Text = "high sens"; this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBoxy // this.textBoxy.Location = new System.Drawing.Point(190, 83); this.textBoxy.Name = "textBoxy"; this.textBoxy.Size = new System.Drawing.Size(50, 20); this.textBoxy.TabIndex = 10; this.toolTip1.SetToolTip(this.textBoxy, "D in acro mode: reacts to changes in angular acceleration"); this.textBoxy.TextChanged += new System.EventHandler(this.TextBoxHTextChanged); // // label23 // this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label23.Location = new System.Drawing.Point(259, 89); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(63, 23); this.label23.TabIndex = 10; this.label23.Text = "low sens"; this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBoxH // this.textBoxH.Location = new System.Drawing.Point(190, 59); this.textBoxH.Name = "textBoxH"; this.textBoxH.Size = new System.Drawing.Size(50, 20); this.textBoxH.TabIndex = 10; this.toolTip1.SetToolTip(this.textBoxH, "I in acro mode: The sum of the errors in angular velocity"); this.textBoxH.TextChanged += new System.EventHandler(this.TextBoxHTextChanged); // // textBoxG // this.textBoxG.Location = new System.Drawing.Point(190, 36); this.textBoxG.Name = "textBoxG"; this.textBoxG.Size = new System.Drawing.Size(50, 20); this.textBoxG.TabIndex = 9; this.toolTip1.SetToolTip(this.textBoxG, "P in acro mode: Reacts to errors in angular velocity"); this.textBoxG.TextChanged += new System.EventHandler(this.TextBoxGTextChanged); // // labely // this.labely.Location = new System.Drawing.Point(113, 86); this.labely.Name = "labely"; this.labely.Size = new System.Drawing.Size(50, 20); this.labely.TabIndex = 8; this.labely.Text = "---"; // // labelH // this.labelH.Location = new System.Drawing.Point(113, 62); this.labelH.Name = "labelH"; this.labelH.Size = new System.Drawing.Size(50, 20); this.labelH.TabIndex = 8; this.labelH.Text = "---"; // // label16 // this.label16.Location = new System.Drawing.Point(8, 86); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(51, 23); this.label16.TabIndex = 1; this.label16.Text = "D [15]"; // // labelG // this.labelG.Location = new System.Drawing.Point(113, 39); this.labelG.Name = "labelG"; this.labelG.Size = new System.Drawing.Size(50, 20); this.labelG.TabIndex = 2; this.labelG.Text = "---"; // // static17 // this.static17.Location = new System.Drawing.Point(8, 62); this.static17.Name = "static17"; this.static17.Size = new System.Drawing.Size(51, 23); this.static17.TabIndex = 1; this.static17.Text = "I [30]"; // // label22 // this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label22.Location = new System.Drawing.Point(266, 16); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(63, 23); this.label22.TabIndex = 7; this.label22.Text = "Easy mode"; // // static16 // this.static16.Location = new System.Drawing.Point(8, 39); this.static16.Name = "static16"; this.static16.Size = new System.Drawing.Size(51, 23); this.static16.TabIndex = 0; this.static16.Text = "P [130]"; // // static18 // this.static18.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static18.Location = new System.Drawing.Point(8, 16); this.static18.Name = "static18"; this.static18.Size = new System.Drawing.Size(107, 23); this.static18.TabIndex = 6; this.static18.Text = "Parameter [default]"; // // static20 // this.static20.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static20.Location = new System.Drawing.Point(190, 16); this.static20.Name = "static20"; this.static20.Size = new System.Drawing.Size(74, 23); this.static20.TabIndex = 7; this.static20.Text = "New values"; // // static19 // this.static19.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static19.Location = new System.Drawing.Point(113, 16); this.static19.Name = "static19"; this.static19.Size = new System.Drawing.Size(79, 23); this.static19.TabIndex = 6; this.static19.Text = "Values in ĀµC"; // // groupBox1 // this.groupBox1.BackColor = System.Drawing.Color.Transparent; this.groupBox1.Controls.Add(this.label21); this.groupBox1.Controls.Add(this.label20); this.groupBox1.Controls.Add(this.checkBox1); this.groupBox1.Controls.Add(this.trackBar13); this.groupBox1.Controls.Add(this.label18); this.groupBox1.Controls.Add(this.static6); this.groupBox1.Controls.Add(this.static5); this.groupBox1.Controls.Add(this.static4); this.groupBox1.Controls.Add(this.textBoxi); this.groupBox1.Controls.Add(this.label19); this.groupBox1.Controls.Add(this.static3); this.groupBox1.Controls.Add(this.labeli); this.groupBox1.Controls.Add(this.static7); this.groupBox1.Controls.Add(this.static2); this.groupBox1.Controls.Add(this.labelj); this.groupBox1.Controls.Add(this.textBoxz); this.groupBox1.Controls.Add(this.textBoxk); this.groupBox1.Controls.Add(this.labelz); this.groupBox1.Controls.Add(this.labelk); this.groupBox1.Controls.Add(this.textBoxj); this.groupBox1.Location = new System.Drawing.Point(276, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(370, 136); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "HOVER Mode PIDDĀ²"; // // label21 // this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label21.Location = new System.Drawing.Point(259, 38); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(63, 23); this.label21.TabIndex = 10; this.label21.Text = "high sens"; this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label20 // this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label20.Location = new System.Drawing.Point(259, 105); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(63, 23); this.label20.TabIndex = 10; this.label20.Text = "low sens"; this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(335, 12); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(20, 20); this.checkBox1.TabIndex = 9; this.toolTip1.SetToolTip(this.checkBox1, "Easy mode gives you less options in changing the parameters."); this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged); // // trackBar13 // this.trackBar13.BackColor = System.Drawing.SystemColors.Window; this.trackBar13.LargeChange = 2; this.trackBar13.Location = new System.Drawing.Point(325, 38); this.trackBar13.Margin = new System.Windows.Forms.Padding(0); this.trackBar13.Name = "trackBar13"; this.trackBar13.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar13.Size = new System.Drawing.Size(42, 90); this.trackBar13.TabIndex = 9; this.trackBar13.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar13.Value = 6; this.trackBar13.Scroll += new System.EventHandler(this.TrackBar13Scroll); // // label18 // this.label18.Location = new System.Drawing.Point(8, 109); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(51, 23); this.label18.TabIndex = 8; this.label18.Text = "DĀ² [10]"; // // static6 // this.static6.Location = new System.Drawing.Point(8, 85); this.static6.Name = "static6"; this.static6.Size = new System.Drawing.Size(51, 23); this.static6.TabIndex = 8; this.static6.Text = "D [80]"; // // static5 // this.static5.Location = new System.Drawing.Point(8, 62); this.static5.Name = "static5"; this.static5.Size = new System.Drawing.Size(51, 23); this.static5.TabIndex = 8; this.static5.Text = "I [190]"; // // static4 // this.static4.Location = new System.Drawing.Point(8, 39); this.static4.Name = "static4"; this.static4.Size = new System.Drawing.Size(51, 23); this.static4.TabIndex = 8; this.static4.Text = "P [130]"; // // textBoxi // this.textBoxi.Location = new System.Drawing.Point(190, 36); this.textBoxi.Name = "textBoxi"; this.textBoxi.Size = new System.Drawing.Size(50, 20); this.textBoxi.TabIndex = 3; this.toolTip1.SetToolTip(this.textBoxi, "P in hover mode: reacts to errors in angle"); this.textBoxi.TextChanged += new System.EventHandler(this.TextBoxiTextChanged); // // label19 // this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label19.Location = new System.Drawing.Point(266, 16); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(63, 23); this.label19.TabIndex = 7; this.label19.Text = "Easy mode"; // // static3 // this.static3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static3.Location = new System.Drawing.Point(190, 16); this.static3.Name = "static3"; this.static3.Size = new System.Drawing.Size(74, 23); this.static3.TabIndex = 7; this.static3.Text = "New values"; // // labeli // this.labeli.Location = new System.Drawing.Point(113, 39); this.labeli.Name = "labeli"; this.labeli.Size = new System.Drawing.Size(50, 20); this.labeli.TabIndex = 0; this.labeli.Text = "---"; // // static7 // this.static7.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static7.Location = new System.Drawing.Point(8, 16); this.static7.Name = "static7"; this.static7.Size = new System.Drawing.Size(107, 23); this.static7.TabIndex = 6; this.static7.Text = "Parameter [default]"; // // static2 // this.static2.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static2.Location = new System.Drawing.Point(113, 16); this.static2.Name = "static2"; this.static2.Size = new System.Drawing.Size(79, 23); this.static2.TabIndex = 6; this.static2.Text = "Values in ĀµC"; // // labelj // this.labelj.Location = new System.Drawing.Point(113, 62); this.labelj.Name = "labelj"; this.labelj.Size = new System.Drawing.Size(50, 20); this.labelj.TabIndex = 1; this.labelj.Text = "---"; // // textBoxz // this.textBoxz.Location = new System.Drawing.Point(190, 106); this.textBoxz.Name = "textBoxz"; this.textBoxz.Size = new System.Drawing.Size(50, 20); this.textBoxz.TabIndex = 5; this.toolTip1.SetToolTip(this.textBoxz, "DĀ² in hover mode: reacts to errors in angular acceleration"); this.textBoxz.TextChanged += new System.EventHandler(this.TextBoxkTextChanged); // // textBoxk // this.textBoxk.Location = new System.Drawing.Point(190, 82); this.textBoxk.Name = "textBoxk"; this.textBoxk.Size = new System.Drawing.Size(50, 20); this.textBoxk.TabIndex = 5; this.toolTip1.SetToolTip(this.textBoxk, "D in hover mode: reacts to errors in angular velocity"); this.textBoxk.TextChanged += new System.EventHandler(this.TextBoxkTextChanged); // // labelz // this.labelz.Location = new System.Drawing.Point(113, 109); this.labelz.Name = "labelz"; this.labelz.Size = new System.Drawing.Size(50, 20); this.labelz.TabIndex = 2; this.labelz.Text = "---"; // // labelk // this.labelk.Location = new System.Drawing.Point(113, 85); this.labelk.Name = "labelk"; this.labelk.Size = new System.Drawing.Size(50, 20); this.labelk.TabIndex = 2; this.labelk.Text = "---"; // // textBoxj // this.textBoxj.Location = new System.Drawing.Point(190, 59); this.textBoxj.Name = "textBoxj"; this.textBoxj.Size = new System.Drawing.Size(50, 20); this.textBoxj.TabIndex = 4; this.toolTip1.SetToolTip(this.textBoxj, "I in hover mode: the sum of the error of the angle"); this.textBoxj.TextChanged += new System.EventHandler(this.TextBoxjTextChanged); // // tabPage5 // this.tabPage5.Controls.Add(this.groupBox15); this.tabPage5.Controls.Add(this.groupBox8); this.tabPage5.Controls.Add(this.groupBox7); this.tabPage5.Location = new System.Drawing.Point(4, 22); this.tabPage5.Name = "tabPage5"; this.tabPage5.Size = new System.Drawing.Size(649, 366); this.tabPage5.TabIndex = 4; this.tabPage5.Text = "Miscellaneous"; this.tabPage5.UseVisualStyleBackColor = true; // // groupBox15 // this.groupBox15.Controls.Add(this.emergmask); this.groupBox15.Controls.Add(this.label41); this.groupBox15.Controls.Add(this.label40); this.groupBox15.Controls.Add(this.labelled2); this.groupBox15.Controls.Add(this.labelled1); this.groupBox15.Controls.Add(this.label37); this.groupBox15.Controls.Add(this.label38); this.groupBox15.Controls.Add(this.label39); this.groupBox15.Controls.Add(this.label36); this.groupBox15.Controls.Add(this.label35); this.groupBox15.Controls.Add(this.led2mask); this.groupBox15.Controls.Add(this.led1mask); this.groupBox15.Location = new System.Drawing.Point(15, 106); this.groupBox15.Name = "groupBox15"; this.groupBox15.Size = new System.Drawing.Size(531, 188); this.groupBox15.TabIndex = 2; this.groupBox15.TabStop = false; this.groupBox15.Text = "Output LED Timing"; // // label41 // this.label41.Location = new System.Drawing.Point(152, 100); this.label41.Name = "label41"; this.label41.Size = new System.Drawing.Size(50, 20); this.label41.TabIndex = 20; this.label41.Text = "---"; // // label40 // this.label40.AutoSize = true; this.label40.Location = new System.Drawing.Point(17, 100); this.label40.Name = "label40"; this.label40.Size = new System.Drawing.Size(124, 13); this.label40.TabIndex = 19; this.label40.Text = "Emergency Pattern [170]"; // // labelled2 // this.labelled2.Location = new System.Drawing.Point(152, 74); this.labelled2.Name = "labelled2"; this.labelled2.Size = new System.Drawing.Size(50, 20); this.labelled2.TabIndex = 18; this.labelled2.Text = "---"; // // labelled1 // this.labelled1.Location = new System.Drawing.Point(152, 48); this.labelled1.Name = "labelled1"; this.labelled1.Size = new System.Drawing.Size(50, 20); this.labelled1.TabIndex = 17; this.labelled1.Text = "---"; // // label37 // this.label37.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label37.Location = new System.Drawing.Point(17, 25); this.label37.Name = "label37"; this.label37.Size = new System.Drawing.Size(115, 13); this.label37.TabIndex = 15; this.label37.Text = "Parameter [default]"; // // label38 // this.label38.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label38.Location = new System.Drawing.Point(226, 25); this.label38.Name = "label38"; this.label38.Size = new System.Drawing.Size(82, 13); this.label38.TabIndex = 16; this.label38.Text = "New values"; // // label39 // this.label39.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label39.Location = new System.Drawing.Point(138, 25); this.label39.Name = "label39"; this.label39.Size = new System.Drawing.Size(82, 13); this.label39.TabIndex = 14; this.label39.Text = "Values in ĀµC"; // // label36 // this.label36.AutoSize = true; this.label36.Location = new System.Drawing.Point(17, 74); this.label36.Name = "label36"; this.label36.Size = new System.Drawing.Size(98, 13); this.label36.TabIndex = 3; this.label36.Text = "LED2 Pattern [207]"; // // label35 // this.label35.AutoSize = true; this.label35.Location = new System.Drawing.Point(17, 48); this.label35.Name = "label35"; this.label35.Size = new System.Drawing.Size(98, 13); this.label35.TabIndex = 2; this.label35.Text = "LED1 Pattern [243]"; // // groupBox8 // this.groupBox8.Controls.Add(this.errorlabel); this.groupBox8.Controls.Add(this.label12); this.groupBox8.Controls.Add(this.static47); this.groupBox8.Location = new System.Drawing.Point(15, 300); this.groupBox8.Name = "groupBox8"; this.groupBox8.Size = new System.Drawing.Size(531, 50); this.groupBox8.TabIndex = 1; this.groupBox8.TabStop = false; this.groupBox8.Text = "RC transmission"; // // errorlabel // this.errorlabel.Location = new System.Drawing.Point(138, 20); this.errorlabel.Name = "errorlabel"; this.errorlabel.Size = new System.Drawing.Size(47, 23); this.errorlabel.TabIndex = 1; this.errorlabel.Text = "0"; // // label12 // this.label12.ForeColor = System.Drawing.SystemColors.ControlDark; this.label12.Location = new System.Drawing.Point(191, 16); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(340, 27); this.label12.TabIndex = 0; this.label12.Text = "Every tiny RX jitter will appear here. \r\nNo need to worry if the number stays bel" + "ow 50."; // // static47 // this.static47.Location = new System.Drawing.Point(7, 20); this.static47.Name = "static47"; this.static47.Size = new System.Drawing.Size(125, 23); this.static47.TabIndex = 0; this.static47.Text = "Nr. of receiver problems:"; // // groupBox7 // this.groupBox7.Controls.Add(this.voltagelevel); this.groupBox7.Controls.Add(this.progressBar1); this.groupBox7.Controls.Add(this.textBoxv); this.groupBox7.Controls.Add(this.labelv); this.groupBox7.Controls.Add(this.static44); this.groupBox7.Controls.Add(this.static41); this.groupBox7.Controls.Add(this.static43); this.groupBox7.Controls.Add(this.static42); this.groupBox7.Location = new System.Drawing.Point(15, 18); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new System.Drawing.Size(531, 82); this.groupBox7.TabIndex = 0; this.groupBox7.TabStop = false; this.groupBox7.Text = "Per-cell Voltage Warning"; // // voltagelevel // this.voltagelevel.Location = new System.Drawing.Point(282, 52); this.voltagelevel.Name = "voltagelevel"; this.voltagelevel.Size = new System.Drawing.Size(79, 20); this.voltagelevel.TabIndex = 18; this.voltagelevel.Text = "= 3.3 Volts"; this.toolTip1.SetToolTip(this.voltagelevel, "Voltage in real units"); // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(367, 49); this.progressBar1.Maximum = 44; this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(102, 20); this.progressBar1.Step = 1; this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar1.TabIndex = 17; this.toolTip1.SetToolTip(this.progressBar1, "Voltage in real units"); // // textBoxv // this.textBoxv.Location = new System.Drawing.Point(226, 49); this.textBoxv.Name = "textBoxv"; this.textBoxv.Size = new System.Drawing.Size(50, 20); this.textBoxv.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxv, "LEDs will start blinking very fast when the voltage drops below a threshold"); this.textBoxv.TextChanged += new System.EventHandler(this.TextBoxvTextChanged); // // labelv // this.labelv.Location = new System.Drawing.Point(152, 52); this.labelv.Name = "labelv"; this.labelv.Size = new System.Drawing.Size(50, 20); this.labelv.TabIndex = 15; this.labelv.Text = "---"; // // static44 // this.static44.Location = new System.Drawing.Point(17, 52); this.static44.Name = "static44"; this.static44.Size = new System.Drawing.Size(115, 23); this.static44.TabIndex = 14; this.static44.Text = "Voltage warning [33]"; // // static41 // this.static41.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static41.Location = new System.Drawing.Point(17, 25); this.static41.Name = "static41"; this.static41.Size = new System.Drawing.Size(115, 23); this.static41.TabIndex = 12; this.static41.Text = "Parameter [default]"; // // static43 // this.static43.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static43.Location = new System.Drawing.Point(226, 25); this.static43.Name = "static43"; this.static43.Size = new System.Drawing.Size(82, 23); this.static43.TabIndex = 13; this.static43.Text = "New values"; // // static42 // this.static42.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static42.Location = new System.Drawing.Point(138, 25); this.static42.Name = "static42"; this.static42.Size = new System.Drawing.Size(82, 23); this.static42.TabIndex = 11; this.static42.Text = "Values in ĀµC"; // // tabPage4 // this.tabPage4.Controls.Add(this.static99); this.tabPage4.Controls.Add(this.Battery); this.tabPage4.Controls.Add(this.groupBox12); this.tabPage4.Controls.Add(this.groupBox11); this.tabPage4.Controls.Add(this.groupBox10); this.tabPage4.Controls.Add(this.groupBox9); this.tabPage4.Location = new System.Drawing.Point(4, 22); this.tabPage4.Name = "tabPage4"; this.tabPage4.Padding = new System.Windows.Forms.Padding(3); this.tabPage4.Size = new System.Drawing.Size(649, 366); this.tabPage4.TabIndex = 5; this.tabPage4.Text = "Realtime data"; this.tabPage4.UseVisualStyleBackColor = true; // // static99 // this.static99.Location = new System.Drawing.Point(56, 7); this.static99.Name = "static99"; this.static99.Size = new System.Drawing.Size(468, 47); this.static99.TabIndex = 21; this.static99.Text = resources.GetString("static99.Text"); // // Battery // this.Battery.Controls.Add(this.labelvolts); this.Battery.Controls.Add(this.pbVoltage); this.Battery.Location = new System.Drawing.Point(435, 216); this.Battery.Name = "Battery"; this.Battery.Size = new System.Drawing.Size(134, 146); this.Battery.TabIndex = 20; this.Battery.TabStop = false; this.Battery.Text = "Battery voltage"; // // labelvolts // this.labelvolts.Location = new System.Drawing.Point(6, 84); this.labelvolts.Name = "labelvolts"; this.labelvolts.Size = new System.Drawing.Size(111, 23); this.labelvolts.TabIndex = 18; this.labelvolts.Text = "---"; // // pbVoltage // this.pbVoltage.Location = new System.Drawing.Point(6, 58); this.pbVoltage.Maximum = 255; this.pbVoltage.Name = "pbVoltage"; this.pbVoltage.Size = new System.Drawing.Size(122, 23); this.pbVoltage.Step = 1; this.pbVoltage.TabIndex = 16; // // groupBox12 // this.groupBox12.Controls.Add(this.TrackBar7); this.groupBox12.Controls.Add(this.static58); this.groupBox12.Controls.Add(this.static55); this.groupBox12.Controls.Add(this.static61); this.groupBox12.Location = new System.Drawing.Point(435, 57); this.groupBox12.Name = "groupBox12"; this.groupBox12.Size = new System.Drawing.Size(134, 153); this.groupBox12.TabIndex = 19; this.groupBox12.TabStop = false; this.groupBox12.Text = "Yaw"; // // TrackBar7 // this.TrackBar7.BackColor = System.Drawing.Color.Transparent; this.TrackBar7.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar7.IndentHeight = 1; this.TrackBar7.IndentWidth = 1; this.TrackBar7.Location = new System.Drawing.Point(16, 66); this.TrackBar7.Maximum = 255; this.TrackBar7.Minimum = 0; this.TrackBar7.Name = "TrackBar7"; this.TrackBar7.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar7.Size = new System.Drawing.Size(100, 19); this.TrackBar7.TabIndex = 23; this.TrackBar7.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar7.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar7.TickFrequency = 128; this.TrackBar7.TickHeight = 1; this.TrackBar7.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar7.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar7.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar7.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar7.TrackLineHeight = 9; this.TrackBar7.Value = 126; // // static58 // this.static58.Location = new System.Drawing.Point(20, 38); this.static58.Name = "static58"; this.static58.Size = new System.Drawing.Size(55, 15); this.static58.TabIndex = 11; this.static58.Text = "left"; // // static55 // this.static55.Location = new System.Drawing.Point(20, 92); this.static55.Name = "static55"; this.static55.Size = new System.Drawing.Size(93, 20); this.static55.TabIndex = 8; this.static55.Text = "Gyro yaw velocity"; // // static61 // this.static61.Location = new System.Drawing.Point(85, 38); this.static61.Name = "static61"; this.static61.Size = new System.Drawing.Size(36, 15); this.static61.TabIndex = 11; this.static61.Text = "right"; // // groupBox11 // this.groupBox11.Controls.Add(this.TrackBar12); this.groupBox11.Controls.Add(this.TrackBar11); this.groupBox11.Controls.Add(this.TrackBar10); this.groupBox11.Controls.Add(this.panel2); this.groupBox11.Controls.Add(this.panel4); this.groupBox11.Controls.Add(this.panelRollCenter); this.groupBox11.Controls.Add(this.label15); this.groupBox11.Controls.Add(this.panel1); this.groupBox11.Controls.Add(this.label10); this.groupBox11.Controls.Add(this.label9); this.groupBox11.Controls.Add(this.label8); this.groupBox11.Controls.Add(this.label6); this.groupBox11.Controls.Add(this.label7); this.groupBox11.Controls.Add(this.label5); this.groupBox11.Controls.Add(this.label4); this.groupBox11.Controls.Add(this.label3); this.groupBox11.Controls.Add(this.label2); this.groupBox11.Controls.Add(this.label1); this.groupBox11.Controls.Add(this.TrackBar9); this.groupBox11.Controls.Add(this.TrackBar8); this.groupBox11.Location = new System.Drawing.Point(56, 216); this.groupBox11.Name = "groupBox11"; this.groupBox11.Size = new System.Drawing.Size(350, 146); this.groupBox11.TabIndex = 17; this.groupBox11.TabStop = false; this.groupBox11.Text = "Transmitter"; // // TrackBar12 // this.TrackBar12.BackColor = System.Drawing.Color.Transparent; this.TrackBar12.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar12.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar12.IndentHeight = 1; this.TrackBar12.IndentWidth = 1; this.TrackBar12.Location = new System.Drawing.Point(285, 39); this.TrackBar12.Maximum = 255; this.TrackBar12.Minimum = 0; this.TrackBar12.Name = "TrackBar12"; this.TrackBar12.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar12.Size = new System.Drawing.Size(19, 80); this.TrackBar12.TabIndex = 28; this.TrackBar12.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar12.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar12.TickFrequency = 128; this.TrackBar12.TickHeight = 1; this.TrackBar12.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar12.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar12.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar12.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar12.TrackLineHeight = 9; this.TrackBar12.Value = 0; // // TrackBar11 // this.TrackBar11.BackColor = System.Drawing.Color.Transparent; this.TrackBar11.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar11.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar11.IndentHeight = 1; this.TrackBar11.IndentWidth = 1; this.TrackBar11.Location = new System.Drawing.Point(96, 39); this.TrackBar11.Maximum = 255; this.TrackBar11.Minimum = 0; this.TrackBar11.Name = "TrackBar11"; this.TrackBar11.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar11.Size = new System.Drawing.Size(19, 80); this.TrackBar11.TabIndex = 27; this.TrackBar11.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar11.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar11.TickFrequency = 128; this.TrackBar11.TickHeight = 1; this.TrackBar11.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar11.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar11.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar11.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar11.TrackLineHeight = 9; this.TrackBar11.Value = 126; // // TrackBar10 // this.TrackBar10.BackColor = System.Drawing.Color.Transparent; this.TrackBar10.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar10.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar10.IndentHeight = 1; this.TrackBar10.IndentWidth = 1; this.TrackBar10.Location = new System.Drawing.Point(22, 37); this.TrackBar10.Maximum = 255; this.TrackBar10.Minimum = 0; this.TrackBar10.Name = "TrackBar10"; this.TrackBar10.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar10.Size = new System.Drawing.Size(19, 80); this.TrackBar10.TabIndex = 26; this.TrackBar10.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar10.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar10.TickFrequency = 128; this.TrackBar10.TickHeight = 1; this.TrackBar10.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar10.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar10.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar10.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar10.TrackLineHeight = 9; this.TrackBar10.Value = 0; // // panel2 // this.panel2.BackColor = System.Drawing.Color.Green; this.panel2.Location = new System.Drawing.Point(43, 105); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(10, 10); this.panel2.TabIndex = 23; // // panel4 // this.panel4.BackColor = System.Drawing.Color.Green; this.panel4.Location = new System.Drawing.Point(192, 92); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(10, 10); this.panel4.TabIndex = 23; // // panelRollCenter // this.panelRollCenter.BackColor = System.Drawing.Color.Green; this.panelRollCenter.Location = new System.Drawing.Point(192, 56); this.panelRollCenter.Name = "panelRollCenter"; this.panelRollCenter.Size = new System.Drawing.Size(10, 10); this.panelRollCenter.TabIndex = 23; // // label15 // this.label15.Location = new System.Drawing.Point(277, 21); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(40, 18); this.label15.TabIndex = 24; this.label15.Text = "Hover"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.Green; this.panel1.Location = new System.Drawing.Point(85, 74); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(10, 10); this.panel1.TabIndex = 22; // // label10 // this.label10.Location = new System.Drawing.Point(274, 123); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(50, 15); this.label10.TabIndex = 12; this.label10.Text = "Mot. off"; // // label9 // this.label9.Location = new System.Drawing.Point(306, 72); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(32, 18); this.label9.TabIndex = 12; this.label9.Text = "-Acro"; // // label8 // this.label8.Location = new System.Drawing.Point(200, 123); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(55, 15); this.label8.TabIndex = 11; this.label8.Text = "Yaw right"; // // label6 // this.label6.Location = new System.Drawing.Point(203, 21); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(50, 15); this.label6.TabIndex = 11; this.label6.Text = "Roll right"; // // label7 // this.label7.Location = new System.Drawing.Point(144, 123); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(50, 15); this.label7.TabIndex = 10; this.label7.Text = "Yaw left"; // // label5 // this.label5.Location = new System.Drawing.Point(144, 21); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(50, 15); this.label5.TabIndex = 10; this.label5.Text = "Roll left"; // // label4 // this.label4.Location = new System.Drawing.Point(60, 123); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 15); this.label4.TabIndex = 9; this.label4.Text = "Nick backward"; // // label3 // this.label3.Location = new System.Drawing.Point(66, 21); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(70, 15); this.label3.TabIndex = 9; this.label3.Text = "Nick forward"; // // label2 // this.label2.Location = new System.Drawing.Point(18, 123); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(34, 15); this.label2.TabIndex = 8; this.label2.Text = "Idle"; // // label1 // this.label1.Location = new System.Drawing.Point(4, 21); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(65, 15); this.label1.TabIndex = 7; this.label1.Text = "Full throttle"; // // TrackBar9 // this.TrackBar9.BackColor = System.Drawing.Color.Transparent; this.TrackBar9.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar9.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar9.IndentHeight = 1; this.TrackBar9.IndentWidth = 1; this.TrackBar9.Location = new System.Drawing.Point(146, 101); this.TrackBar9.Maximum = 255; this.TrackBar9.Minimum = 0; this.TrackBar9.Name = "TrackBar9"; this.TrackBar9.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar9.Size = new System.Drawing.Size(100, 19); this.TrackBar9.TabIndex = 25; this.TrackBar9.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar9.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar9.TickFrequency = 128; this.TrackBar9.TickHeight = 1; this.TrackBar9.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar9.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar9.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar9.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar9.TrackLineHeight = 9; this.TrackBar9.Value = 126; // // TrackBar8 // this.TrackBar8.BackColor = System.Drawing.Color.Transparent; this.TrackBar8.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar8.IndentHeight = 1; this.TrackBar8.IndentWidth = 1; this.TrackBar8.Location = new System.Drawing.Point(146, 38); this.TrackBar8.Maximum = 255; this.TrackBar8.Minimum = 0; this.TrackBar8.Name = "TrackBar8"; this.TrackBar8.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar8.Size = new System.Drawing.Size(100, 19); this.TrackBar8.TabIndex = 25; this.TrackBar8.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar8.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar8.TickFrequency = 128; this.TrackBar8.TickHeight = 1; this.TrackBar8.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar8.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar8.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar8.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar8.TrackLineHeight = 9; this.TrackBar8.Value = 126; // // groupBox10 // this.groupBox10.Controls.Add(this.TrackBar6); this.groupBox10.Controls.Add(this.TrackBar5); this.groupBox10.Controls.Add(this.TrackBar4); this.groupBox10.Controls.Add(this.static54); this.groupBox10.Controls.Add(this.static53); this.groupBox10.Controls.Add(this.staic59); this.groupBox10.Controls.Add(this.static60); this.groupBox10.Controls.Add(this.static52); this.groupBox10.Location = new System.Drawing.Point(271, 57); this.groupBox10.Name = "groupBox10"; this.groupBox10.Size = new System.Drawing.Size(135, 153); this.groupBox10.TabIndex = 10; this.groupBox10.TabStop = false; this.groupBox10.Text = "Nick"; // // TrackBar6 // this.TrackBar6.BackColor = System.Drawing.Color.Transparent; this.TrackBar6.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar6.IndentHeight = 1; this.TrackBar6.IndentWidth = 1; this.TrackBar6.Location = new System.Drawing.Point(54, 19); this.TrackBar6.Maximum = 255; this.TrackBar6.Minimum = 0; this.TrackBar6.Name = "TrackBar6"; this.TrackBar6.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar6.Size = new System.Drawing.Size(19, 100); this.TrackBar6.TabIndex = 26; this.TrackBar6.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar6.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar6.TickFrequency = 128; this.TrackBar6.TickHeight = 1; this.TrackBar6.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar6.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar6.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar6.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar6.TrackLineHeight = 9; this.TrackBar6.Value = 126; // // TrackBar5 // this.TrackBar5.BackColor = System.Drawing.Color.Transparent; this.TrackBar5.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar5.IndentHeight = 1; this.TrackBar5.IndentWidth = 1; this.TrackBar5.Location = new System.Drawing.Point(30, 19); this.TrackBar5.Maximum = 255; this.TrackBar5.Minimum = 0; this.TrackBar5.Name = "TrackBar5"; this.TrackBar5.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar5.Size = new System.Drawing.Size(19, 100); this.TrackBar5.TabIndex = 25; this.TrackBar5.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar5.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar5.TickFrequency = 128; this.TrackBar5.TickHeight = 1; this.TrackBar5.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar5.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar5.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar5.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar5.TrackLineHeight = 9; this.TrackBar5.Value = 126; // // TrackBar4 // this.TrackBar4.BackColor = System.Drawing.Color.Transparent; this.TrackBar4.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar4.IndentHeight = 1; this.TrackBar4.IndentWidth = 1; this.TrackBar4.Location = new System.Drawing.Point(6, 19); this.TrackBar4.Maximum = 255; this.TrackBar4.Minimum = 0; this.TrackBar4.Name = "TrackBar4"; this.TrackBar4.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar4.Size = new System.Drawing.Size(19, 100); this.TrackBar4.TabIndex = 24; this.TrackBar4.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar4.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar4.TickFrequency = 128; this.TrackBar4.TickHeight = 1; this.TrackBar4.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar4.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar4.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar4.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar4.TrackLineHeight = 9; this.TrackBar4.Value = 126; // // static54 // this.static54.Location = new System.Drawing.Point(58, 123); this.static54.Name = "static54"; this.static54.Size = new System.Drawing.Size(41, 20); this.static54.TabIndex = 8; this.static54.Text = "Acc(a)"; // // static53 // this.static53.Location = new System.Drawing.Point(29, 123); this.static53.Name = "static53"; this.static53.Size = new System.Drawing.Size(36, 20); this.static53.TabIndex = 8; this.static53.Text = "Gy(a)"; // // staic59 // this.staic59.Location = new System.Drawing.Point(74, 99); this.staic59.Name = "staic59"; this.staic59.Size = new System.Drawing.Size(55, 15); this.staic59.TabIndex = 11; this.staic59.Text = "backward"; // // static60 // this.static60.Location = new System.Drawing.Point(74, 23); this.static60.Name = "static60"; this.static60.Size = new System.Drawing.Size(55, 15); this.static60.TabIndex = 11; this.static60.Text = "forward"; // // static52 // this.static52.Location = new System.Drawing.Point(0, 123); this.static52.Name = "static52"; this.static52.Size = new System.Drawing.Size(34, 23); this.static52.TabIndex = 8; this.static52.Text = "Gy(v)"; // // groupBox9 // this.groupBox9.Controls.Add(this.TrackBar3); this.groupBox9.Controls.Add(this.TrackBar2); this.groupBox9.Controls.Add(this.static51); this.groupBox9.Controls.Add(this.TrackBar1); this.groupBox9.Controls.Add(this.static49); this.groupBox9.Controls.Add(this.static57); this.groupBox9.Controls.Add(this.static50); this.groupBox9.Controls.Add(this.static56); this.groupBox9.Location = new System.Drawing.Point(56, 57); this.groupBox9.Name = "groupBox9"; this.groupBox9.Size = new System.Drawing.Size(187, 153); this.groupBox9.TabIndex = 9; this.groupBox9.TabStop = false; this.groupBox9.Text = "Roll"; // // TrackBar3 // this.TrackBar3.BackColor = System.Drawing.Color.Transparent; this.TrackBar3.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar3.IndentHeight = 1; this.TrackBar3.IndentWidth = 1; this.TrackBar3.Location = new System.Drawing.Point(6, 93); this.TrackBar3.Maximum = 255; this.TrackBar3.Minimum = 0; this.TrackBar3.Name = "TrackBar3"; this.TrackBar3.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar3.Size = new System.Drawing.Size(100, 19); this.TrackBar3.TabIndex = 23; this.TrackBar3.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar3.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar3.TickFrequency = 128; this.TrackBar3.TickHeight = 1; this.TrackBar3.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar3.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar3.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar3.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar3.TrackLineHeight = 9; this.TrackBar3.Value = 126; // // TrackBar2 // this.TrackBar2.BackColor = System.Drawing.Color.Transparent; this.TrackBar2.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar2.IndentHeight = 1; this.TrackBar2.IndentWidth = 1; this.TrackBar2.Location = new System.Drawing.Point(6, 66); this.TrackBar2.Maximum = 255; this.TrackBar2.Minimum = 0; this.TrackBar2.Name = "TrackBar2"; this.TrackBar2.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar2.Size = new System.Drawing.Size(100, 19); this.TrackBar2.TabIndex = 22; this.TrackBar2.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar2.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar2.TickFrequency = 128; this.TrackBar2.TickHeight = 1; this.TrackBar2.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar2.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar2.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar2.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar2.TrackLineHeight = 9; this.TrackBar2.Value = 126; // // static51 // this.static51.Location = new System.Drawing.Point(112, 96); this.static51.Name = "static51"; this.static51.Size = new System.Drawing.Size(68, 20); this.static51.TabIndex = 8; this.static51.Text = "Acc angle"; // // TrackBar1 // this.TrackBar1.BackColor = System.Drawing.Color.Transparent; this.TrackBar1.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar1.IndentHeight = 1; this.TrackBar1.IndentWidth = 1; this.TrackBar1.Location = new System.Drawing.Point(6, 39); this.TrackBar1.Maximum = 255; this.TrackBar1.Minimum = 0; this.TrackBar1.Name = "TrackBar1"; this.TrackBar1.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar1.Size = new System.Drawing.Size(100, 19); this.TrackBar1.TabIndex = 22; this.TrackBar1.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar1.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar1.TickFrequency = 128; this.TrackBar1.TickHeight = 1; this.TrackBar1.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar1.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar1.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar1.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar1.TrackLineHeight = 9; this.TrackBar1.Value = 126; // // static49 // this.static49.Location = new System.Drawing.Point(112, 42); this.static49.Name = "static49"; this.static49.Size = new System.Drawing.Size(68, 20); this.static49.TabIndex = 8; this.static49.Text = "Gyro velocity"; // // static57 // this.static57.Location = new System.Drawing.Point(79, 21); this.static57.Name = "static57"; this.static57.Size = new System.Drawing.Size(55, 15); this.static57.TabIndex = 11; this.static57.Text = "right"; // // static50 // this.static50.Location = new System.Drawing.Point(112, 69); this.static50.Name = "static50"; this.static50.Size = new System.Drawing.Size(68, 20); this.static50.TabIndex = 8; this.static50.Text = "Gyro angle"; // // static56 // this.static56.Location = new System.Drawing.Point(6, 21); this.static56.Name = "static56"; this.static56.Size = new System.Drawing.Size(55, 15); this.static56.TabIndex = 11; this.static56.Text = "left"; // // tabPage6 // this.tabPage6.Controls.Add(this.groupBox13); this.tabPage6.Controls.Add(this.avrdudeout); this.tabPage6.Location = new System.Drawing.Point(4, 22); this.tabPage6.Name = "tabPage6"; this.tabPage6.Size = new System.Drawing.Size(649, 366); this.tabPage6.TabIndex = 6; this.tabPage6.Text = "Firmware update"; this.tabPage6.UseVisualStyleBackColor = true; // // groupBox13 // this.groupBox13.Controls.Add(this.label13); this.groupBox13.Controls.Add(this.flash); this.groupBox13.Controls.Add(this.progressBar4); this.groupBox13.Controls.Add(this.showavrout); this.groupBox13.Location = new System.Drawing.Point(12, 30); this.groupBox13.Name = "groupBox13"; this.groupBox13.Size = new System.Drawing.Size(623, 107); this.groupBox13.TabIndex = 4; this.groupBox13.TabStop = false; this.groupBox13.Text = "Update firmware"; // // label13 // this.label13.Location = new System.Drawing.Point(491, 36); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(100, 15); this.label13.TabIndex = 4; this.label13.Text = "---"; this.label13.TextAlign = System.Drawing.ContentAlignment.BottomRight; // // flash // this.flash.Location = new System.Drawing.Point(26, 32); this.flash.Name = "flash"; this.flash.Size = new System.Drawing.Size(137, 23); this.flash.TabIndex = 0; this.flash.Text = "Flash new firmware"; this.flash.UseVisualStyleBackColor = true; this.flash.Click += new System.EventHandler(this.FlashClick); // // progressBar4 // this.progressBar4.Location = new System.Drawing.Point(26, 61); this.progressBar4.Maximum = 5; this.progressBar4.Name = "progressBar4"; this.progressBar4.Size = new System.Drawing.Size(565, 23); this.progressBar4.Step = 1; this.progressBar4.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar4.TabIndex = 2; // // showavrout // this.showavrout.Location = new System.Drawing.Point(169, 32); this.showavrout.Name = "showavrout"; this.showavrout.Size = new System.Drawing.Size(104, 24); this.showavrout.TabIndex = 3; this.showavrout.Text = "Show output"; this.showavrout.UseVisualStyleBackColor = true; this.showavrout.CheckedChanged += new System.EventHandler(this.ShowavroutCheckedChanged); // // avrdudeout // this.avrdudeout.Location = new System.Drawing.Point(12, 161); this.avrdudeout.Multiline = true; this.avrdudeout.Name = "avrdudeout"; this.avrdudeout.ReadOnly = true; this.avrdudeout.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.avrdudeout.Size = new System.Drawing.Size(623, 202); this.avrdudeout.TabIndex = 1; this.avrdudeout.Visible = false; // // serialPort // this.serialPort.BaudRate = 38400; this.serialPort.PortName = "COM5"; this.serialPort.ReadTimeout = 1000; // // timer1 // this.timer1.Interval = 50; this.timer1.Tick += new System.EventHandler(this.Timer1Tick); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.Transparent; this.pictureBox1.ErrorImage = null; this.pictureBox1.InitialImage = null; this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(681, 50); this.pictureBox1.TabIndex = 6; this.pictureBox1.TabStop = false; // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStatusLabel}); this.statusStrip1.Location = new System.Drawing.Point(0, 480); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(681, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 7; this.statusStrip1.Text = "statusStrip1"; // // toolStatusLabel // this.toolStatusLabel.Name = "toolStatusLabel"; this.toolStatusLabel.Size = new System.Drawing.Size(77, 17); this.toolStatusLabel.Text = "Not connected"; // // timersens // this.timersens.Interval = 75; this.timersens.Tick += new System.EventHandler(this.TimersensTick); // // openFileDialog1 // this.openFileDialog1.DefaultExt = "shr"; this.openFileDialog1.Filter = "Shrediquette configurations|*.shr"; this.openFileDialog1.Title = "Load settings from file and transfer to ĀµC"; // // saveFileDialog1 // this.saveFileDialog1.DefaultExt = "shr"; this.saveFileDialog1.Filter = "Shrediquette configurations|*.shr"; this.saveFileDialog1.Title = "Save Shrediquette configuration file"; // // pingshrediquette // this.pingshrediquette.Interval = 550; this.pingshrediquette.Tick += new System.EventHandler(this.PingshrediquetteTick); // // label11 // this.label11.Font = new System.Drawing.Font("Courier New", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.Location = new System.Drawing.Point(536, 53); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(96, 26); this.label11.TabIndex = 8; this.label11.Text = "v 1.2"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // startupdelay // this.startupdelay.Interval = 500; this.startupdelay.Tick += new System.EventHandler(this.startupdelayTick); // // linkLabel2 // this.linkLabel2.Location = new System.Drawing.Point(474, 454); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(195, 25); this.linkLabel2.TabIndex = 9; this.linkLabel2.TabStop = true; this.linkLabel2.Text = "http://shrediquette.blogspot.com"; this.linkLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Navy; this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel2LinkClicked); // // label17 // this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label17.Location = new System.Drawing.Point(12, 456); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(432, 23); this.label17.TabIndex = 10; this.label17.Text = "Any change has to be written to the tricopter manually (click \"Write all paramete" + "rs to ĀµC\")"; this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbch1 // this.lbch1.AutoSize = true; this.lbch1.Location = new System.Drawing.Point(10, 160); this.lbch1.Name = "lbch1"; this.lbch1.Size = new System.Drawing.Size(25, 13); this.lbch1.TabIndex = 41; this.lbch1.Text = "000"; this.lbch1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch2 // this.lbch2.AutoSize = true; this.lbch2.Location = new System.Drawing.Point(35, 160); this.lbch2.Name = "lbch2"; this.lbch2.Size = new System.Drawing.Size(25, 13); this.lbch2.TabIndex = 42; this.lbch2.Text = "000"; this.lbch2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch3 // this.lbch3.AutoSize = true; this.lbch3.Location = new System.Drawing.Point(60, 160); this.lbch3.Name = "lbch3"; this.lbch3.Size = new System.Drawing.Size(25, 13); this.lbch3.TabIndex = 43; this.lbch3.Text = "000"; this.lbch3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch4 // this.lbch4.AutoSize = true; this.lbch4.Location = new System.Drawing.Point(85, 160); this.lbch4.Name = "lbch4"; this.lbch4.Size = new System.Drawing.Size(25, 13); this.lbch4.TabIndex = 44; this.lbch4.Text = "000"; this.lbch4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch5 // this.lbch5.AutoSize = true; this.lbch5.Location = new System.Drawing.Point(110, 160); this.lbch5.Name = "lbch5"; this.lbch5.Size = new System.Drawing.Size(25, 13); this.lbch5.TabIndex = 45; this.lbch5.Text = "000"; this.lbch5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch6 // this.lbch6.AutoSize = true; this.lbch6.Location = new System.Drawing.Point(135, 160); this.lbch6.Name = "lbch6"; this.lbch6.Size = new System.Drawing.Size(25, 13); this.lbch6.TabIndex = 46; this.lbch6.Text = "000"; this.lbch6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch7 // this.lbch7.AutoSize = true; this.lbch7.Location = new System.Drawing.Point(160, 160); this.lbch7.Name = "lbch7"; this.lbch7.Size = new System.Drawing.Size(25, 13); this.lbch7.TabIndex = 47; this.lbch7.Text = "000"; this.lbch7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch8 // this.lbch8.AutoSize = true; this.lbch8.Location = new System.Drawing.Point(185, 160); this.lbch8.Name = "lbch8"; this.lbch8.Size = new System.Drawing.Size(25, 13); this.lbch8.TabIndex = 48; this.lbch8.Text = "000"; this.lbch8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label42 // label42.Location = new System.Drawing.Point(10, 186); label42.Name = "label42"; label42.Size = new System.Drawing.Size(200, 58); label42.TabIndex = 49; label42.Text = "Use trim function on your transmitter to make sure all channels that are centered" + " show as \"0\" for their value, as well as reverse any channels if needed."; // // emergmask // this.emergmask.Location = new System.Drawing.Point(226, 100); this.emergmask.Name = "emergmask"; this.emergmask.Size = new System.Drawing.Size(175, 20); this.emergmask.TabIndex = 21; this.emergmask.Value = ((byte)(0)); // // led2mask // this.led2mask.Location = new System.Drawing.Point(226, 74); this.led2mask.Name = "led2mask"; this.led2mask.Size = new System.Drawing.Size(175, 20); this.led2mask.TabIndex = 1; this.led2mask.Value = ((byte)(0)); // // led1mask // this.led1mask.Location = new System.Drawing.Point(226, 48); this.led1mask.Name = "led1mask"; this.led1mask.Size = new System.Drawing.Size(175, 20); this.led1mask.TabIndex = 0; this.led1mask.Value = ((byte)(0)); this.led1mask.OnChange += new TriGUI_v11.BitMask.Changed(this.OnLedMaskChange); // // MainForm // this.ClientSize = new System.Drawing.Size(681, 502); this.Controls.Add(this.label17); this.Controls.Add(this.linkLabel2); this.Controls.Add(this.label11); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.tabControl); this.Controls.Add(this.pictureBox1); this.MaximizeBox = false; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "TriGUI v1.2 by William Thielicke ([email protected])"; this.Shown += new System.EventHandler(this.FormShown); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.schliessen); this.tabControl.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.RxD.ResumeLayout(false); this.RxD.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.tabPage2.ResumeLayout(false); this.groupBox14.ResumeLayout(false); this.groupBox14.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.tabPage3.ResumeLayout(false); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar15)).EndInit(); this.groupBox4.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar14)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar13)).EndInit(); this.tabPage5.ResumeLayout(false); this.groupBox15.ResumeLayout(false); this.groupBox15.PerformLayout(); this.groupBox8.ResumeLayout(false); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.tabPage4.ResumeLayout(false); this.Battery.ResumeLayout(false); this.groupBox12.ResumeLayout(false); this.groupBox11.ResumeLayout(false); this.groupBox10.ResumeLayout(false); this.groupBox9.ResumeLayout(false); this.tabPage6.ResumeLayout(false); this.tabPage6.PerformLayout(); this.groupBox13.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public static void ToggleMute(AxWMPLib.AxWindowsMediaPlayer player, Button volBtn, TrackBar volBar) { if (isMute == false) { volBtn.Text = "š"; volBar.Value = 0; player.settings.volume = 0; isMute = true; } else { volBtn.Text = " š"; volBar.Value = lastVolume; player.settings.volume = lastVolume; isMute = false; } }
private void InitializeComponent() { this.btnAdvanced = new MediaPortal.UserInterface.Controls.MPButton(); this.cmbPort = new MediaPortal.UserInterface.Controls.MPComboBox(); this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.groupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.btnTest = new MediaPortal.UserInterface.Controls.MPButton(); this.groupShutdown = new System.Windows.Forms.GroupBox(); this.label11 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.mpShutdown2 = new System.Windows.Forms.TextBox(); this.mpShutdown1 = new System.Windows.Forms.TextBox(); this.cbContrast = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.cbDisplayOff = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.lblBrightness = new MediaPortal.UserInterface.Controls.MPLabel(); this.tbBrightness = new System.Windows.Forms.TrackBar(); this.btnTestDisplay = new MediaPortal.UserInterface.Controls.MPButton(); this.lblContrast = new MediaPortal.UserInterface.Controls.MPLabel(); this.tbContrast = new System.Windows.Forms.TrackBar(); this.txtScrollDelay = new MediaPortal.UserInterface.Controls.MPTextBox(); this.gbGraphMode = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.txtPixelsToScroll = new MediaPortal.UserInterface.Controls.MPTextBox(); this.mpLabel5 = new MediaPortal.UserInterface.Controls.MPLabel(); this.ckForceGraphicText = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.txtFontSize = new MediaPortal.UserInterface.Controls.MPTextBox(); this.mpLabel2 = new MediaPortal.UserInterface.Controls.MPLabel(); this.txtFont = new MediaPortal.UserInterface.Controls.MPComboBox(); this.mpLabel1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.label8 = new MediaPortal.UserInterface.Controls.MPLabel(); this.txtTimG = new MediaPortal.UserInterface.Controls.MPTextBox(); this.txtRowsG = new MediaPortal.UserInterface.Controls.MPTextBox(); this.txtColsG = new MediaPortal.UserInterface.Controls.MPTextBox(); this.label9 = new MediaPortal.UserInterface.Controls.MPLabel(); this.label10 = new MediaPortal.UserInterface.Controls.MPLabel(); this.mpLabel3 = new MediaPortal.UserInterface.Controls.MPLabel(); this.gbTextMode = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.mpPrefixChar = new MediaPortal.UserInterface.Controls.MPTextBox(); this.mpLabel6 = new MediaPortal.UserInterface.Controls.MPLabel(); this.txtCharsToScroll = new MediaPortal.UserInterface.Controls.MPTextBox(); this.mpLabel4 = new MediaPortal.UserInterface.Controls.MPLabel(); this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); this.txtTim = new MediaPortal.UserInterface.Controls.MPTextBox(); this.txtRows = new MediaPortal.UserInterface.Controls.MPTextBox(); this.txtCols = new MediaPortal.UserInterface.Controls.MPTextBox(); this.label4 = new MediaPortal.UserInterface.Controls.MPLabel(); this.label3 = new MediaPortal.UserInterface.Controls.MPLabel(); this.label7 = new MediaPortal.UserInterface.Controls.MPLabel(); this.cmbType = new MediaPortal.UserInterface.Controls.MPComboBox(); this.cbLight = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.cbPropertyBrowser = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.btnOK = new MediaPortal.UserInterface.Controls.MPButton(); this.cbExtensiveLogging = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.mpDisableGUISetup = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.btnCancel = new MediaPortal.UserInterface.Controls.MPButton(); this.groupBox1.SuspendLayout(); this.groupShutdown.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbBrightness)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbContrast)).BeginInit(); this.gbGraphMode.SuspendLayout(); this.gbTextMode.SuspendLayout(); this.SuspendLayout(); // // btnAdvanced // this.btnAdvanced.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnAdvanced.Location = new System.Drawing.Point(271, 41); this.btnAdvanced.Name = "btnAdvanced"; this.btnAdvanced.Size = new System.Drawing.Size(88, 23); this.btnAdvanced.TabIndex = 70; this.btnAdvanced.Text = "&Advanced"; this.btnAdvanced.UseVisualStyleBackColor = true; this.btnAdvanced.Click += new System.EventHandler(this.btnAdvanced_Click); // // cmbPort // this.cmbPort.BorderColor = System.Drawing.Color.Empty; this.cmbPort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbPort.Items.AddRange(new object[] { "LPT1", "LPT2", "LPT3", "LPT4", "USB", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "NONE", "localhost" }); this.cmbPort.Location = new System.Drawing.Point(40, 42); this.cmbPort.Name = "cmbPort"; this.cmbPort.Size = new System.Drawing.Size(64, 21); this.cmbPort.TabIndex = 20; // // label1 // this.label1.Location = new System.Drawing.Point(8, 42); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(32, 23); this.label1.TabIndex = 2; this.label1.Text = "Port"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // groupBox1 // this.groupBox1.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.groupBox1.Controls.Add(this.btnTest); this.groupBox1.Controls.Add(this.groupShutdown); this.groupBox1.Controls.Add(this.cbContrast); this.groupBox1.Controls.Add(this.cbDisplayOff); this.groupBox1.Controls.Add(this.lblBrightness); this.groupBox1.Controls.Add(this.tbBrightness); this.groupBox1.Controls.Add(this.btnTestDisplay); this.groupBox1.Controls.Add(this.lblContrast); this.groupBox1.Controls.Add(this.tbContrast); this.groupBox1.Controls.Add(this.txtScrollDelay); this.groupBox1.Controls.Add(this.gbGraphMode); this.groupBox1.Controls.Add(this.mpLabel3); this.groupBox1.Controls.Add(this.gbTextMode); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.cmbType); this.groupBox1.Controls.Add(this.cbLight); this.groupBox1.Controls.Add(this.btnAdvanced); this.groupBox1.Controls.Add(this.cmbPort); this.groupBox1.Controls.Add(this.label1); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBox1.Location = new System.Drawing.Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(373, 402); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; this.groupBox1.Text = "Configuration"; // // btnTest // this.btnTest.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnTest.Location = new System.Drawing.Point(271, 348); this.btnTest.Name = "btnTest"; this.btnTest.Size = new System.Drawing.Size(92, 48); this.btnTest.TabIndex = 83; this.btnTest.Text = "Configuration Editor"; this.btnTest.UseVisualStyleBackColor = true; this.btnTest.Click += new System.EventHandler(this.btnTest_Click); // // groupShutdown // this.groupShutdown.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupShutdown.Controls.Add(this.label11); this.groupShutdown.Controls.Add(this.label6); this.groupShutdown.Controls.Add(this.mpShutdown2); this.groupShutdown.Controls.Add(this.mpShutdown1); this.groupShutdown.Location = new System.Drawing.Point(8, 331); this.groupShutdown.Name = "groupShutdown"; this.groupShutdown.Size = new System.Drawing.Size(191, 65); this.groupShutdown.TabIndex = 76; this.groupShutdown.TabStop = false; this.groupShutdown.Text = " ShutDown Message "; // // label11 // this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(6, 43); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(36, 13); this.label11.TabIndex = 79; this.label11.Text = "Line 2"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(6, 20); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(36, 13); this.label6.TabIndex = 78; this.label6.Text = "Line 1"; // // mpShutdown2 // this.mpShutdown2.Location = new System.Drawing.Point(46, 40); this.mpShutdown2.Name = "mpShutdown2"; this.mpShutdown2.Size = new System.Drawing.Size(139, 20); this.mpShutdown2.TabIndex = 77; // // mpShutdown1 // this.mpShutdown1.Location = new System.Drawing.Point(46, 17); this.mpShutdown1.Name = "mpShutdown1"; this.mpShutdown1.Size = new System.Drawing.Size(139, 20); this.mpShutdown1.TabIndex = 76; // // cbContrast // this.cbContrast.AutoSize = true; this.cbContrast.Checked = true; this.cbContrast.CheckState = System.Windows.Forms.CheckState.Checked; this.cbContrast.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cbContrast.Location = new System.Drawing.Point(190, 265); this.cbContrast.Name = "cbContrast"; this.cbContrast.Size = new System.Drawing.Size(98, 17); this.cbContrast.TabIndex = 81; this.cbContrast.Text = "Control contrast"; this.cbContrast.UseVisualStyleBackColor = true; this.cbContrast.Visible = false; // // cbDisplayOff // this.cbDisplayOff.AutoSize = true; this.cbDisplayOff.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cbDisplayOff.Location = new System.Drawing.Point(8, 234); this.cbDisplayOff.Name = "cbDisplayOff"; this.cbDisplayOff.Size = new System.Drawing.Size(138, 17); this.cbDisplayOff.TabIndex = 80; this.cbDisplayOff.Text = "Turn OFF display on exit"; this.cbDisplayOff.UseVisualStyleBackColor = true; this.cbDisplayOff.CheckedChanged += new System.EventHandler(this.cbDisplayOff_CheckedChanged); // // lblBrightness // this.lblBrightness.Location = new System.Drawing.Point(16, 283); this.lblBrightness.Name = "lblBrightness"; this.lblBrightness.Size = new System.Drawing.Size(96, 16); this.lblBrightness.TabIndex = 79; this.lblBrightness.Text = "Brightness: "; // // tbBrightness // this.tbBrightness.Location = new System.Drawing.Point(15, 299); this.tbBrightness.Maximum = 255; this.tbBrightness.Name = "tbBrightness"; this.tbBrightness.Size = new System.Drawing.Size(160, 45); this.tbBrightness.TabIndex = 78; this.tbBrightness.TickFrequency = 8; this.tbBrightness.TickStyle = System.Windows.Forms.TickStyle.None; this.tbBrightness.Value = 127; this.tbBrightness.ValueChanged += new System.EventHandler(this.tbBrightness_ValueChanged); // // btnTestDisplay // this.btnTestDisplay.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnTestDisplay.Location = new System.Drawing.Point(179, 41); this.btnTestDisplay.Name = "btnTestDisplay"; this.btnTestDisplay.Size = new System.Drawing.Size(88, 23); this.btnTestDisplay.TabIndex = 77; this.btnTestDisplay.Text = "&Test Display"; this.btnTestDisplay.UseVisualStyleBackColor = true; this.btnTestDisplay.Click += new System.EventHandler(this.btnTestDisplay_Click); // // lblContrast // this.lblContrast.Location = new System.Drawing.Point(187, 283); this.lblContrast.Name = "lblContrast"; this.lblContrast.Size = new System.Drawing.Size(96, 16); this.lblContrast.TabIndex = 74; this.lblContrast.Text = "Contrast:"; // // tbContrast // this.tbContrast.Location = new System.Drawing.Point(186, 299); this.tbContrast.Maximum = 255; this.tbContrast.Name = "tbContrast"; this.tbContrast.Size = new System.Drawing.Size(160, 45); this.tbContrast.TabIndex = 73; this.tbContrast.TickFrequency = 8; this.tbContrast.TickStyle = System.Windows.Forms.TickStyle.None; this.tbContrast.Value = 127; this.tbContrast.ValueChanged += new System.EventHandler(this.tbContrast_ValueChanged); // // txtScrollDelay // this.txtScrollDelay.BorderColor = System.Drawing.Color.Empty; this.txtScrollDelay.Location = new System.Drawing.Point(96, 209); this.txtScrollDelay.Name = "txtScrollDelay"; this.txtScrollDelay.Size = new System.Drawing.Size(48, 20); this.txtScrollDelay.TabIndex = 52; this.txtScrollDelay.Text = "300"; // // gbGraphMode // this.gbGraphMode.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gbGraphMode.Controls.Add(this.txtPixelsToScroll); this.gbGraphMode.Controls.Add(this.mpLabel5); this.gbGraphMode.Controls.Add(this.ckForceGraphicText); this.gbGraphMode.Controls.Add(this.txtFontSize); this.gbGraphMode.Controls.Add(this.mpLabel2); this.gbGraphMode.Controls.Add(this.txtFont); this.gbGraphMode.Controls.Add(this.mpLabel1); this.gbGraphMode.Controls.Add(this.label8); this.gbGraphMode.Controls.Add(this.txtTimG); this.gbGraphMode.Controls.Add(this.txtRowsG); this.gbGraphMode.Controls.Add(this.txtColsG); this.gbGraphMode.Controls.Add(this.label9); this.gbGraphMode.Controls.Add(this.label10); this.gbGraphMode.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.gbGraphMode.Location = new System.Drawing.Point(168, 68); this.gbGraphMode.Name = "gbGraphMode"; this.gbGraphMode.Size = new System.Drawing.Size(191, 188); this.gbGraphMode.TabIndex = 72; this.gbGraphMode.TabStop = false; this.gbGraphMode.Text = "GraphMode"; // // txtPixelsToScroll // this.txtPixelsToScroll.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtPixelsToScroll.BorderColor = System.Drawing.Color.Empty; this.txtPixelsToScroll.Location = new System.Drawing.Point(86, 135); this.txtPixelsToScroll.Name = "txtPixelsToScroll"; this.txtPixelsToScroll.Size = new System.Drawing.Size(48, 20); this.txtPixelsToScroll.TabIndex = 57; this.txtPixelsToScroll.Text = "10"; // // mpLabel5 // this.mpLabel5.Location = new System.Drawing.Point(8, 133); this.mpLabel5.Name = "mpLabel5"; this.mpLabel5.Size = new System.Drawing.Size(80, 23); this.mpLabel5.TabIndex = 56; this.mpLabel5.Text = "Pixels to scroll"; this.mpLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ckForceGraphicText // this.ckForceGraphicText.AutoSize = true; this.ckForceGraphicText.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.ckForceGraphicText.Location = new System.Drawing.Point(11, 161); this.ckForceGraphicText.Name = "ckForceGraphicText"; this.ckForceGraphicText.Size = new System.Drawing.Size(123, 17); this.ckForceGraphicText.TabIndex = 55; this.ckForceGraphicText.Text = "Force Graphical Text"; this.ckForceGraphicText.UseVisualStyleBackColor = true; // // txtFontSize // this.txtFontSize.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtFontSize.BorderColor = System.Drawing.Color.Empty; this.txtFontSize.Location = new System.Drawing.Point(86, 110); this.txtFontSize.Name = "txtFontSize"; this.txtFontSize.Size = new System.Drawing.Size(48, 20); this.txtFontSize.TabIndex = 54; this.txtFontSize.Text = "10"; // // mpLabel2 // this.mpLabel2.Location = new System.Drawing.Point(8, 110); this.mpLabel2.Name = "mpLabel2"; this.mpLabel2.Size = new System.Drawing.Size(64, 23); this.mpLabel2.TabIndex = 53; this.mpLabel2.Text = "Font Size"; this.mpLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtFont // this.txtFont.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtFont.BorderColor = System.Drawing.Color.Empty; this.txtFont.Location = new System.Drawing.Point(86, 87); this.txtFont.Name = "txtFont"; this.txtFont.Size = new System.Drawing.Size(99, 21); this.txtFont.TabIndex = 52; this.txtFont.Text = "Arial Black"; // // mpLabel1 // this.mpLabel1.Location = new System.Drawing.Point(8, 87); this.mpLabel1.Name = "mpLabel1"; this.mpLabel1.Size = new System.Drawing.Size(80, 23); this.mpLabel1.TabIndex = 51; this.mpLabel1.Text = "Font"; this.mpLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label8 // this.label8.Location = new System.Drawing.Point(8, 16); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(64, 23); this.label8.TabIndex = 3; this.label8.Text = "Columns"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtTimG // this.txtTimG.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtTimG.BorderColor = System.Drawing.Color.Empty; this.txtTimG.Location = new System.Drawing.Point(86, 64); this.txtTimG.Name = "txtTimG"; this.txtTimG.Size = new System.Drawing.Size(48, 20); this.txtTimG.TabIndex = 50; this.txtTimG.Text = "1"; // // txtRowsG // this.txtRowsG.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtRowsG.BorderColor = System.Drawing.Color.Empty; this.txtRowsG.Location = new System.Drawing.Point(86, 40); this.txtRowsG.Name = "txtRowsG"; this.txtRowsG.Size = new System.Drawing.Size(48, 20); this.txtRowsG.TabIndex = 40; this.txtRowsG.Text = "240"; // // txtColsG // this.txtColsG.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtColsG.BorderColor = System.Drawing.Color.Empty; this.txtColsG.Location = new System.Drawing.Point(86, 16); this.txtColsG.Name = "txtColsG"; this.txtColsG.Size = new System.Drawing.Size(48, 20); this.txtColsG.TabIndex = 30; this.txtColsG.Text = "320"; // // label9 // this.label9.Location = new System.Drawing.Point(8, 64); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(80, 23); this.label9.TabIndex = 5; this.label9.Text = "Comm. Delay"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label10 // this.label10.Location = new System.Drawing.Point(8, 40); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(72, 23); this.label10.TabIndex = 4; this.label10.Text = "Rows"; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // mpLabel3 // this.mpLabel3.Location = new System.Drawing.Point(5, 207); this.mpLabel3.Name = "mpLabel3"; this.mpLabel3.Size = new System.Drawing.Size(80, 23); this.mpLabel3.TabIndex = 51; this.mpLabel3.Text = "Scroll Delay"; this.mpLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // gbTextMode // this.gbTextMode.Controls.Add(this.mpPrefixChar); this.gbTextMode.Controls.Add(this.mpLabel6); this.gbTextMode.Controls.Add(this.txtCharsToScroll); this.gbTextMode.Controls.Add(this.mpLabel4); this.gbTextMode.Controls.Add(this.label2); this.gbTextMode.Controls.Add(this.txtTim); this.gbTextMode.Controls.Add(this.txtRows); this.gbTextMode.Controls.Add(this.txtCols); this.gbTextMode.Controls.Add(this.label4); this.gbTextMode.Controls.Add(this.label3); this.gbTextMode.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.gbTextMode.Location = new System.Drawing.Point(8, 68); this.gbTextMode.Name = "gbTextMode"; this.gbTextMode.Size = new System.Drawing.Size(152, 136); this.gbTextMode.TabIndex = 71; this.gbTextMode.TabStop = false; this.gbTextMode.Text = "TextMode"; // // mpPrefixChar // this.mpPrefixChar.BorderColor = System.Drawing.Color.Empty; this.mpPrefixChar.Location = new System.Drawing.Point(88, 112); this.mpPrefixChar.Name = "mpPrefixChar"; this.mpPrefixChar.Size = new System.Drawing.Size(48, 20); this.mpPrefixChar.TabIndex = 56; this.mpPrefixChar.Visible = false; // // mpLabel6 // this.mpLabel6.Location = new System.Drawing.Point(8, 112); this.mpLabel6.Name = "mpLabel6"; this.mpLabel6.Size = new System.Drawing.Size(88, 23); this.mpLabel6.TabIndex = 55; this.mpLabel6.Text = "Line Prefix 0x"; this.mpLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.mpLabel6.Visible = false; // // txtCharsToScroll // this.txtCharsToScroll.BorderColor = System.Drawing.Color.Empty; this.txtCharsToScroll.Location = new System.Drawing.Point(88, 87); this.txtCharsToScroll.Name = "txtCharsToScroll"; this.txtCharsToScroll.Size = new System.Drawing.Size(48, 20); this.txtCharsToScroll.TabIndex = 54; this.txtCharsToScroll.Text = "1"; // // mpLabel4 // this.mpLabel4.Location = new System.Drawing.Point(8, 87); this.mpLabel4.Name = "mpLabel4"; this.mpLabel4.Size = new System.Drawing.Size(80, 23); this.mpLabel4.TabIndex = 53; this.mpLabel4.Text = "#Chars to scroll"; this.mpLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label2 // this.label2.Location = new System.Drawing.Point(8, 16); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(64, 23); this.label2.TabIndex = 3; this.label2.Text = "Columns"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtTim // this.txtTim.BorderColor = System.Drawing.Color.Empty; this.txtTim.Location = new System.Drawing.Point(88, 64); this.txtTim.Name = "txtTim"; this.txtTim.Size = new System.Drawing.Size(48, 20); this.txtTim.TabIndex = 50; this.txtTim.Text = "1"; // // txtRows // this.txtRows.BorderColor = System.Drawing.Color.Empty; this.txtRows.Location = new System.Drawing.Point(88, 40); this.txtRows.Name = "txtRows"; this.txtRows.Size = new System.Drawing.Size(48, 20); this.txtRows.TabIndex = 40; this.txtRows.Text = "2"; // // txtCols // this.txtCols.BorderColor = System.Drawing.Color.Empty; this.txtCols.Location = new System.Drawing.Point(88, 16); this.txtCols.Name = "txtCols"; this.txtCols.Size = new System.Drawing.Size(48, 20); this.txtCols.TabIndex = 30; this.txtCols.Text = "16"; this.txtCols.TextChanged += new System.EventHandler(this.txtCols_TextChanged); // // label4 // this.label4.Location = new System.Drawing.Point(8, 64); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 23); this.label4.TabIndex = 5; this.label4.Text = "Comm. Delay"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label3 // this.label3.Location = new System.Drawing.Point(8, 40); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 23); this.label3.TabIndex = 4; this.label3.Text = "Rows"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label7 // this.label7.Location = new System.Drawing.Point(8, 16); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(32, 23); this.label7.TabIndex = 11; this.label7.Text = "Type"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cmbType // this.cmbType.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.cmbType.BorderColor = System.Drawing.Color.Empty; this.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbType.Location = new System.Drawing.Point(40, 16); this.cmbType.Name = "cmbType"; this.cmbType.Size = new System.Drawing.Size(319, 21); this.cmbType.Sorted = true; this.cmbType.TabIndex = 10; this.cmbType.SelectionChangeCommitted += new System.EventHandler(this.cmbType_SelectionChangeCommitted); // // cbLight // this.cbLight.AutoSize = true; this.cbLight.Checked = true; this.cbLight.CheckState = System.Windows.Forms.CheckState.Checked; this.cbLight.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cbLight.Location = new System.Drawing.Point(19, 265); this.cbLight.Name = "cbLight"; this.cbLight.Size = new System.Drawing.Size(108, 17); this.cbLight.TabIndex = 60; this.cbLight.Text = "Control brightness"; this.cbLight.UseVisualStyleBackColor = true; this.cbLight.Visible = false; // // cbPropertyBrowser // this.cbPropertyBrowser.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbPropertyBrowser.AutoSize = true; this.cbPropertyBrowser.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cbPropertyBrowser.Location = new System.Drawing.Point(8, 447); this.cbPropertyBrowser.Name = "cbPropertyBrowser"; this.cbPropertyBrowser.Size = new System.Drawing.Size(132, 17); this.cbPropertyBrowser.TabIndex = 4; this.cbPropertyBrowser.Text = "Show property browser"; this.cbPropertyBrowser.UseVisualStyleBackColor = true; // // btnOK // this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.Location = new System.Drawing.Point(213, 435); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(78, 23); this.btnOK.TabIndex = 5; this.btnOK.Text = "&OK"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // cbExtensiveLogging // this.cbExtensiveLogging.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.cbExtensiveLogging.AutoSize = true; this.cbExtensiveLogging.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.cbExtensiveLogging.Location = new System.Drawing.Point(8, 430); this.cbExtensiveLogging.Name = "cbExtensiveLogging"; this.cbExtensiveLogging.Size = new System.Drawing.Size(107, 17); this.cbExtensiveLogging.TabIndex = 6; this.cbExtensiveLogging.Text = "Extensive logging"; this.cbExtensiveLogging.UseVisualStyleBackColor = true; // // mpDisableGUISetup // this.mpDisableGUISetup.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.mpDisableGUISetup.AutoSize = true; this.mpDisableGUISetup.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.mpDisableGUISetup.Location = new System.Drawing.Point(8, 413); this.mpDisableGUISetup.Name = "mpDisableGUISetup"; this.mpDisableGUISetup.Size = new System.Drawing.Size(112, 17); this.mpDisableGUISetup.TabIndex = 77; this.mpDisableGUISetup.Text = "Disable GUI Setup"; this.mpDisableGUISetup.UseVisualStyleBackColor = true; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(297, 435); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(78, 23); this.btnCancel.TabIndex = 78; this.btnCancel.Text = "&Cancel"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // SetupForm // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(389, 464); this.Controls.Add(this.btnCancel); this.Controls.Add(this.mpDisableGUISetup); this.Controls.Add(this.cbExtensiveLogging); this.Controls.Add(this.btnOK); this.Controls.Add(this.cbPropertyBrowser); this.Controls.Add(this.groupBox1); this.Name = "SetupForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "MiniDisplay - Setup"; this.Load += new System.EventHandler(this.SetupForm_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupShutdown.ResumeLayout(false); this.groupShutdown.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbBrightness)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbContrast)).EndInit(); this.gbGraphMode.ResumeLayout(false); this.gbGraphMode.PerformLayout(); this.gbTextMode.ResumeLayout(false); this.gbTextMode.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void actuatorMAXScrollHandler(int servo, TrackBar min, TrackBar max) { this._currentAdvancedServoBoard.servos[servo].Position = max.Value; if (_actuatorsValues[servo] == null) _actuatorsValues[servo] = new Tuple<int, int>(0, max.Value); else if (_actuatorsValues[servo].Item1 > _actuatorsValues[servo].Item2) _actuatorsValues[servo] = new Tuple<int, int>(max.Value, max.Value); else _actuatorsValues[servo] = new Tuple<int, int>(_actuatorsValues[servo].Item1, max.Value); // Change graphics if (_actuatorsValues[servo].Item1 > _actuatorsValues[servo].Item2) min.Value = _actuatorsValues[servo].Item2; }
private void Form1_Load(object sender, EventArgs e) { DsDevice[] capDev; IFilterGraph2 m_FilterGraph = new FilterGraph() as IFilterGraph2; IBaseFilter pDeviceFilter = null; IAMCameraControl pCameraControl; IAMVideoProcAmp pVideoProcAmp; CameraControlFlags pCapsFlags; VideoProcAmpFlags pCapsFlags2; int pSteppingDelta; int pMin; int pMax; int pDefault; int pValue; int yLocation = 40; const int yStep = 113; overWindowToggleButton.Appearance = Appearance.Button; // TODO updateButton.Visible = false; // Get the collection of video devices capDev = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); foreach (DsDevice d in capDev) { //listBox1.Items.Add(d.Name); int hr; object camDevice; Guid iid = typeof(IBaseFilter).GUID; d.Mon.BindToObject(null, null, ref iid, out camDevice); IBaseFilter camFilter = camDevice as IBaseFilter; pCameraControl = camFilter as IAMCameraControl; pVideoProcAmp = camFilter as IAMVideoProcAmp; if (pCameraControl != null) { GroupBox gb = new GroupBox(); CheckBox cbFocus = cbFocusHID = new CheckBox(); CheckBox cbExposure = new CheckBox(); Button butForce = new Button(); TrackBar tBarFocus = tBarFocusHID = new TrackBar(); TrackBar tBarExposure = new TrackBar(); gb.Text = d.Name; gb.Width = 295; gb.Height = 106; gb.Location = new Point(13, yLocation); pCameraControl.GetRange(CameraControlProperty.Focus, out pMin, out pMax, out pSteppingDelta, out pDefault, out pCapsFlags); cbFocus.Text = "Auto focus"; cbFocus.Width = 78; cbFocus.Height = 17; cbFocus.Location = new Point(6, 23); cbFocus.Tag = butForce; cbFocus.Checked = (pCapsFlags == CameraControlFlags.Auto); cbFocus.CheckedChanged += new EventHandler(this.checkBoxFocus_CheckedChanged); butForce.Text = "Force"; butForce.Width = 75; butForce.Height = 23; butForce.Location = new Point(90, 19); //butForce.Enabled = false; butForce.Tag = pCameraControl; butForce.Click += new EventHandler(this.ButtonForce_Click); // TODO //butBind.Visible = false; //butBind.Text = "Bind key"; //butBind.Width = 75; //butBind.Height = 23; //butBind.Location = new Point(214, 19); tBarFocus.Minimum = pMin; tBarFocus.Maximum = pMax; tBarFocus.Value = pDefault; tBarFocus.Name = "TrackBarFocus"; tBarFocus.AutoSize = false; tBarFocus.Width = 283; tBarFocus.Height = 23; tBarFocus.TickFrequency = pSteppingDelta; tBarFocus.Location = new Point(6, 46); tBarFocus.Tag = pCameraControl; tBarFocus.Enabled = (pCapsFlags == CameraControlFlags.Manual); pCameraControl.Get(CameraControlProperty.Focus, out pValue, out pCapsFlags); tBarFocus.Value = pMax - pValue + pMin; tBarFocus.Scroll += new EventHandler(this.TrackBarFocus_Scroll); if (pVideoProcAmp != null) { ggghhh = pVideoProcAmp; //pCameraControl.GetRange(CameraControlProperty.Exposure, out pMin, out pMax, out pSteppingDelta, out pDefault, out pCapsFlags); ggghhh.GetRange(VideoProcAmpProperty.WhiteBalance, out pMin, out pMax, out pSteppingDelta, out pDefault, out pCapsFlags2); cbExposure.Text = "Auto exposure"; cbExposure.Width = 98; cbExposure.Height = 17; cbExposure.Location = new Point(191, 23); cbExposure.Tag = butForce; cbExposure.Checked = true; cbExposure.CheckedChanged += new EventHandler(this.checkBoxExposure_CheckedChanged); tBarExposure.Minimum = pMin; tBarExposure.Maximum = pMax; tBarExposure.Value = pDefault; tBarExposure.Name = "TrackBarExposure"; tBarExposure.AutoSize = false; tBarExposure.Width = 283; tBarExposure.Height = 23; tBarExposure.TickFrequency = pSteppingDelta; tBarExposure.Location = new Point(6, 73); tBarExposure.Tag = pCameraControl; tBarExposure.Enabled = false; //pCameraControl.Get(CameraControlProperty.Exposure, out value, out pCapsFlags); //tBarExposure.Value = pMax - value + pMin; tBarExposure.Scroll += new EventHandler(this.TrackBarExposure_Scroll); } gb.Controls.Add(cbFocus); gb.Controls.Add(butForce); gb.Controls.Add(cbExposure); gb.Controls.Add(tBarFocus); gb.Controls.Add(tBarExposure); Controls.Add(gb); yLocation += yStep; } pVideoProcAmp = pDeviceFilter as IAMVideoProcAmp; } this.Height = 13 + yLocation + 39; this.FormBorderStyle = FormBorderStyle.FixedSingle; foreach (var x in HidDevices.Enumerate(VendorId, ProductId)) { device = x; device.OpenDevice(); byte data = 0xff; HidReport out1 = new HidReport(data); x.WriteReport(out1); //byte[] str = new byte[x.Capabilities.OutputReportByteLength - 1]; ; //x.ReadManufacturer(out str); // Debug.WriteLine(System.Text.ASCIIEncoding.ASCII.GetString(str)); device.ReadReport(OnReport); } }
public string GetSettingValue(Control control) { var item = SettingsMap.First(x => x.Control == control); var path = item.IniPath; var section = path.Split('\\')[0]; string key = path.Split('\\')[1]; var padIndex = SettingName.GetPadIndex(path); string v = string.Empty; if (key == SettingName.HookMode || key.EndsWith(SettingName.GamePadType) || key.EndsWith(SettingName.ForceType) || key.EndsWith(SettingName.LeftMotorDirection) || key.EndsWith(SettingName.RightMotorDirection) || key.EndsWith(SettingName.PassThroughIndex) || key.EndsWith(SettingName.CombinedIndex)) { var v1 = ((ComboBox)control).SelectedItem; if (v1 == null) { v = "0"; } else if (v1 is KeyValuePair) { v = ((KeyValuePair)v1).Value; } else { v = System.Convert.ToInt32(v1).ToString(); } } // If DI menu strip attached. else if (control is ComboBox) { var cbx = (ComboBox)control; if (control.ContextMenuStrip == null) { v = control.Text; } else { v = SettingsConverter.ToIniValue(control.Text); // make sure that disabled button value is "0". if (SettingName.IsButton(key) && string.IsNullOrEmpty(v)) { v = "0"; } } } else if (control is TextBox) { // if setting is read-only. if (key == SettingName.InstanceGuid || key == SettingName.ProductGuid) { v = string.IsNullOrEmpty(control.Text) ? Guid.Empty.ToString("D") : control.Text; } else { v = control.Text; } } else if (control is NumericUpDown) { NumericUpDown nud = (NumericUpDown)control; v = nud.Value.ToString(); } else if (control is TrackBar) { TrackBar tc = (TrackBar)control; // convert 100% to 256 if (key == SettingName.AxisToDPadDeadZone || key == SettingName.AxisToDPadOffset || key == SettingName.LeftTriggerDeadZone || key == SettingName.RightTriggerDeadZone) { v = System.Convert.ToInt32((float)tc.Value / 100F * 256F).ToString(); } // convert 100% to 500 else if (key == SettingName.LeftMotorPeriod || key == SettingName.RightMotorPeriod) { v = System.Convert.ToInt32((float)tc.Value / 100F * 500F).ToString(); } // Convert 100% to 32767 else if (key == SettingName.LeftThumbDeadZoneX || key == SettingName.LeftThumbDeadZoneY || key == SettingName.RightThumbDeadZoneX || key == SettingName.RightThumbDeadZoneY) { v = System.Convert.ToInt32((float)tc.Value / 100F * ((float)Int16.MaxValue)).ToString(); } else { v = tc.Value.ToString(); } } else if (control is CheckBox) { CheckBox tc = (CheckBox)control; v = tc.Checked ? "1" : "0"; } else if (control is DataGridView) { var grid = (DataGridView)control; if (grid.Enabled) { var data = grid.Rows.Cast <DataGridViewRow>().Where(x => x.Visible).Select(x => x.DataBoundItem as UserSetting) // Make sure that only enabled controllers are added. .Where(x => x != null && x.IsEnabled).ToArray(); data = FilterSettings(data); var sections = data.Select(x => GetInstanceSection(x.InstanceGuid)).ToArray(); // x360ce.dll must combine devices separated by comma. //v = string.Join(",", sections); // Use backwards compatible mode (one device at the time). v = sections.FirstOrDefault() ?? ""; // Note: Must code device combine workaround. } else { v = "AUTO"; } } return(v); }
private void VolumeBar_Scroll(object sender, EventArgs e) { TrackBar tb = (TrackBar)sender; axWindowsMediaPlayer1.settings.volume = tb.Value; }
public override void ViewControls() { #region Chart chart = new Chart(); chart.Series.Clear(); chart.ChartAreas.Clear(); chart.Titles.Clear(); Series seriesColumn = new Series(); ChartArea area1 = new ChartArea(); seriesColumn.ChartType = SeriesChartType.Column; #region //ćć¼ćæć®ēę byte[,] bImage = LoadByteImage(); data = new int[256]; get_hist(bImage, data, bImage.GetLength(0), bImage.GetLength(1)); #endregion area1.AxisX.LabelStyle.Enabled = false; area1.AxisY.LabelStyle.Enabled = false; area1.AxisX2.Enabled = AxisEnabled.False; area1.AxisY.Enabled = AxisEnabled.False; area1.AxisY2.Enabled = AxisEnabled.False; area1.AxisX.Interval = 51; area1.BackColor = chart.BackColor = System.Drawing.ColorTranslator.FromHtml("#2D2D30"); area1.AxisX.MajorGrid.LineColor = area1.AxisY.MajorGrid.LineColor = System.Drawing.ColorTranslator.FromHtml("#434346"); for (int cnt = 0; cnt < data.Length; cnt++) { seriesColumn.Points.AddXY(cnt, data[cnt]); } chart.ChartAreas.Add(area1); chart.Series.Add(seriesColumn); chart.Location = new Point(10, INTERVAL_Y * 1 - 20); chart.Size = new Size(180, 60); #endregion #region Label label1 = new Label(); label1.Text = "LEFT"; label1.Location = new Point(10, INTERVAL_Y * 3 - 35); label1.Size = new Size(17, 17); label2 = new Label(); label2.Text = "RIGHT"; label2.Location = new Point(10, INTERVAL_Y * 4 - 25); label2.Size = new Size(17, 17); #endregion #region NumericUpDown edittext1 = new NumericUpDown(); edittext1.Increment = 1; edittext1.Minimum = 0; edittext1.Maximum = 255; edittext1.Value = 0; edittext1.Location = new Point(125, INTERVAL_Y * 3 - 35); edittext1.Size = new Size(60, 24); edittext1.ValueChanged += new EventHandler(leftNumericUpDown_ValueChanged); edittext2 = new NumericUpDown(); edittext2.Increment = 1; edittext2.Minimum = 0; edittext2.Maximum = 255; edittext2.Value = 255; edittext2.Location = new Point(125, INTERVAL_Y * 4 - 25); edittext2.Size = new Size(60, 24); edittext2.ValueChanged += new EventHandler(rightNumericUpDown_ValueChanged); #endregion #region TrackBar trackbar1 = new TrackBar(); trackbar1.Minimum = 0; trackbar1.Maximum = 255; trackbar1.Value = 0; trackbar1.Location = new Point(10, INTERVAL_Y * 4 - 50); trackbar1.Size = new Size(175, 24); trackbar1.TickStyle = TickStyle.None; trackbar1.Scroll += new EventHandler(leftTrackbar_Scroll); trackbar2 = new TrackBar(); trackbar2.Minimum = 0; trackbar2.Maximum = 255; trackbar2.Value = 255; trackbar2.Location = new Point(10, INTERVAL_Y * 5 - 40); trackbar2.Size = new Size(175, 24); trackbar2.TickStyle = TickStyle.None; trackbar2.Scroll += new EventHandler(rightTrackbar_Scroll); #endregion #region Button button1 = new Button(); button1.Text = "Enlarge"; button1.Location = new Point(10, INTERVAL_Y * 5 - 10); button1.Size = new Size(175, 30); button1.Click += new EventHandler(button1_Click); button2 = new Button(); button2.Text = "Flattening"; button2.Location = new Point(10, INTERVAL_Y * 6 - 10); button2.Size = new Size(175, 30); button2.Click += new EventHandler(button2_Click); string backColor = "#F1F1F1"; Color _color = System.Drawing.ColorTranslator.FromHtml(backColor); button1.ForeColor = button2.ForeColor = _color; backColor = "#3F3F46"; _color = System.Drawing.ColorTranslator.FromHtml(backColor); button1.BackColor = button2.BackColor = _color; backColor = "#555555"; _color = System.Drawing.ColorTranslator.FromHtml(backColor); button1.FlatStyle = button2.FlatStyle = FlatStyle.Flat; button1.FlatAppearance.BorderColor = button2.FlatAppearance.BorderColor = _color; #endregion grpBox.Controls.Add(chart); grpBox.Controls.Add(label1); grpBox.Controls.Add(label2); grpBox.Controls.Add(edittext1); grpBox.Controls.Add(edittext2); grpBox.Controls.Add(button1); grpBox.Controls.Add(button2); grpBox.Controls.Add(trackbar1); grpBox.Controls.Add(trackbar2); }
// designer generated code private void InitializeComponent() { this.groupBoxTVThumbs = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.mpLabel1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelRows = new MediaPortal.UserInterface.Controls.MPLabel(); this.numericUpDownThumbRows = new MediaPortal.UserInterface.Controls.MPNumericUpDown(); this.labelCol = new MediaPortal.UserInterface.Controls.MPLabel(); this.numericUpDownThumbColumns = new MediaPortal.UserInterface.Controls.MPNumericUpDown(); this.checkBoxShareThumb = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.buttonClearTVThumbs = new MediaPortal.UserInterface.Controls.MPButton(); this.checkBoxTVThumbs = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.groupBoxPictureThumbs = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.buttonClearPictureThumbs = new MediaPortal.UserInterface.Controls.MPButton(); this.checkBoxPicThumbOnDemand = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.groupBoxMusicThumbs = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.buttonClearMusicCache = new MediaPortal.UserInterface.Controls.MPButton(); this.checkBoxFolderThumbOnDemand = new MediaPortal.UserInterface.Controls.MPCheckBox(); this.groupBoxThumbQuality = new MediaPortal.UserInterface.Controls.MPGroupBox(); this.labelRecommendedCurrent = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelRecommendedHint = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelCurrentSmoothing = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelCurrentInterpolation = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelCurrentCompositing = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelCurrentResolution = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelSmoothing = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelInterpolation = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelCompositing = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelResolution = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelHigh = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelLow = new MediaPortal.UserInterface.Controls.MPLabel(); this.labelQualityHint = new MediaPortal.UserInterface.Controls.MPLabel(); this.trackBarQuality = new System.Windows.Forms.TrackBar(); this.groupBoxTVThumbs.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThumbRows)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThumbColumns)).BeginInit(); this.groupBoxPictureThumbs.SuspendLayout(); this.groupBoxMusicThumbs.SuspendLayout(); this.groupBoxThumbQuality.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBarQuality)).BeginInit(); this.SuspendLayout(); // // groupBoxTVThumbs // this.groupBoxTVThumbs.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBoxTVThumbs.Controls.Add(this.mpLabel1); this.groupBoxTVThumbs.Controls.Add(this.labelRows); this.groupBoxTVThumbs.Controls.Add(this.numericUpDownThumbRows); this.groupBoxTVThumbs.Controls.Add(this.labelCol); this.groupBoxTVThumbs.Controls.Add(this.numericUpDownThumbColumns); this.groupBoxTVThumbs.Controls.Add(this.checkBoxShareThumb); this.groupBoxTVThumbs.Controls.Add(this.buttonClearTVThumbs); this.groupBoxTVThumbs.Controls.Add(this.checkBoxTVThumbs); this.groupBoxTVThumbs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBoxTVThumbs.Location = new System.Drawing.Point(6, 264); this.groupBoxTVThumbs.Name = "groupBoxTVThumbs"; this.groupBoxTVThumbs.Size = new System.Drawing.Size(462, 94); this.groupBoxTVThumbs.TabIndex = 7; this.groupBoxTVThumbs.TabStop = false; this.groupBoxTVThumbs.Text = "TV/Videos thumbs"; // // mpLabel1 // this.mpLabel1.Anchor = System.Windows.Forms.AnchorStyles.None; this.mpLabel1.AutoSize = true; this.mpLabel1.Location = new System.Drawing.Point(255, 21); this.mpLabel1.Name = "mpLabel1"; this.mpLabel1.Size = new System.Drawing.Size(106, 13); this.mpLabel1.TabIndex = 13; this.mpLabel1.Text = "Preview Appearance"; // // labelRows // this.labelRows.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelRows.AutoSize = true; this.labelRows.Location = new System.Drawing.Point(255, 68); this.labelRows.Name = "labelRows"; this.labelRows.Size = new System.Drawing.Size(81, 13); this.labelRows.TabIndex = 12; this.labelRows.Text = "Number of rows"; // // numericUpDownThumbRows // this.numericUpDownThumbRows.Location = new System.Drawing.Point(364, 66); this.numericUpDownThumbRows.Maximum = new decimal(new int[] { 3, 0, 0, 0 }); this.numericUpDownThumbRows.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDownThumbRows.Name = "numericUpDownThumbRows"; this.numericUpDownThumbRows.Size = new System.Drawing.Size(55, 20); this.numericUpDownThumbRows.TabIndex = 11; this.numericUpDownThumbRows.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownThumbRows.Value = new decimal(new int[] { 1, 0, 0, 0 }); // // labelCol // this.labelCol.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCol.AutoSize = true; this.labelCol.Location = new System.Drawing.Point(255, 42); this.labelCol.Name = "labelCol"; this.labelCol.Size = new System.Drawing.Size(98, 13); this.labelCol.TabIndex = 10; this.labelCol.Text = "Number of columns"; // // numericUpDownThumbColumns // this.numericUpDownThumbColumns.Location = new System.Drawing.Point(364, 40); this.numericUpDownThumbColumns.Maximum = new decimal(new int[] { 3, 0, 0, 0 }); this.numericUpDownThumbColumns.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDownThumbColumns.Name = "numericUpDownThumbColumns"; this.numericUpDownThumbColumns.Size = new System.Drawing.Size(55, 20); this.numericUpDownThumbColumns.TabIndex = 3; this.numericUpDownThumbColumns.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownThumbColumns.Value = new decimal(new int[] { 1, 0, 0, 0 }); // // checkBoxShareThumb // this.checkBoxShareThumb.AutoSize = true; this.checkBoxShareThumb.Checked = true; this.checkBoxShareThumb.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxShareThumb.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxShareThumb.Location = new System.Drawing.Point(13, 40); this.checkBoxShareThumb.Name = "checkBoxShareThumb"; this.checkBoxShareThumb.Size = new System.Drawing.Size(182, 17); this.checkBoxShareThumb.TabIndex = 2; this.checkBoxShareThumb.Text = "Leave a thumb in recording folder"; this.checkBoxShareThumb.UseVisualStyleBackColor = true; // // buttonClearTVThumbs // this.buttonClearTVThumbs.Location = new System.Drawing.Point(13, 63); this.buttonClearTVThumbs.Name = "buttonClearTVThumbs"; this.buttonClearTVThumbs.Size = new System.Drawing.Size(178, 23); this.buttonClearTVThumbs.TabIndex = 1; this.buttonClearTVThumbs.Text = "Clear TV/Videos thumbs"; this.buttonClearTVThumbs.UseVisualStyleBackColor = true; this.buttonClearTVThumbs.Click += new System.EventHandler(this.buttonClearTVThumbs_Click); // // checkBoxTVThumbs // this.checkBoxTVThumbs.AutoSize = true; this.checkBoxTVThumbs.Checked = true; this.checkBoxTVThumbs.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxTVThumbs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxTVThumbs.Location = new System.Drawing.Point(13, 19); this.checkBoxTVThumbs.Name = "checkBoxTVThumbs"; this.checkBoxTVThumbs.Size = new System.Drawing.Size(113, 17); this.checkBoxTVThumbs.TabIndex = 0; this.checkBoxTVThumbs.Text = "Autocreate thumbs"; this.checkBoxTVThumbs.UseVisualStyleBackColor = true; // // groupBoxPictureThumbs // this.groupBoxPictureThumbs.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.groupBoxPictureThumbs.Controls.Add(this.buttonClearPictureThumbs); this.groupBoxPictureThumbs.Controls.Add(this.checkBoxPicThumbOnDemand); this.groupBoxPictureThumbs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBoxPictureThumbs.Location = new System.Drawing.Point(241, 185); this.groupBoxPictureThumbs.Name = "groupBoxPictureThumbs"; this.groupBoxPictureThumbs.Size = new System.Drawing.Size(227, 74); this.groupBoxPictureThumbs.TabIndex = 6; this.groupBoxPictureThumbs.TabStop = false; this.groupBoxPictureThumbs.Text = "Picture thumbs"; // // buttonClearPictureThumbs // this.buttonClearPictureThumbs.Location = new System.Drawing.Point(14, 42); this.buttonClearPictureThumbs.Name = "buttonClearPictureThumbs"; this.buttonClearPictureThumbs.Size = new System.Drawing.Size(178, 23); this.buttonClearPictureThumbs.TabIndex = 1; this.buttonClearPictureThumbs.Text = "Clear picture cache"; this.buttonClearPictureThumbs.UseVisualStyleBackColor = true; this.buttonClearPictureThumbs.Click += new System.EventHandler(this.buttonClearPictureThumbs_Click); // // checkBoxPicThumbOnDemand // this.checkBoxPicThumbOnDemand.AutoSize = true; this.checkBoxPicThumbOnDemand.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxPicThumbOnDemand.Location = new System.Drawing.Point(14, 19); this.checkBoxPicThumbOnDemand.Name = "checkBoxPicThumbOnDemand"; this.checkBoxPicThumbOnDemand.Size = new System.Drawing.Size(164, 17); this.checkBoxPicThumbOnDemand.TabIndex = 0; this.checkBoxPicThumbOnDemand.Text = "Auto-create only small thumbs"; this.checkBoxPicThumbOnDemand.UseVisualStyleBackColor = true; // // groupBoxMusicThumbs // this.groupBoxMusicThumbs.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBoxMusicThumbs.Controls.Add(this.buttonClearMusicCache); this.groupBoxMusicThumbs.Controls.Add(this.checkBoxFolderThumbOnDemand); this.groupBoxMusicThumbs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBoxMusicThumbs.Location = new System.Drawing.Point(6, 185); this.groupBoxMusicThumbs.Name = "groupBoxMusicThumbs"; this.groupBoxMusicThumbs.Size = new System.Drawing.Size(227, 74); this.groupBoxMusicThumbs.TabIndex = 5; this.groupBoxMusicThumbs.TabStop = false; this.groupBoxMusicThumbs.Text = "Music thumbs"; // // buttonClearMusicCache // this.buttonClearMusicCache.Location = new System.Drawing.Point(13, 42); this.buttonClearMusicCache.Name = "buttonClearMusicCache"; this.buttonClearMusicCache.Size = new System.Drawing.Size(178, 23); this.buttonClearMusicCache.TabIndex = 1; this.buttonClearMusicCache.Text = "Delete all music thumbs"; this.buttonClearMusicCache.UseVisualStyleBackColor = true; this.buttonClearMusicCache.Click += new System.EventHandler(this.buttonClearMusicCache_Click); // // checkBoxFolderThumbOnDemand // this.checkBoxFolderThumbOnDemand.AutoSize = true; this.checkBoxFolderThumbOnDemand.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.checkBoxFolderThumbOnDemand.Location = new System.Drawing.Point(13, 19); this.checkBoxFolderThumbOnDemand.Name = "checkBoxFolderThumbOnDemand"; this.checkBoxFolderThumbOnDemand.Size = new System.Drawing.Size(173, 17); this.checkBoxFolderThumbOnDemand.TabIndex = 0; this.checkBoxFolderThumbOnDemand.Text = "Create folder cache on demand"; this.checkBoxFolderThumbOnDemand.UseVisualStyleBackColor = true; // // groupBoxThumbQuality // this.groupBoxThumbQuality.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.groupBoxThumbQuality.Controls.Add(this.labelRecommendedCurrent); this.groupBoxThumbQuality.Controls.Add(this.labelRecommendedHint); this.groupBoxThumbQuality.Controls.Add(this.labelCurrentSmoothing); this.groupBoxThumbQuality.Controls.Add(this.labelCurrentInterpolation); this.groupBoxThumbQuality.Controls.Add(this.labelCurrentCompositing); this.groupBoxThumbQuality.Controls.Add(this.labelCurrentResolution); this.groupBoxThumbQuality.Controls.Add(this.labelSmoothing); this.groupBoxThumbQuality.Controls.Add(this.labelInterpolation); this.groupBoxThumbQuality.Controls.Add(this.labelCompositing); this.groupBoxThumbQuality.Controls.Add(this.labelResolution); this.groupBoxThumbQuality.Controls.Add(this.labelHigh); this.groupBoxThumbQuality.Controls.Add(this.labelLow); this.groupBoxThumbQuality.Controls.Add(this.labelQualityHint); this.groupBoxThumbQuality.Controls.Add(this.trackBarQuality); this.groupBoxThumbQuality.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.groupBoxThumbQuality.Location = new System.Drawing.Point(6, 0); this.groupBoxThumbQuality.Name = "groupBoxThumbQuality"; this.groupBoxThumbQuality.Size = new System.Drawing.Size(462, 179); this.groupBoxThumbQuality.TabIndex = 4; this.groupBoxThumbQuality.TabStop = false; this.groupBoxThumbQuality.Text = "Quality settings"; // // labelRecommendedCurrent // this.labelRecommendedCurrent.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelRecommendedCurrent.AutoSize = true; this.labelRecommendedCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelRecommendedCurrent.Location = new System.Drawing.Point(27, 155); this.labelRecommendedCurrent.Name = "labelRecommendedCurrent"; this.labelRecommendedCurrent.Size = new System.Drawing.Size(78, 13); this.labelRecommendedCurrent.TabIndex = 2; this.labelRecommendedCurrent.Text = "LCDs, Plasmas"; // // labelRecommendedHint // this.labelRecommendedHint.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelRecommendedHint.AutoSize = true; this.labelRecommendedHint.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelRecommendedHint.Location = new System.Drawing.Point(27, 133); this.labelRecommendedHint.Name = "labelRecommendedHint"; this.labelRecommendedHint.Size = new System.Drawing.Size(113, 13); this.labelRecommendedHint.TabIndex = 1; this.labelRecommendedHint.Text = "Recommended for:"; // // labelCurrentSmoothing // this.labelCurrentSmoothing.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCurrentSmoothing.AutoSize = true; this.labelCurrentSmoothing.Location = new System.Drawing.Point(334, 134); this.labelCurrentSmoothing.Name = "labelCurrentSmoothing"; this.labelCurrentSmoothing.Size = new System.Drawing.Size(64, 13); this.labelCurrentSmoothing.TabIndex = 13; this.labelCurrentSmoothing.Text = "High Quality"; // // labelCurrentInterpolation // this.labelCurrentInterpolation.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCurrentInterpolation.AutoSize = true; this.labelCurrentInterpolation.Location = new System.Drawing.Point(334, 102); this.labelCurrentInterpolation.Name = "labelCurrentInterpolation"; this.labelCurrentInterpolation.Size = new System.Drawing.Size(64, 13); this.labelCurrentInterpolation.TabIndex = 11; this.labelCurrentInterpolation.Text = "High Quality"; // // labelCurrentCompositing // this.labelCurrentCompositing.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCurrentCompositing.AutoSize = true; this.labelCurrentCompositing.Location = new System.Drawing.Point(334, 71); this.labelCurrentCompositing.Name = "labelCurrentCompositing"; this.labelCurrentCompositing.Size = new System.Drawing.Size(76, 13); this.labelCurrentCompositing.TabIndex = 9; this.labelCurrentCompositing.Text = "Assume Linear"; // // labelCurrentResolution // this.labelCurrentResolution.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCurrentResolution.AutoSize = true; this.labelCurrentResolution.Location = new System.Drawing.Point(334, 41); this.labelCurrentResolution.Name = "labelCurrentResolution"; this.labelCurrentResolution.Size = new System.Drawing.Size(55, 13); this.labelCurrentResolution.TabIndex = 7; this.labelCurrentResolution.Text = "120 + 500"; // // labelSmoothing // this.labelSmoothing.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelSmoothing.AutoSize = true; this.labelSmoothing.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSmoothing.Location = new System.Drawing.Point(252, 133); this.labelSmoothing.Name = "labelSmoothing"; this.labelSmoothing.Size = new System.Drawing.Size(66, 13); this.labelSmoothing.TabIndex = 12; this.labelSmoothing.Text = "Smoothing"; // // labelInterpolation // this.labelInterpolation.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelInterpolation.AutoSize = true; this.labelInterpolation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelInterpolation.Location = new System.Drawing.Point(252, 101); this.labelInterpolation.Name = "labelInterpolation"; this.labelInterpolation.Size = new System.Drawing.Size(78, 13); this.labelInterpolation.TabIndex = 10; this.labelInterpolation.Text = "Interpolation"; // // labelCompositing // this.labelCompositing.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelCompositing.AutoSize = true; this.labelCompositing.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelCompositing.Location = new System.Drawing.Point(252, 70); this.labelCompositing.Name = "labelCompositing"; this.labelCompositing.Size = new System.Drawing.Size(75, 13); this.labelCompositing.TabIndex = 8; this.labelCompositing.Text = "Compositing"; // // labelResolution // this.labelResolution.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelResolution.AutoSize = true; this.labelResolution.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelResolution.Location = new System.Drawing.Point(252, 40); this.labelResolution.Name = "labelResolution"; this.labelResolution.Size = new System.Drawing.Size(67, 13); this.labelResolution.TabIndex = 6; this.labelResolution.Text = "Resolution"; // // labelHigh // this.labelHigh.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelHigh.AutoSize = true; this.labelHigh.Location = new System.Drawing.Point(194, 18); this.labelHigh.Name = "labelHigh"; this.labelHigh.Size = new System.Drawing.Size(39, 13); this.labelHigh.TabIndex = 3; this.labelHigh.Text = "Quality"; // // labelLow // this.labelLow.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelLow.AutoSize = true; this.labelLow.Location = new System.Drawing.Point(194, 155); this.labelLow.Name = "labelLow"; this.labelLow.Size = new System.Drawing.Size(38, 13); this.labelLow.TabIndex = 5; this.labelLow.Text = "Speed"; // // labelQualityHint // this.labelQualityHint.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelQualityHint.Location = new System.Drawing.Point(27, 28); this.labelQualityHint.Name = "labelQualityHint"; this.labelQualityHint.Size = new System.Drawing.Size(163, 76); this.labelQualityHint.TabIndex = 0; this.labelQualityHint.Text = "Depending on your display size \r\nyou might want to decrease \r\nthumbnail quality f" + "or faster \r\nthumbnail generation and \r\nbetter browsing / scrolling"; // // trackBarQuality // this.trackBarQuality.Anchor = System.Windows.Forms.AnchorStyles.None; this.trackBarQuality.LargeChange = 2; this.trackBarQuality.Location = new System.Drawing.Point(197, 35); this.trackBarQuality.Maximum = 4; this.trackBarQuality.Name = "trackBarQuality"; this.trackBarQuality.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarQuality.Size = new System.Drawing.Size(45, 116); this.trackBarQuality.TabIndex = 4; this.trackBarQuality.Value = 3; this.trackBarQuality.ValueChanged += new System.EventHandler(this.trackBarQuality_ValueChanged); // // GuiThumbs // this.Controls.Add(this.groupBoxTVThumbs); this.Controls.Add(this.groupBoxPictureThumbs); this.Controls.Add(this.groupBoxMusicThumbs); this.Controls.Add(this.groupBoxThumbQuality); this.Name = "GuiThumbs"; this.Size = new System.Drawing.Size(472, 408); this.groupBoxTVThumbs.ResumeLayout(false); this.groupBoxTVThumbs.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThumbRows)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownThumbColumns)).EndInit(); this.groupBoxPictureThumbs.ResumeLayout(false); this.groupBoxPictureThumbs.PerformLayout(); this.groupBoxMusicThumbs.ResumeLayout(false); this.groupBoxMusicThumbs.PerformLayout(); this.groupBoxThumbQuality.ResumeLayout(false); this.groupBoxThumbQuality.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBarQuality)).EndInit(); this.ResumeLayout(false); }
private void selectedSplitter_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { ToolStripItem item = e.ClickedItem; selectedSplitter.ItemClicked -= new ToolStripItemClickedEventHandler(selectedSplitter_ItemClicked); if (item.Text == "Normal Splitter") { flag = 3; lblSelectedComponent.Text = e.ClickedItem.Text; } else if (item.Text == "Adjustable Splitter") { flag = 6; lblSelectedComponent.Text = "Adjustable Splitter"; TrackBar trackform = new TrackBar(); trackform.ShowDialog(); int myflow = trackform.MyFlow; adjastable = myflow; } }
private void InitializeComponent() { this.groupBox1 = new GroupBox(); this.cmbDupli = new ComboBox(); this.label2 = new Label(); this.rdoSaveAs = new RadioButton(); this.txtName = new TextBox(); this.rdoScrapName = new RadioButton(); this.rdoName = new RadioButton(); this.label4 = new Label(); this.chkCopy = new CheckBox(); this.chkWindow = new CheckBox(); this.chkShowParam = new CheckBox(); this.label6 = new Label(); this.label5 = new Label(); this.lblQuality = new Label(); this.barQuality = new TrackBar(); this.label3 = new Label(); this.btnRef = new Button(); this.txtFolder = new TextBox(); this.label1 = new Label(); this.folderBrowserDialog1 = new FolderBrowserDialog(); this.groupBox1.SuspendLayout(); this.barQuality.BeginInit(); base.SuspendLayout(); base.cmdOK.Location = new Point(0xf9, 0x149); base.cmdCancel.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; base.cmdCancel.Location = new Point(0x143, 0x149); this.groupBox1.Controls.Add(this.cmbDupli); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.rdoSaveAs); this.groupBox1.Controls.Add(this.txtName); this.groupBox1.Controls.Add(this.rdoScrapName); this.groupBox1.Controls.Add(this.rdoName); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.chkCopy); this.groupBox1.Controls.Add(this.chkWindow); this.groupBox1.Controls.Add(this.chkShowParam); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.lblQuality); this.groupBox1.Controls.Add(this.barQuality); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.btnRef); this.groupBox1.Controls.Add(this.txtFolder); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Location = new Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new Size(0x182, 0x13a); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "č®¾ē½®"; this.cmbDupli.DropDownStyle = ComboBoxStyle.DropDownList; this.cmbDupli.FormattingEnabled = true; this.cmbDupli.Items.AddRange(new object[] { "č¦ē", "čæ½å åŗå·", "éå¤ę¶ęå®" }); this.cmbDupli.Location = new Point(0x85, 0x7f); this.cmbDupli.Name = "cmbDupli"; this.cmbDupli.Size = new Size(0x85, 20); this.cmbDupli.TabIndex = 9; this.label2.AutoSize = true; this.label2.Location = new Point(0x54, 130); this.label2.Name = "label2"; this.label2.Size = new Size(0x2b, 12); this.label2.TabIndex = 8; this.label2.Text = "éå¤ę¶ā¶"; this.rdoSaveAs.AutoSize = true; this.rdoSaveAs.Location = new Point(0x56, 0x42); this.rdoSaveAs.Name = "rdoSaveAs"; this.rdoSaveAs.Size = new Size(0x6f, 0x10); this.rdoSaveAs.TabIndex = 4; this.rdoSaveAs.TabStop = true; this.rdoSaveAs.Text = "äæåę¶ęå®"; this.rdoSaveAs.UseVisualStyleBackColor = true; this.rdoSaveAs.CheckedChanged += new EventHandler(this.rdoSaveAs_CheckedChanged); this.txtName.Location = new Point(0x67, 0x68); this.txtName.MaxLength = 0xff; this.txtName.Name = "txtName"; this.txtName.Size = new Size(0xdf, 0x13); this.txtName.TabIndex = 7; this.rdoScrapName.AutoSize = true; this.rdoScrapName.Location = new Point(0x56, 0x56); this.rdoScrapName.Name = "rdoScrapName"; this.rdoScrapName.Size = new Size(0x80, 0x10); this.rdoScrapName.TabIndex = 5; this.rdoScrapName.TabStop = true; this.rdoScrapName.Text = "ä½æēØåčå¾å"; this.rdoScrapName.UseVisualStyleBackColor = true; this.rdoScrapName.CheckedChanged += new EventHandler(this.rdoSaveAs_CheckedChanged); this.rdoName.AutoSize = true; this.rdoName.Location = new Point(0x56, 0x6b); this.rdoName.Name = "rdoName"; this.rdoName.Size = new Size(14, 13); this.rdoName.TabIndex = 6; this.rdoName.TabStop = true; this.rdoName.UseVisualStyleBackColor = true; this.rdoName.CheckedChanged += new EventHandler(this.rdoSaveAs_CheckedChanged); this.label4.AutoSize = true; this.label4.Location = new Point(0x1b, 0x44); this.label4.Name = "label4"; this.label4.Size = new Size(0x35, 12); this.label4.TabIndex = 3; this.label4.Text = "ę件åā¶"; this.chkCopy.AutoSize = true; this.chkCopy.Location = new Point(0x1c, 0x114); this.chkCopy.Name = "chkCopy"; this.chkCopy.Size = new Size(0xea, 0x10); this.chkCopy.TabIndex = 0x11; this.chkCopy.Text = "å¤å¶å°åŖč““ęæäøēę件ēäæåč·Æå¾"; this.chkCopy.UseVisualStyleBackColor = true; this.chkWindow.AutoSize = true; this.chkWindow.Location = new Point(0x1c, 0x102); this.chkWindow.Name = "chkWindow"; this.chkWindow.Size = new Size(0x7f, 0x10); this.chkWindow.TabIndex = 0x10; this.chkWindow.Text = "å å«ēŖå£/č¾¹ę”"; this.chkWindow.UseVisualStyleBackColor = true; this.chkShowParam.AutoSize = true; this.chkShowParam.Checked = true; this.chkShowParam.CheckState = CheckState.Checked; this.chkShowParam.Location = new Point(0x1c, 240); this.chkShowParam.Name = "chkShowParam"; this.chkShowParam.Size = new Size(0x9b, 0x10); this.chkShowParam.TabIndex = 15; this.chkShowParam.Text = "äæåå¾åę¶č®¾ē½®č“Øé"; this.chkShowParam.UseVisualStyleBackColor = true; this.label6.AutoSize = true; this.label6.Location = new Point(0x114, 0xcc); this.label6.Name = "label6"; this.label6.Size = new Size(0x17, 12); this.label6.TabIndex = 14; this.label6.Text = "100"; this.label5.AutoSize = true; this.label5.Location = new Point(0x4d, 0xcc); this.label5.Name = "label5"; this.label5.Size = new Size(11, 12); this.label5.TabIndex = 13; this.label5.Text = "0"; this.lblQuality.Location = new Point(0x12b, 0xb3); this.lblQuality.Name = "lblQuality"; this.lblQuality.Size = new Size(0x19, 12); this.lblQuality.TabIndex = 12; this.lblQuality.Text = "100"; this.lblQuality.TextAlign = ContentAlignment.TopRight; this.barQuality.AutoSize = false; this.barQuality.Location = new Point(0x44, 0xac); this.barQuality.Maximum = 100; this.barQuality.Name = "barQuality"; this.barQuality.Size = new Size(0xe9, 0x21); this.barQuality.TabIndex = 11; this.barQuality.TickFrequency = 10; this.barQuality.Value = 100; this.barQuality.ValueChanged += new EventHandler(this.barQuality_Scroll); this.barQuality.Scroll += new EventHandler(this.barQuality_Scroll); this.label3.AutoSize = true; this.label3.Location = new Point(0x1b, 0xb1); this.label3.Name = "label3"; this.label3.Size = new Size(0x1f, 12); this.label3.TabIndex = 10; this.label3.Text = "č“Øéļ¼"; this.btnRef.Location = new Point(0x147, 30); this.btnRef.Name = "btnRef"; this.btnRef.Size = new Size(0x16, 0x17); this.btnRef.TabIndex = 2; this.btnRef.Text = "..."; this.btnRef.UseVisualStyleBackColor = true; this.btnRef.Click += new EventHandler(this.btnRef_Click); this.txtFolder.Location = new Point(0x4b, 0x20); this.txtFolder.Name = "txtFolder"; this.txtFolder.Size = new Size(250, 0x13); this.txtFolder.TabIndex = 1; this.label1.AutoSize = true; this.label1.Location = new Point(0x1a, 0x23); this.label1.Name = "label1"; this.label1.Size = new Size(0x2b, 12); this.label1.TabIndex = 0; this.label1.Text = "äæåč·Æå¾ļ¼"; this.folderBrowserDialog1.RootFolder = Environment.SpecialFolder.ApplicationData; base.AutoScaleDimensions = new SizeF(6f, 12f); base.ClientSize = new Size(0x191, 0x169); base.Controls.Add(this.groupBox1); base.Name = "ImageJpegStyleItemPanel"; base.Controls.SetChildIndex(base.cmdCancel, 0); base.Controls.SetChildIndex(base.cmdOK, 0); base.Controls.SetChildIndex(this.groupBox1, 0); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.barQuality.EndInit(); base.ResumeLayout(false); }
public CustomColorDialog(Color color) { const int RGBINIT = 0x1; const int FULL_OPEN = 0x2; const int ENABLE_HOOK = 0x10; chooseColor.lStructSize = Marshal.SizeOf(chooseColor); chooseColor.lpfnHook = HookProc; chooseColor.Flags = RGBINIT | FULL_OPEN | ENABLE_HOOK; chooseColor.lpCustColors = Marshal.AllocCoTaskMem(16 * sizeof(int)); chooseColor.rgbResult = 0x00ffffff & color.ToArgb(); alphaSlider = new TrackBar { Minimum = 0, Maximum = 255, Height = 200, TickStyle = TickStyle.TopLeft, Orientation = Orientation.Vertical }; alphaSlider.Left -= 10; alphaSlider.Value = color.A; alphaText = new TextBox { Width = 25, Height = 50, Top = 202, Text = Convert.ToString(color.A), MaxLength = 3 }; alphaPanel = new Panel { BorderStyle = BorderStyle.None, Width = 25, Height = 268 }; alphaPanel.Controls.Add(alphaSlider); alphaPanel.Controls.Add(alphaText); alphaText.KeyDown += (sender, args) => { args.SuppressKeyPress = (args.KeyValue < 37 || args.KeyValue > 40) && args.KeyValue != 46 && args.KeyValue != 8 && !char.IsDigit((char)args.KeyValue); }; alphaText.KeyUp += (sender, args) => { pressed = false; int value; if (int.TryParse(alphaText.Text, out value) && alphaSlider.Value != value) { if (value < 0) { value = 0; alphaText.Text = Convert.ToString(value); } else if (value > 255) { value = 255; alphaText.Text = Convert.ToString(value); } alphaSlider.Value = value; } pressed = true; }; alphaSlider.ValueChanged += (sender, args) => { if (pressed) { alphaText.Text = Convert.ToString(alphaSlider.Value); } }; }
private static void LoadImageProperty(TableLayoutPanel tabPanel, Property property, int index, int maxIndex, int propertyHeight) { Panel panel = new Panel { Dock = DockStyle.Fill, Margin = new Padding(0, 0, 0, 0), Padding = new Padding(0, 0, 0, 0), }; tabPanel.Controls.Add(panel, 0, index); PictureBox cachedPb; Image image; if (property.RefPropertyId > 0) { cachedPb = GlobalConfig.Controller.GetPictureBox(property.RefPropertyId.ToString()); if (cachedPb != null) { image = cachedPb.Image; } else { Log.Error("Flow1_FlowPanel", "LoadImageProperty", string.Format("property id={0} Get picture box nil", property.Id)); image = Image.FromFile(Path.Combine(GlobalConfig.Project.GetUserResourcesDir(), property.Value)); } } else { image = Image.FromFile(Path.Combine(GlobalConfig.Project.GetUserResourcesDir(), property.Value)); } PictureBox pictureBox = new PictureBox { Name = property.GetPictureBoxId(), Size = new Size(0, 0), Margin = new Padding(0, 0, 0, 0), Padding = new Padding(0, 0, 0, 0), Image = image, SizeMode = PictureBoxSizeMode.Zoom, BorderStyle = BorderStyle.FixedSingle, Location = new Point(0, 0), BackColor = Color.Gray, Visible = false, }; panel.Controls.Add(pictureBox); SortedDictionary <int, Property> brothers = GlobalConfig.Project.CarConfig.GetGroupSameLayerProperties(property.GroupId, property); if (brothers.Count > 1) //å å«čŖå·±ę仄大äŗ1 { CheckBox checkBox = new CheckBox { Name = property.GetCheckBoxId(), Margin = new Padding(0, 0, 0, 0), Padding = new Padding(0, 0, 0, 0), Checked = brothers.FirstOrDefault().Key == property.Id, Width = 13, Text = "", }; if (!checkBox.Checked) { pictureBox.Enabled = false; } checkBox.CheckedChanged += new System.EventHandler(delegate(object sender, EventArgs e) { if (checkBox.Checked) { pictureBox.Enabled = true; foreach (Property brotherProperty in brothers.Values) { if (brotherProperty.GetCheckBoxId() == checkBox.Name) { continue; } Control[] pbControls = tabPanel.Controls.Find(brotherProperty.GetPictureBoxId(), true); foreach (PictureBox pb in pbControls) { pb.Enabled = false; } Control[] ckControls = tabPanel.Controls.Find(brotherProperty.GetCheckBoxId(), true); foreach (CheckBox ck in ckControls) { ck.Checked = false; } } } else { pictureBox.Enabled = false; } GlobalConfig.Controller.ShowGroupOnCenterBoard(tabPanel, property.GetGroup()); }); panel.Controls.Add(checkBox); } //ęÆäøŖPropertyēPictureBoxé½å ę³Øåå°ē¼åäøļ¼ å½ęPropertyéč¦å¼ēØå ¶ä»Propertyēå¾ēę¶ļ¼ē“ę„ååŗ GlobalConfig.Controller.SetPictureBox(property.Id.ToString(), pictureBox); if (!property.ShowLabel) { tabPanel.Controls.Add(pictureBox, 0, 0); //č„propertyäøē°å®ę ē¾ļ¼ åē“ę„ęč½½å°tableēē¬¬0č”äø return; } tabPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, propertyHeight)); Label label = new Label { Text = property.Name, Location = new Point(14, 0), Margin = new Padding(0, 0, 0, 0), Padding = new Padding(0, 0, 0, 0), Font = new Font("å¾®č½Æé é»", 10F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), Height = 20, Width = 180, TextAlign = ContentAlignment.MiddleLeft, }; panel.Controls.Add(label); Button button = new Button { Location = new Point(panel.Width - 100, 0), Width = 100, Height = 26, Font = new Font("å¾®č½Æé é»", 11F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), TextAlign = ContentAlignment.MiddleCenter }; if (property.OptType == PropertyOperateType.ReplaceImage) { button.Text = "ę“ę¢å¾ē"; button.Click += new EventHandler(delegate(object _, EventArgs b) { try { OpenFileDialog openFileDialog = new OpenFileDialog { Filter = "Png|*.png|Jpg|*.jpg" }; if (openFileDialog.ShowDialog() == DialogResult.OK) { pictureBox.Image = Image.FromFile(openFileDialog.FileName); pictureBox.Image.Save(Path.Combine(GlobalConfig.Project.GetUserUploadImageDir(), openFileDialog.SafeFileName));; pictureBox.Refresh(); if (openFileDialog.FileName != property.Value) { Property propertyCopy = property.Clone(); propertyCopy.Value = GlobalConfig.Project.GetPropertyImagePath(openFileDialog.SafeFileName); GlobalConfig.Project.Editer.Add(property.Id, propertyCopy); } else { GlobalConfig.Project.Editer.Remove(property.Id); } } GlobalConfig.Controller.ShowGroupOnCenterBoard(tabPanel, property.GetGroup()); } catch (Exception) { } }); panel.Controls.Add(button); } else if (property.OptType == PropertyOperateType.AlphaWhiteImageSetColor) { TextBox text = new TextBox { Name = property.GetTextBoxColorID(), AutoSize = false, Width = 35, Height = 25, Location = new Point(label.Width + GlobalConfig.UiConfig.PropertyLabelMargin, 0), Margin = new Padding(0, 0, 0, 0), BorderStyle = BorderStyle.FixedSingle, }; if (property.DefaultValue != null && property.DefaultValue.Length > 0) { try { text.BackColor = Color.FromArgb( Convert.ToInt32(property.DefaultValue.Substring(2, 2), 16), Convert.ToInt32(property.DefaultValue.Substring(4, 2), 16), Convert.ToInt32(property.DefaultValue.Substring(6, 2), 16)); PngUtil.SetAlphaWhilteImage((Bitmap)image, text.BackColor); pictureBox.Refresh(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } button.Text = "č®¾ē½®é¢č²"; button.Click += new EventHandler(delegate(object _, EventArgs b) { ColorDialog dialog = new ColorDialog(); if (dialog.ShowDialog() == DialogResult.OK) { if (dialog.Color.ToArgb() != text.BackColor.ToArgb()) { Property propertyCopy = property.Clone(); propertyCopy.DefaultValue = "0x" + dialog.Color.R.ToString("X2") + dialog.Color.G.ToString("X2") + dialog.Color.B.ToString("X2"); GlobalConfig.Project.Editer.Set(property.Id, propertyCopy); } else { GlobalConfig.Project.Editer.Remove(property.Id); } PngUtil.SetAlphaWhilteImage((Bitmap)image, dialog.Color); text.BackColor = dialog.Color; pictureBox.Refresh(); } GlobalConfig.Controller.ShowGroupOnCenterBoard(tabPanel, property.GetGroup()); }); panel.Controls.Add(text); panel.Controls.Add(button); } else if (property.OptType == PropertyOperateType.AlphaWhiteImageSetAlpha) { TextBox text = new TextBox { Name = property.GetTextBoxAlphaID(), Width = 35, Location = new Point(label.Width + GlobalConfig.UiConfig.PropertyLabelMargin, 0), Height = 20, Margin = new Padding(0, 0, 0, 0), Font = new Font("å¾®č½Æé é»", 11F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), }; if (property.DefaultValue == null || property.DefaultValue.Length == 0) { text.Text = "0"; } else { text.Text = property.DefaultValue; PngUtil.SetAlphaWhilteImage((Bitmap)image, Convert.ToInt32(property.DefaultValue)); pictureBox.Refresh(); } string oldText = text.Text; button.Text = "ē”®å®"; button.Click += new EventHandler(delegate(object _, EventArgs b) { if (oldText != text.Text) { Property propertyCopy = property.Clone(); propertyCopy.DefaultValue = text.Text; GlobalConfig.Project.Editer.Set(property.Id, propertyCopy); } else { GlobalConfig.Project.Editer.Remove(property.Id); } try { int alphaValue = Convert.ToInt32(text.Text); PngUtil.SetAlphaWhilteImage((Bitmap)image, alphaValue); pictureBox.Refresh(); GlobalConfig.Controller.ShowGroupOnCenterBoard(tabPanel, property.GetGroup()); } catch (Exception) { } }); panel.Controls.Add(button); panel.Controls.Add(text); } else if (property.OptType == PropertyOperateType.ImageFilterColor) { TextBox textBox = new TextBox { Width = 35, Location = new Point(label.Width + 20, 0), Height = 20, Margin = new Padding(0, 0, 0, 0), Font = new Font("å¾®č½Æé é»", 11F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), Text = "0" }; TrackBar trackBar = new TrackBar { Location = new Point(panel.Width - 150, 0), Size = new Size(150, 45), Maximum = 180, Minimum = -180, Value = 0, TickFrequency = 30, }; trackBar.ValueChanged += new EventHandler(delegate(object sender, EventArgs e) { textBox.Text = trackBar.Value.ToString(); pictureBox.Image = (Image)PngUtil.RelativeChangeColor((Bitmap)image, Convert.ToInt32(trackBar.Value) + 180); pictureBox.Refresh(); GlobalConfig.Controller.ShowGroupOnCenterBoard(tabPanel, property.GetGroup()); }); panel.Controls.Add(textBox); panel.Controls.Add(trackBar); } }
//private void CoolDownTimer_Elapsed(object sender, ElapsedEventArgs e) //{ // lock (_syncRoot) // { // var timer = (Timer) sender; // timer.Stop(); // // Cooldown complete. Allow new updates again. // _isUpdateReady = true; // // Update automatically once more if updates were missing while waiting for cooldown. // if (_isMissingUpdates) // { // _isMissingUpdates = false; // BeginInvoke(new Action(FireUpdated)); // } // } //} private static void InternalRangeToUserRange(ConvertEventArgs e, TrackBar slider, TextBox minTextBox, TextBox maxTextBox) { e.Value = GetPIDValue(slider, minTextBox, maxTextBox); }
public MForm4() { Text = "Player"; Size = new Size(350, 280); MainMenu mainMenu = new MainMenu(); MenuItem file = mainMenu.MenuItems.Add("&File"); MenuItem playm = mainMenu.MenuItems.Add("&Play"); MenuItem view = mainMenu.MenuItems.Add("&View"); MenuItem tools = mainMenu.MenuItems.Add("&Tools"); MenuItem favourites = mainMenu.MenuItems.Add("&Favourites"); MenuItem help = mainMenu.MenuItems.Add("&Help"); file.MenuItems.Add(new MenuItem("E&xit", new EventHandler(this.OnExit), Shortcut.CtrlX)); Menu = mainMenu; Panel panel = new Panel(); panel.Parent = this; panel.BackColor = Color.Black; panel.Dock = DockStyle.Fill; Panel buttonPanel = new Panel(); buttonPanel.Parent = this; buttonPanel.Height = 40; buttonPanel.Dock = DockStyle.Bottom; Button pause = new Button(); pause.FlatStyle = FlatStyle.Popup; pause.Parent = buttonPanel; pause.Location = new Point(5, 10); pause.Size = new Size(25, 25); pause.Image = new Bitmap("pause.png"); Button play = new Button(); play.FlatStyle = FlatStyle.Popup; play.Parent = buttonPanel; play.Location = new Point(35, 10); play.Size = new Size(25, 25); play.Image = new Bitmap("play.png"); Button forward = new Button(); forward.FlatStyle = FlatStyle.Popup; forward.Parent = buttonPanel; forward.Location = new Point(80, 10); forward.Size = new Size(25, 25); forward.Image = new Bitmap("forward.png"); Button backward = new Button(); backward.FlatStyle = FlatStyle.Popup; backward.Parent = buttonPanel; backward.Location = new Point(110, 10); backward.Size = new Size(25, 25); backward.Image = new Bitmap("backward.png"); TrackBar tb = new TrackBar(); tb.Parent = buttonPanel; tb.TickStyle = TickStyle.None; tb.Size = new Size(150, 25); tb.Location = new Point(200, 10); tb.Anchor = AnchorStyles.Right; Button audio = new Button(); audio.FlatStyle = FlatStyle.Popup; audio.Parent = buttonPanel; audio.Size = new Size(25, 25); audio.Image = new Bitmap("audio.png"); audio.Location = new Point(170, 10); audio.Anchor = AnchorStyles.Right; StatusBar sb = new StatusBar(); sb.Parent = this; sb.Text = "Ready"; CenterToScreen(); }
public void changeData(TrackBar value) { label1.Text = value.Value.ToString() + " Km/h"; valBar = value.Value; }
private void InitializeComponent() { this._trackBar = new TrackBar(); this._textBox = new TextBox(); this._label = new Label(); this._panelText = new Panel(); ((ISupportInitialize)(this._trackBar)).BeginInit(); this.SuspendLayout(); // // _trackBar // this._trackBar.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Right))); this._trackBar.LargeChange = 16; this._trackBar.Location = new Point(33, 3); this._trackBar.Maximum = 255; this._trackBar.Name = "_trackBar"; this._trackBar.Orientation = Orientation.Vertical; this._trackBar.Size = new Size(45, 229); this._trackBar.TabIndex = 1; this._trackBar.TickFrequency = 16; this._trackBar.TickStyle = TickStyle.Both; this._trackBar.Scroll += new EventHandler(this.trackBar_Scroll); // // _textBox // this._textBox.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right))); this._textBox.Location = new Point(38, 238); this._textBox.Name = "_textBox"; this._textBox.Size = new Size(35, 20); this._textBox.TabIndex = 2; this._textBox.Text = "0"; this._textBox.KeyPress += new KeyPressEventHandler(this.textBox_KeyPress); this._textBox.Leave += new EventHandler(this.textBox_Leave); // // _label // this._label.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right))); this._label.AutoSize = true; this._label.Location = new Point(40, 261); this._label.Name = "_label"; this._label.Size = new Size(21, 13); this._label.TabIndex = 3; this._label.Text = "0%"; // // _panelText // this._panelText.BackColor = Color.Gainsboro; this._panelText.Dock = DockStyle.Left; this._panelText.Enabled = false; this._panelText.Font = new Font("Arial", 8.25F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))); this._panelText.Location = new Point(0, 0); this._panelText.Name = "_panelText"; this._panelText.Size = new Size(18, 284); this._panelText.TabIndex = 5; this._panelText.EnabledChanged += new EventHandler(this.panelText_EnabledChanged); this._panelText.Click += new EventHandler(this.panelText_Click); this._panelText.Paint += new PaintEventHandler(this.panelText_Paint); // // ConsoleTrackBar // this.AutoScaleDimensions = new SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this._panelText); this.Controls.Add(this._label); this.Controls.Add(this._textBox); this.Controls.Add(this._trackBar); this.Name = "ConsoleTrackBar"; this.Size = new Size(90, 284); ((ISupportInitialize)(this._trackBar)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void VolumeTrackBarScrollHandler(object sender, EventArgs e) { TrackBar trackBar = (TrackBar)sender; ttVolume.SetToolTip(trackBar, trackBar.Value.ToString()); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.lblBlue = new System.Windows.Forms.Label(); this.lblGreen = new System.Windows.Forms.Label(); this.lblRed = new System.Windows.Forms.Label(); this.lblValue = new System.Windows.Forms.Label(); this.lblSaturation = new System.Windows.Forms.Label(); this.lblHue = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOk = new System.Windows.Forms.Button(); this.pnlColor = new System.Windows.Forms.Panel(); this.label5 = new System.Windows.Forms.Label(); this.pnlBrightness = new System.Windows.Forms.Panel(); this.lblAlpha = new System.Windows.Forms.Label(); this.tbHexCode = new System.Windows.Forms.TextBox(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.tbHue = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.tbSaturation = new System.Windows.Forms.TrackBar(); this.label2 = new System.Windows.Forms.Label(); this.tbValue = new System.Windows.Forms.TrackBar(); this.label3 = new System.Windows.Forms.Label(); this.tbRed = new System.Windows.Forms.TrackBar(); this.label4 = new System.Windows.Forms.Label(); this.tbGreen = new System.Windows.Forms.TrackBar(); this.label6 = new System.Windows.Forms.Label(); this.tbBlue = new System.Windows.Forms.TrackBar(); this.label7 = new System.Windows.Forms.Label(); this.tbAlpha = new System.Windows.Forms.TrackBar(); this.pnlSelectedColor = new System.Windows.Forms.Panel(); this.flowLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbHue)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbSaturation)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbValue)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbRed)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).BeginInit(); this.SuspendLayout(); // // lblBlue // this.lblBlue.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblBlue.Location = new System.Drawing.Point(322, 181); this.lblBlue.Name = "lblBlue"; this.lblBlue.Size = new System.Drawing.Size(39, 23); this.lblBlue.TabIndex = 54; this.lblBlue.Text = "Blue"; this.lblBlue.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblGreen // this.lblGreen.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblGreen.Location = new System.Drawing.Point(322, 146); this.lblGreen.Name = "lblGreen"; this.lblGreen.Size = new System.Drawing.Size(39, 23); this.lblGreen.TabIndex = 53; this.lblGreen.Text = "Green"; this.lblGreen.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblRed // this.lblRed.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblRed.Location = new System.Drawing.Point(322, 111); this.lblRed.Name = "lblRed"; this.lblRed.Size = new System.Drawing.Size(39, 23); this.lblRed.TabIndex = 52; this.lblRed.Text = "Red"; this.lblRed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblValue // this.lblValue.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblValue.Location = new System.Drawing.Point(322, 70); this.lblValue.Name = "lblValue"; this.lblValue.Size = new System.Drawing.Size(39, 23); this.lblValue.TabIndex = 51; this.lblValue.Text = "Value"; this.lblValue.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblSaturation // this.lblSaturation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblSaturation.Location = new System.Drawing.Point(322, 35); this.lblSaturation.Name = "lblSaturation"; this.lblSaturation.Size = new System.Drawing.Size(39, 23); this.lblSaturation.TabIndex = 50; this.lblSaturation.Text = "Sat"; this.lblSaturation.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblHue // this.lblHue.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblHue.Location = new System.Drawing.Point(322, 8); this.lblHue.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.lblHue.Name = "lblHue"; this.lblHue.Size = new System.Drawing.Size(41, 23); this.lblHue.TabIndex = 49; this.lblHue.Text = "Hue"; this.lblHue.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Location = new System.Drawing.Point(295, 35); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(96, 22); this.btnCancel.TabIndex = 42; this.btnCancel.Text = "Cancel"; // // btnOk // this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOk.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnOk.Location = new System.Drawing.Point(295, 8); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(96, 22); this.btnOk.TabIndex = 41; this.btnOk.Text = "OK"; // // pnlColor // this.pnlColor.Location = new System.Drawing.Point(5, 8); this.pnlColor.Name = "pnlColor"; this.pnlColor.Size = new System.Drawing.Size(224, 216); this.pnlColor.TabIndex = 38; this.pnlColor.Visible = false; // // label5 // this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(3, 8); this.label5.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(72, 18); this.label5.TabIndex = 35; this.label5.Text = "Hue"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // pnlBrightness // this.pnlBrightness.Location = new System.Drawing.Point(254, 8); this.pnlBrightness.Name = "pnlBrightness"; this.pnlBrightness.Size = new System.Drawing.Size(24, 216); this.pnlBrightness.TabIndex = 39; this.pnlBrightness.Visible = false; // // lblAlpha // this.lblAlpha.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblAlpha.Location = new System.Drawing.Point(322, 222); this.lblAlpha.Name = "lblAlpha"; this.lblAlpha.Size = new System.Drawing.Size(39, 24); this.lblAlpha.TabIndex = 57; this.lblAlpha.Text = "Alpha"; this.lblAlpha.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // tbHexCode // this.tbHexCode.BackColor = System.Drawing.Color.White; this.tbHexCode.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbHexCode.Location = new System.Drawing.Point(295, 122); this.tbHexCode.MaxLength = 8; this.tbHexCode.Name = "tbHexCode"; this.tbHexCode.ReadOnly = true; this.tbHexCode.Size = new System.Drawing.Size(96, 20); this.tbHexCode.TabIndex = 58; this.tbHexCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tbHexCode.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TbHexCodeMouseDown); // // flowLayoutPanel1 // this.flowLayoutPanel1.Controls.Add(this.label5); this.flowLayoutPanel1.Controls.Add(this.tbHue); this.flowLayoutPanel1.Controls.Add(this.lblHue); this.flowLayoutPanel1.Controls.Add(this.label1); this.flowLayoutPanel1.Controls.Add(this.tbSaturation); this.flowLayoutPanel1.Controls.Add(this.lblSaturation); this.flowLayoutPanel1.Controls.Add(this.label2); this.flowLayoutPanel1.Controls.Add(this.tbValue); this.flowLayoutPanel1.Controls.Add(this.lblValue); this.flowLayoutPanel1.Controls.Add(this.label3); this.flowLayoutPanel1.Controls.Add(this.tbRed); this.flowLayoutPanel1.Controls.Add(this.lblRed); this.flowLayoutPanel1.Controls.Add(this.label4); this.flowLayoutPanel1.Controls.Add(this.tbGreen); this.flowLayoutPanel1.Controls.Add(this.lblGreen); this.flowLayoutPanel1.Controls.Add(this.label6); this.flowLayoutPanel1.Controls.Add(this.tbBlue); this.flowLayoutPanel1.Controls.Add(this.lblBlue); this.flowLayoutPanel1.Controls.Add(this.label7); this.flowLayoutPanel1.Controls.Add(this.tbAlpha); this.flowLayoutPanel1.Controls.Add(this.lblAlpha); this.flowLayoutPanel1.Location = new System.Drawing.Point(5, 232); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; this.flowLayoutPanel1.Size = new System.Drawing.Size(386, 261); this.flowLayoutPanel1.TabIndex = 59; // // tbHue // this.tbHue.AutoSize = false; this.tbHue.LargeChange = 16; this.tbHue.Location = new System.Drawing.Point(78, 3); this.tbHue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbHue.Maximum = 255; this.tbHue.Name = "tbHue"; this.tbHue.Size = new System.Drawing.Size(238, 32); this.tbHue.TabIndex = 36; this.tbHue.TickFrequency = 32; this.tbHue.Scroll += new System.EventHandler(this.HandleHSVScroll); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(3, 43); this.label1.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 18); this.label1.TabIndex = 38; this.label1.Text = "Saturation"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbSaturation // this.tbSaturation.AutoSize = false; this.tbSaturation.LargeChange = 16; this.tbSaturation.Location = new System.Drawing.Point(78, 38); this.tbSaturation.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbSaturation.Maximum = 255; this.tbSaturation.Name = "tbSaturation"; this.tbSaturation.Size = new System.Drawing.Size(238, 32); this.tbSaturation.TabIndex = 39; this.tbSaturation.TickFrequency = 32; this.tbSaturation.Scroll += new System.EventHandler(this.HandleHSVScroll); // // label2 // this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(3, 78); this.label2.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(72, 18); this.label2.TabIndex = 40; this.label2.Text = "Value"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbValue // this.tbValue.AutoSize = false; this.tbValue.LargeChange = 16; this.tbValue.Location = new System.Drawing.Point(78, 73); this.tbValue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 6); this.tbValue.Maximum = 255; this.tbValue.Name = "tbValue"; this.tbValue.Size = new System.Drawing.Size(238, 32); this.tbValue.TabIndex = 41; this.tbValue.TickFrequency = 32; this.tbValue.Scroll += new System.EventHandler(this.HandleHSVScroll); // // label3 // this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(3, 119); this.label3.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 18); this.label3.TabIndex = 42; this.label3.Text = "Red"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbRed // this.tbRed.AutoSize = false; this.tbRed.LargeChange = 16; this.tbRed.Location = new System.Drawing.Point(78, 114); this.tbRed.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbRed.Maximum = 255; this.tbRed.Name = "tbRed"; this.tbRed.Size = new System.Drawing.Size(238, 32); this.tbRed.TabIndex = 43; this.tbRed.TickFrequency = 32; this.tbRed.Scroll += new System.EventHandler(this.HandleRGBScroll); // // label4 // this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(3, 154); this.label4.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(72, 18); this.label4.TabIndex = 44; this.label4.Text = "Green"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbGreen // this.tbGreen.AutoSize = false; this.tbGreen.LargeChange = 16; this.tbGreen.Location = new System.Drawing.Point(78, 149); this.tbGreen.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbGreen.Maximum = 255; this.tbGreen.Name = "tbGreen"; this.tbGreen.Size = new System.Drawing.Size(238, 32); this.tbGreen.TabIndex = 45; this.tbGreen.TickFrequency = 32; this.tbGreen.Scroll += new System.EventHandler(this.HandleRGBScroll); // // label6 // this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(3, 189); this.label6.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(72, 18); this.label6.TabIndex = 46; this.label6.Text = "Blue"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbBlue // this.tbBlue.AutoSize = false; this.tbBlue.LargeChange = 16; this.tbBlue.Location = new System.Drawing.Point(78, 184); this.tbBlue.Margin = new System.Windows.Forms.Padding(0, 3, 3, 6); this.tbBlue.Maximum = 255; this.tbBlue.Name = "tbBlue"; this.tbBlue.Size = new System.Drawing.Size(238, 32); this.tbBlue.TabIndex = 47; this.tbBlue.TickFrequency = 32; this.tbBlue.Scroll += new System.EventHandler(this.HandleRGBScroll); // // label7 // this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(3, 230); this.label7.Margin = new System.Windows.Forms.Padding(3, 8, 3, 0); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(72, 18); this.label7.TabIndex = 55; this.label7.Text = "Alpha"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbAlpha // this.tbAlpha.AutoSize = false; this.tbAlpha.LargeChange = 16; this.tbAlpha.Location = new System.Drawing.Point(78, 225); this.tbAlpha.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); this.tbAlpha.Maximum = 255; this.tbAlpha.Name = "tbAlpha"; this.tbAlpha.Size = new System.Drawing.Size(238, 32); this.tbAlpha.TabIndex = 56; this.tbAlpha.TickFrequency = 32; this.tbAlpha.Scroll += new System.EventHandler(this.TbAlphaScroll); // // pnlSelectedColor // this.pnlSelectedColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.pnlSelectedColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pnlSelectedColor.Location = new System.Drawing.Point(295, 84); this.pnlSelectedColor.Name = "pnlSelectedColor"; this.pnlSelectedColor.Size = new System.Drawing.Size(96, 32); this.pnlSelectedColor.TabIndex = 40; this.pnlSelectedColor.Visible = false; // // ColorChooser // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(398, 501); this.Controls.Add(this.tbHexCode); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOk); this.Controls.Add(this.pnlColor); this.Controls.Add(this.pnlSelectedColor); this.Controls.Add(this.pnlBrightness); this.Controls.Add(this.flowLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ColorChooser"; this.ShowInTaskbar = false; this.Text = "Select Color"; this.Load += new System.EventHandler(this.ColorChooserLoad); this.Paint += new System.Windows.Forms.PaintEventHandler(this.ColorChooserPaint); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.HandleMouse); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.HandleMouse); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FormMainMouseUp); this.flowLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tbHue)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbSaturation)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbValue)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbRed)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbAlpha)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public static void SetValue(this TrackBar tb, int number) { tb.Value = number.Clamp(tb.Minimum, tb.Maximum); }
private void trackbar_ValueChanged(object sender, EventArgs e) { TrackBar something = (TrackBar)sender; setTrackbarErrors(something); }
private static void RefreshValue(TrackBar hsv, int value) { hsv.Value = value; }
public static void SetTrackBarValueCapped(TrackBar trackBar, double value) { int newValue = (int)MoreMath.Clamp(value, trackBar.Minimum, trackBar.Maximum); trackBar.Value = newValue; }
private unsafe void RegisterThreshold(string valuename, ref double thresh, double max, double initialValue) { fixed (double* ptr = &thresh) { thresh = initialValue; TrackBar tcb = new TrackBar(ptr); tcb.Max = max; tcb.Margin = new Thickness(5); tcb.ValueName = valuename; initialValue = initialValue > max ? max : initialValue; tcb.Value = initialValue; SPn_right.Children.Add(tcb); } }
public TaskControls(Manager manager) : base(manager) { MinimumWidth = 340; MinimumHeight = 140; Height = 480; Center(); Text = "Controls Test"; TopPanel.Visible = true; Caption.Text = "Information"; Description.Text = "Demonstration of various controls available in Window Library"; Caption.TextColor = Description.TextColor = new Color(96, 96, 96); grpEdit = new GroupPanel(Manager); grpEdit.Init(); grpEdit.Parent = this; grpEdit.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; grpEdit.Width = ClientWidth - 200; grpEdit.Height = 160; grpEdit.Left = 8; grpEdit.Top = TopPanel.Height + 8; grpEdit.Text = "EditBox"; pnlControls = new Panel(Manager); pnlControls.Init(); pnlControls.Passive = true; pnlControls.Parent = this; pnlControls.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; pnlControls.Left = 8; pnlControls.Top = grpEdit.Top + grpEdit.Height + 8; pnlControls.Width = ClientWidth - 200; pnlControls.Height = BottomPanel.Top - 32 - pnlControls.Top; pnlControls.BevelBorder = EBevelBorder.All; pnlControls.BevelMargin = 1; pnlControls.BevelStyle = EBevelStyle.Etched; pnlControls.Color = Color.Transparent; lblEdit = new Label(manager); lblEdit.Init(); lblEdit.Parent = grpEdit; lblEdit.Left = 16; lblEdit.Top = 8; lblEdit.Text = "Testing field:"; lblEdit.Width = 128; lblEdit.Height = 16; txtEdit = new TextBox(manager); txtEdit.Init(); txtEdit.Parent = grpEdit; txtEdit.Left = 16; txtEdit.Top = 24; txtEdit.Width = grpEdit.ClientWidth - 32; txtEdit.Height = 20; txtEdit.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right | EAnchors.Bottom; txtEdit.Text = "Text"; rdbNormal = new RadioButton(manager); rdbNormal.Init(); rdbNormal.Parent = grpEdit; rdbNormal.Left = 16; rdbNormal.Top = 52; rdbNormal.Width = grpEdit.ClientWidth - 32; rdbNormal.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right; rdbNormal.Checked = true; rdbNormal.Text = "Normal mode"; rdbNormal.ToolTip.Text = "Enables normal mode for TextBox control."; rdbNormal.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(ModeChanged); rdbPassword = new RadioButton(manager); rdbPassword.Init(); rdbPassword.Parent = grpEdit; rdbPassword.Left = 16; rdbPassword.Top = 68; rdbPassword.Width = grpEdit.ClientWidth - 32; rdbPassword.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right; rdbPassword.Checked = false; rdbPassword.Text = "Password mode"; rdbPassword.ToolTip.Text = "Enables password mode for TextBox control."; rdbPassword.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(ModeChanged); chkBorders = new CheckBox(manager); chkBorders.Init(); chkBorders.Parent = grpEdit; chkBorders.Left = 16; chkBorders.Top = 96; chkBorders.Width = grpEdit.ClientWidth - 32; chkBorders.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right; chkBorders.Checked = false; chkBorders.Text = "Borderless mode"; chkBorders.ToolTip.Text = "Enables or disables borderless mode for TextBox control."; chkBorders.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(chkBorders_CheckedChanged); chkReadOnly = new CheckBox(manager); chkReadOnly.Init(); chkReadOnly.Parent = grpEdit; chkReadOnly.Left = 16; chkReadOnly.Top = 110; chkReadOnly.Width = grpEdit.ClientWidth - 32; chkReadOnly.Anchor = EAnchors.Left | EAnchors.Bottom | EAnchors.Right; chkReadOnly.Checked = false; chkReadOnly.Text = "Read only mode"; chkReadOnly.ToolTip.Text = "Enables or disables read only mode for TextBox control.\nThis mode is necessary to enable explicitly."; chkReadOnly.CheckedChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(chkReadOnly_CheckedChanged); string[] colors = new string[] {"Red", "Green", "Blue", "Yellow", "Orange", "Purple", "White", "Black", "Magenta", "Cyan", "Brown", "Aqua", "Beige", "Coral", "Crimson", "Gray", "Azure", "Ivory", "Indigo", "Khaki", "Orchid", "Plum", "Salmon", "Silver", "Gold", "Pink", "Linen", "Lime", "Olive", "Slate"}; spnMain = new SpinBox(manager, ESpinBoxMode.List); spnMain.Init(); spnMain.Parent = pnlControls; spnMain.Left = 16; spnMain.Top = 16; spnMain.Width = pnlControls.Width - 32; spnMain.Height = 20; spnMain.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; spnMain.Items.AddRange(colors); spnMain.Mode = ESpinBoxMode.Range; spnMain.ItemIndex = 0; cmbMain = new ComboBox(manager); cmbMain.Init(); cmbMain.Parent = pnlControls; cmbMain.Left = 16; cmbMain.Top = 44; cmbMain.Width = pnlControls.Width - 32; cmbMain.Height = 20; cmbMain.ReadOnly = true; cmbMain.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; cmbMain.Items.AddRange(colors); cmbMain.ItemIndex = 0; cmbMain.MaxItems = 5; cmbMain.ToolTip.Color = Color.Yellow; cmbMain.Movable = cmbMain.Resizable = true; cmbMain.OutlineMoving = cmbMain.OutlineResizing = true; trkMain = new TrackBar(manager); trkMain.Init(); trkMain.Parent = pnlControls; trkMain.Left = 16; trkMain.Top = 72; trkMain.Width = pnlControls.Width - 32; trkMain.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; trkMain.Range = 64; trkMain.Value = 16; trkMain.ValueChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(trkMain_ValueChanged); lblTrack = new Label(manager); lblTrack.Init(); lblTrack.Parent = pnlControls; lblTrack.Left = 16; lblTrack.Top = 96; lblTrack.Width = pnlControls.Width - 32; lblTrack.Anchor = EAnchors.Left | EAnchors.Top | EAnchors.Right; lblTrack.Alignment = EAlignment.TopRight; lblTrack.TextColor = new Color(32, 32, 32); trkMain_ValueChanged(this, null); // forcing label redraw with init values mnuListBox = new ContextMenu(manager); MenuItem i1 = new MenuItem("This is very long text"); MenuItem i2 = new MenuItem("Menu", true); MenuItem i3 = new MenuItem("Item", false); //i3.Enabled = false; MenuItem i4 = new MenuItem("Separated", true); MenuItem i11 = new MenuItem(); MenuItem i12 = new MenuItem(); MenuItem i13 = new MenuItem(); MenuItem i14 = new MenuItem(); MenuItem i111 = new MenuItem(); MenuItem i112 = new MenuItem(); MenuItem i113 = new MenuItem(); mnuListBox.Items.AddRange(new MenuItem[] { i1, i2, i3, i4 }); i2.Items.AddRange(new MenuItem[] { i11, i12, i13, i14 }); i13.Items.AddRange(new MenuItem[] { i111, i112, i113 }); lstMain = new ListBox(manager); lstMain.Init(); lstMain.Parent = this; lstMain.Top = TopPanel.Height + 8; lstMain.Left = grpEdit.Left + grpEdit.Width + 8; lstMain.Width = ClientWidth - lstMain.Left - 8; lstMain.Height = ClientHeight - 16 - BottomPanel.Height - TopPanel.Height; lstMain.Anchor = EAnchors.Top | EAnchors.Right | EAnchors.Bottom; lstMain.HideSelection = false; lstMain.Items.AddRange(colors); lstMain.ContextMenu = mnuListBox; prgMain = new ProgressBar(manager); prgMain.Init(); prgMain.Parent = this.BottomPanel; prgMain.Left = lstMain.Left; prgMain.Top = 10; prgMain.Width = lstMain.Width; prgMain.Height = 16; prgMain.Anchor = EAnchors.Top | EAnchors.Right; prgMain.Mode = EProgressBarMode.Infinite; prgMain.Passive = false; btnDisable = new Button(manager); btnDisable.Init(); btnDisable.Parent = BottomPanel; btnDisable.Left = 8; btnDisable.Top = 8; btnDisable.Text = "Disable"; btnDisable.Click += new Controls.EventHandler(btnDisable_Click); btnDisable.TextColor = Color.FromNonPremultiplied(255, 64, 32, 200); btnProgress = new Button(manager); btnProgress.Init(); btnProgress.Parent = BottomPanel; btnProgress.Left = prgMain.Left - 16; btnProgress.Top = prgMain.Top; btnProgress.Height = 16; btnProgress.Width = 16; btnProgress.Text = "!"; btnProgress.Anchor = EAnchors.Top | EAnchors.Right; btnProgress.Click += new Controls.EventHandler(btnProgress_Click); mnuMain = new MainMenu(manager); mnuMain.Items.Add(i2); mnuMain.Items.Add(i13); mnuMain.Items.Add(i3); mnuMain.Items.Add(i4); MainMenu = mnuMain; ToolBarPanel tlp = new ToolBarPanel(manager); ToolBarPanel = tlp; ToolBar tlb = new ToolBar(manager); ToolBar tlbx = new ToolBar(manager); tlb.FullRow = true; tlbx.Row = 1; tlbx.FullRow = false; tlp.Add(tlb); tlp.Add(tlbx); /* tlb.Init(); tlb.Width = 256; tlb.Parent = ToolBarPanel;*/ //tlbx.Init(); /* tlbx.Width = 512; tlbx.Top = 25; tlbx.Parent = ToolBarPanel;*/ /* ToolBarButton tb1 = new ToolBarButton(manager); tb1.Init(); tb1.Parent = tlb; tb1.Left = 10; tb1.Top = 1; tb1.Glyph = new Glyph(Manager.Skin.Images["Icon.Warning"].Resource); tb1.Glyph.SizeMode = SizeMode.Stretched; */ StatusBar stb = new StatusBar(Manager); StatusBar = stb; DefaultControl = txtEdit; OutlineMoving = true; OutlineResizing = true; BottomPanel.BringToFront(); SkinChanged += new GodLesZ.Library.XNA.WindowLibrary.Controls.EventHandler(TaskControls_SkinChanged); TaskControls_SkinChanged(null, null); }
public MainForm () { // // _trackBar // _trackBar = new TrackBar (); _trackBar.Dock = DockStyle.Top; _trackBar.Height = 50; _trackBar.Scroll += new EventHandler (TrackBar_Scroll); Controls.Add (_trackBar); // // _eventsText // _eventsText = new TextBox (); _eventsText.Dock = DockStyle.Bottom; _eventsText.Height = 100; _eventsText.Multiline = true; _eventsText.ScrollBars = ScrollBars.Vertical; Controls.Add (_eventsText); // // MainForm // ClientSize = new Size (300, 155); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82718"; Load += new EventHandler (MainForm_Load); }