public MainForm () { components = new Container (); ComponentResourceManager resources = new ComponentResourceManager (typeof (MainForm)); menuStrip = new MenuStrip (); fileMenu = new ToolStripMenuItem (); openToolStripMenuItem = new ToolStripMenuItem (); reopenToolStripMenuItem = new ToolStripMenuItem (); closeToolStripMenuItem = new ToolStripMenuItem (); snipperToolStripMenuItem = new ToolStripMenuItem (); toolStripSeparator4 = new ToolStripSeparator (); exitToolStripMenuItem = new ToolStripMenuItem (); copyToolStripMenuItem = new ToolStripMenuItem (); viewMenu = new ToolStripMenuItem (); editMenu = new ToolStripMenuItem (); toolBarToolStripMenuItem = new ToolStripMenuItem (); statusBarToolStripMenuItem = new ToolStripMenuItem (); sourceViewToolStripMenuItem = new ToolStripMenuItem (); timeZoneToolStripMenuItem = new ToolStripMenuItem (); timeZoneMyLocalToolStripMenuItem = new ToolStripMenuItem (); timeZoneLogLocalToolStripMenuItem = new ToolStripMenuItem (); timeZoneUniversalToolStripMenuItem = new ToolStripMenuItem (); timeZoneCycleToolStripMenuItem = new ToolStripMenuItem (); toolsMenu = new ToolStripMenuItem (); optionsToolStripMenuItem = new ToolStripMenuItem (); traceConfigToolStripMenuItem = new ToolStripMenuItem (); windowsMenu = new ToolStripMenuItem (); cascadeToolStripMenuItem = new ToolStripMenuItem (); tileVerticalToolStripMenuItem = new ToolStripMenuItem (); tileHorizontalToolStripMenuItem = new ToolStripMenuItem (); closeAllToolStripMenuItem = new ToolStripMenuItem (); arrangeIconsToolStripMenuItem = new ToolStripMenuItem (); helpMenu = new ToolStripMenuItem (); contentsToolStripMenuItem = new ToolStripMenuItem (); indexToolStripMenuItem = new ToolStripMenuItem (); searchToolStripMenuItem = new ToolStripMenuItem (); toolStripSeparator8 = new ToolStripSeparator (); aboutToolStripMenuItem = new ToolStripMenuItem (); toolStrip = new ToolStrip (); newToolStripButton = new ToolStripButton (); openToolStripButton = new ToolStripButton (); saveToolStripButton = new ToolStripButton (); toolStripSeparator1 = new ToolStripSeparator (); printToolStripButton = new ToolStripButton (); printPreviewToolStripButton = new ToolStripButton (); helpToolStripButton = new ToolStripButton (); statusStrip = new StatusStrip (); toolStripStatusLabel = new ToolStripStatusLabel (); menuStrip.SuspendLayout (); toolStrip.SuspendLayout (); statusStrip.SuspendLayout (); SuspendLayout (); // // menuStrip // menuStrip.Items.AddRange (new ToolStripItem [] { fileMenu, editMenu, viewMenu, toolsMenu, windowsMenu, helpMenu}); menuStrip.Location = new Point (0, 0); menuStrip.MdiWindowListItem = windowsMenu; menuStrip.Size = new Size (632, 24); menuStrip.TabIndex = 0; menuStrip.Text = "MenuStrip"; // // fileMenu // fileMenu.DropDownItems.AddRange (new ToolStripItem [] { openToolStripMenuItem, reopenToolStripMenuItem, closeToolStripMenuItem, snipperToolStripMenuItem, toolStripSeparator4, exitToolStripMenuItem}); fileMenu.ImageTransparentColor = SystemColors.ActiveBorder; fileMenu.Size = new Size (35, 20); fileMenu.MergeAction = MergeAction.Append; fileMenu.MergeIndex = 1; fileMenu.Text = "&File"; // // openToolStripMenuItem // openToolStripMenuItem.Image = ((Image) (resources.GetObject ("openToolStripMenuItem.Image"))); openToolStripMenuItem.ImageTransparentColor = Color.Black; openToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.O))); openToolStripMenuItem.Size = new Size (151, 22); openToolStripMenuItem.Text = "&Open"; openToolStripMenuItem.Click += new System.EventHandler (OpenFile); openToolStripMenuItem.MergeAction = MergeAction.Append; openToolStripMenuItem.MergeIndex = 2; // // reopenToolStripMenuItem // reopenToolStripMenuItem.Image = ((Image) (resources.GetObject ("openToolStripMenuItem.Image"))); reopenToolStripMenuItem.ImageTransparentColor = Color.Black; reopenToolStripMenuItem.Size = new Size (151, 22); reopenToolStripMenuItem.Text = "&Reopen"; reopenToolStripMenuItem.MergeAction = MergeAction.Append; reopenToolStripMenuItem.MergeIndex = 3; // // closeToolStripMenuItem // //is.closeToolStripMenuItem.Image = ((Image)(resources.GetObject("saveToolStripMenuItem.Image"))); closeToolStripMenuItem.ImageTransparentColor = Color.Black; //is.closeToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control | Keys.S))); closeToolStripMenuItem.Size = new Size (151, 22); closeToolStripMenuItem.Text = "&Close"; closeToolStripMenuItem.MergeAction = MergeAction.Append; closeToolStripMenuItem.MergeIndex = 5; // // snipperToolStripMenuItem // snipperToolStripMenuItem.Size = new Size (151, 22); snipperToolStripMenuItem.Text = "Snip/Merge Log File(s)..."; snipperToolStripMenuItem.MergeAction = MergeAction.Append; snipperToolStripMenuItem.MergeIndex = 6; // // toolStripSeparator4 // toolStripSeparator4.Size = new Size (148, 6); toolStripSeparator4.MergeAction = MergeAction.Append; toolStripSeparator4.MergeIndex = 7; // // exitToolStripMenuItem // exitToolStripMenuItem.Size = new Size (151, 22); exitToolStripMenuItem.Text = "E&xit"; exitToolStripMenuItem.Click += new System.EventHandler (ExitToolsStripMenuItem_Click); exitToolStripMenuItem.MergeAction = MergeAction.Append; exitToolStripMenuItem.MergeIndex = 11; // // editMenu // editMenu.DropDownItems.Add (copyToolStripMenuItem); editMenu.Size = new Size (41, 20); editMenu.Text = "&Edit"; editMenu.MergeAction = MergeAction.Append; // // copyToolStripMenuItem // copyToolStripMenuItem.MergeAction = MergeAction.Append; copyToolStripMenuItem.MergeIndex = 1; copyToolStripMenuItem.Size = new Size (190, 22); copyToolStripMenuItem.Text = "Copy"; copyToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+C"; copyToolStripMenuItem.ShowShortcutKeys = true; copyToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C; // // viewMenu // viewMenu.DropDownItems.AddRange (new ToolStripItem [] { toolBarToolStripMenuItem, statusBarToolStripMenuItem, sourceViewToolStripMenuItem, timeZoneToolStripMenuItem}); viewMenu.Size = new Size (41, 20); viewMenu.Text = "&View"; viewMenu.MergeAction = MergeAction.Append; // // toolBarToolStripMenuItem // toolBarToolStripMenuItem.Checked = true; toolBarToolStripMenuItem.CheckOnClick = true; toolBarToolStripMenuItem.CheckState = CheckState.Checked; toolBarToolStripMenuItem.Size = new Size (135, 22); toolBarToolStripMenuItem.Text = "&Toolbar"; toolBarToolStripMenuItem.Click += new System.EventHandler (ToolBarToolStripMenuItem_Click); toolBarToolStripMenuItem.MergeAction = MergeAction.Append; toolBarToolStripMenuItem.MergeIndex = 68; // // statusBarToolStripMenuItem // statusBarToolStripMenuItem.Checked = true; statusBarToolStripMenuItem.CheckOnClick = true; statusBarToolStripMenuItem.CheckState = CheckState.Checked; statusBarToolStripMenuItem.Size = new Size (135, 22); statusBarToolStripMenuItem.Text = "&Status Bar"; statusBarToolStripMenuItem.Click += new System.EventHandler (StatusBarToolStripMenuItem_Click); statusBarToolStripMenuItem.MergeAction = MergeAction.Append; statusBarToolStripMenuItem.MergeIndex = 99; // // sourceViewToolStripMenuItem // sourceViewToolStripMenuItem.Checked = true; sourceViewToolStripMenuItem.CheckOnClick = true; sourceViewToolStripMenuItem.CheckState = CheckState.Checked; sourceViewToolStripMenuItem.Size = new Size (135, 22); sourceViewToolStripMenuItem.Text = "Source &View"; sourceViewToolStripMenuItem.MergeAction = MergeAction.Append; sourceViewToolStripMenuItem.MergeIndex = 100; // // timeZoneToolStripMenuItem // timeZoneToolStripMenuItem.DropDownItems.AddRange (new ToolStripItem [] { timeZoneMyLocalToolStripMenuItem, timeZoneLogLocalToolStripMenuItem, timeZoneUniversalToolStripMenuItem, timeZoneCycleToolStripMenuItem}); timeZoneToolStripMenuItem.Size = new Size (41, 20); timeZoneToolStripMenuItem.Text = "Time Zone Setting"; timeZoneToolStripMenuItem.MergeAction = MergeAction.Append; timeZoneToolStripMenuItem.MergeIndex = 10; // // timeZoneMyLocalToolStripMenuItem // timeZoneMyLocalToolStripMenuItem.Size = new Size (135, 22); timeZoneMyLocalToolStripMenuItem.Text = "My &Local Time Zone"; timeZoneMyLocalToolStripMenuItem.MergeAction = MergeAction.Append; timeZoneMyLocalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T"; timeZoneMyLocalToolStripMenuItem.ShowShortcutKeys = true; timeZoneMyLocalToolStripMenuItem.ShortcutKeys = Keys.None; // // timeZoneLogLocalToolStripMenuItem // timeZoneLogLocalToolStripMenuItem.Size = new Size (135, 22); timeZoneLogLocalToolStripMenuItem.Text = "Log &Creator's Time Zone"; timeZoneLogLocalToolStripMenuItem.MergeAction = MergeAction.Append; timeZoneLogLocalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T"; timeZoneLogLocalToolStripMenuItem.ShowShortcutKeys = true; timeZoneLogLocalToolStripMenuItem.ShortcutKeys = Keys.None; // // timeZoneUniversalToolStripMenuItem // timeZoneUniversalToolStripMenuItem.Size = new Size (135, 22); timeZoneUniversalToolStripMenuItem.Text = "&Universal Coordinated Time"; timeZoneUniversalToolStripMenuItem.MergeAction = MergeAction.Append; timeZoneUniversalToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T"; timeZoneUniversalToolStripMenuItem.ShowShortcutKeys = true; timeZoneUniversalToolStripMenuItem.ShortcutKeys = Keys.None; // // timeZoneCycleToolStripMenuItem // timeZoneCycleToolStripMenuItem.Size = new Size (135, 22); timeZoneCycleToolStripMenuItem.Text = "Cycle Time Zones"; timeZoneCycleToolStripMenuItem.MergeAction = MergeAction.Append; timeZoneCycleToolStripMenuItem.Visible = false; timeZoneCycleToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+Shift+T"; timeZoneCycleToolStripMenuItem.ShowShortcutKeys = true; timeZoneCycleToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Shift | Keys.T; // // toolsMenu // toolsMenu.DropDownItems.AddRange (new ToolStripItem [] { optionsToolStripMenuItem, traceConfigToolStripMenuItem}); toolsMenu.Size = new Size (44, 20); toolsMenu.Text = "&Tools"; // // optionsToolStripMenuItem // optionsToolStripMenuItem.Size = new Size (122, 22); optionsToolStripMenuItem.Text = "&Options..."; // // traceConfigToolStripMenuItem // traceConfigToolStripMenuItem.Size = new Size (122, 22); traceConfigToolStripMenuItem.Text = "Launch Trace&Config"; // // windowsMenu // windowsMenu.DropDownItems.AddRange (new ToolStripItem [] { cascadeToolStripMenuItem, tileVerticalToolStripMenuItem, tileHorizontalToolStripMenuItem, closeAllToolStripMenuItem, arrangeIconsToolStripMenuItem}); windowsMenu.Size = new Size (62, 20); windowsMenu.Text = "&Windows"; // // cascadeToolStripMenuItem // cascadeToolStripMenuItem.Size = new Size (153, 22); cascadeToolStripMenuItem.Text = "&Cascade"; cascadeToolStripMenuItem.Click += new System.EventHandler (CascadeToolStripMenuItem_Click); // // tileVerticalToolStripMenuItem // tileVerticalToolStripMenuItem.Size = new Size (153, 22); tileVerticalToolStripMenuItem.Text = "Tile &Vertical"; // // tileHorizontalToolStripMenuItem // tileHorizontalToolStripMenuItem.Size = new Size (153, 22); tileHorizontalToolStripMenuItem.Text = "Tile &Horizontal"; tileHorizontalToolStripMenuItem.Click += new System.EventHandler (TileHorizontalToolStripMenuItem_Click); // // closeAllToolStripMenuItem // closeAllToolStripMenuItem.Size = new Size (153, 22); closeAllToolStripMenuItem.Text = "C&lose All"; closeAllToolStripMenuItem.Click += new System.EventHandler (CloseAllToolStripMenuItem_Click); // // arrangeIconsToolStripMenuItem // arrangeIconsToolStripMenuItem.Size = new Size (153, 22); arrangeIconsToolStripMenuItem.Text = "&Arrange Icons"; arrangeIconsToolStripMenuItem.Click += new System.EventHandler (ArrangeIconsToolStripMenuItem_Click); // // helpMenu // helpMenu.DropDownItems.AddRange (new ToolStripItem [] { contentsToolStripMenuItem, indexToolStripMenuItem, searchToolStripMenuItem, toolStripSeparator8, aboutToolStripMenuItem}); helpMenu.Size = new Size (40, 20); helpMenu.Text = "&Help"; // // contentsToolStripMenuItem // contentsToolStripMenuItem.ShortcutKeys = ((Keys) ((Keys.Control | Keys.F1))); contentsToolStripMenuItem.Size = new Size (173, 22); contentsToolStripMenuItem.Text = "&Contents"; // // indexToolStripMenuItem // indexToolStripMenuItem.Image = ((Image) (resources.GetObject ("indexToolStripMenuItem.Image"))); indexToolStripMenuItem.ImageTransparentColor = Color.Black; indexToolStripMenuItem.Size = new Size (173, 22); indexToolStripMenuItem.Text = "&Index"; // // searchToolStripMenuItem // searchToolStripMenuItem.Image = ((Image) (resources.GetObject ("searchToolStripMenuItem.Image"))); searchToolStripMenuItem.ImageTransparentColor = Color.Black; searchToolStripMenuItem.Size = new Size (173, 22); searchToolStripMenuItem.Text = "&Search"; // // toolStripSeparator8 // toolStripSeparator8.Size = new Size (170, 6); // // aboutToolStripMenuItem // aboutToolStripMenuItem.Size = new Size (173, 22); aboutToolStripMenuItem.Text = "&About ..."; // // toolStrip // toolStrip.Items.AddRange (new ToolStripItem [] { newToolStripButton, openToolStripButton, saveToolStripButton, toolStripSeparator1, printToolStripButton, printPreviewToolStripButton, helpToolStripButton}); toolStrip.Location = new Point (0, 24); toolStrip.Size = new Size (632, 25); toolStrip.TabIndex = 1; toolStrip.Text = "ToolStrip"; // // newToolStripButton // newToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; newToolStripButton.Image = ((Image) (resources.GetObject ("newToolStripButton.Image"))); newToolStripButton.ImageTransparentColor = Color.Black; newToolStripButton.Text = "New"; newToolStripButton.Click += new System.EventHandler (ShowNewForm); // // openToolStripButton // openToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; openToolStripButton.Image = ((Image) (resources.GetObject ("openToolStripButton.Image"))); openToolStripButton.ImageTransparentColor = Color.Black; openToolStripButton.Text = "Open"; openToolStripButton.Click += new System.EventHandler (OpenFile); // // saveToolStripButton // saveToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; saveToolStripButton.Image = ((Image) (resources.GetObject ("saveToolStripButton.Image"))); saveToolStripButton.ImageTransparentColor = Color.Black; saveToolStripButton.Text = "Save"; // // toolStripSeparator1 // // // printToolStripButton // printToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; printToolStripButton.Image = ((Image) (resources.GetObject ("printToolStripButton.Image"))); printToolStripButton.ImageTransparentColor = Color.Black; printToolStripButton.Text = "Print"; // // printPreviewToolStripButton // printPreviewToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; printPreviewToolStripButton.Image = ((Image) (resources.GetObject ("printPreviewToolStripButton.Image"))); printPreviewToolStripButton.ImageTransparentColor = Color.Black; printPreviewToolStripButton.Text = "Print Preview"; // // helpToolStripButton // helpToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; helpToolStripButton.Image = ((Image) (resources.GetObject ("helpToolStripButton.Image"))); helpToolStripButton.ImageTransparentColor = Color.Black; helpToolStripButton.Text = "Help"; // // statusStrip // statusStrip.Items.Add (toolStripStatusLabel); statusStrip.LayoutStyle = ToolStripLayoutStyle.Table; statusStrip.Location = new Point (0, 433); statusStrip.Size = new Size (632, 20); statusStrip.TabIndex = 2; statusStrip.Text = "StatusStrip"; // // toolStripStatusLabel // toolStripStatusLabel.Text = "Status"; // // MainForm // AutoScaleDimensions = new SizeF (6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size (400, 300); Controls.Add (statusStrip); Controls.Add (toolStrip); Controls.Add (menuStrip); IsMdiContainer = true; Location = new Point (200, 100); MainMenuStrip = menuStrip; StartPosition = FormStartPosition.Manual; Text = "bug #81477"; menuStrip.ResumeLayout (false); toolStrip.ResumeLayout (false); statusStrip.ResumeLayout (false); ResumeLayout (false); PerformLayout (); Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _updateButton // _updateButton = new Button (); _updateButton.Location = new Point (100, 25); _updateButton.Text = "&Update"; _updateButton.Click += UpdateButton_Click; Controls.Add (_updateButton); // // _statusScript // _statusScript = new StatusStrip (); _statusScript.Dock = DockStyle.Bottom; Controls.Add (_statusScript); // // _statusLabel // _statusLabel = new ToolStripStatusLabel (); _statusLabel.Size = new Size (0, 17); _statusScript.Items.Add (_statusLabel); // // MainForm // ClientSize = new Size (300, 100); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82723"; Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _statusScript // _statusScript = new StatusStrip (); _statusScript.Dock = DockStyle.Bottom; Controls.Add (_statusScript); // // _statusLabel // _statusLabel = new ToolStripStatusLabel (); _statusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; _statusLabel.Image = Image.FromFile ("AnimatedCompile.gif"); _statusLabel.ImageScaling = ToolStripItemImageScaling.None; _statusLabel.Margin = new Padding (2, 0, 2, 1); _statusLabel.Size = new Size (15, 21); _statusScript.Items.Add (_statusLabel); // // MainForm // ClientSize = new Size (300, 100); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82726"; Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _statusStrip // _statusStrip = new StatusStrip (); Controls.Add (_statusStrip); // // _progressBar // _progressBar = new ToolStripProgressBar (); _statusStrip.Items.Add (_progressBar); // // _statusLabel // _statusLabel = new ToolStripStatusLabel ("Begin"); _statusStrip.Items.Add (_statusLabel); // // _startButton // _startButton = new ToolStripButton (); _startButton.Text = "Start"; _startButton.Click += new EventHandler (StartButton_Click); _statusStrip.Items.Insert (0, _startButton); // // MainForm // ClientSize = new Size (300, 60); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82481"; Load += new EventHandler (MainForm_Load); }
public MyForm() { statusstrip1 = new StatusStrip(); toolstripstatuslabel1 = new ToolStripStatusLabel(); btn = new Button(); btn2 = new Button(); InitializeComponent(); }
public static void Initialize(StatusStrip statusbar) { foreach (ToolStripItem ti in statusbar.Items) { if (ti.GetType() == typeof(ToolStripStatusLabel) && ti.Name.ToLower().EndsWith("button")) { Initialize((ToolStripStatusLabel)ti); } } }
public StatusStripExam() { this.Text = "StatusStrip 예제"; ImageList imglst = new ImageList(); imglst.TransparentColor = Color.Black; imglst.Images.Add("Color", new Bitmap(GetType(), "StatusStripExam.ColorHS.BMP")); imglst.Images.Add("Comment", new Bitmap(GetType(), "StatusStripExam.CommentHS.bmp")); StatusStrip status = new StatusStrip(); status.Parent = this; status.ImageList = imglst; color_btn = new ToolStripButton(); color_btn.Image = imglst.Images[0]; color_btn.Click += EventProc; status.Items.Add(color_btn); comment_btn = new ToolStripButton(); comment_btn.ImageKey = "Comment"; comment_btn.Click += EventProc; status.Items.Add(comment_btn); // 메뉴 구분선 넣기 ToolStripSeparator item_sep = new ToolStripSeparator(); status.Items.Add(item_sep); txt_box = new ToolStripComboBox(); txt_box.ToolTipText = "글꼴 선택"; txt_box.Text = "글꼴 선택"; txt_box.Items.Add("궁서체"); txt_box.Items.Add("돋움체"); txt_box.Items.Add("바탕체"); status.Items.Add(txt_box); label = new ToolStripLabel(); label.Size = new Size(100, 10); status.Items.Add(label); // 프로그래스바 설정 prog_bar = new ToolStripProgressBar(); prog_bar.Size = new Size(100, 10); prog_bar.Maximum = 100; prog_bar.Minimum = 0; status.Items.Add(prog_bar); Timer timer = new Timer(); timer.Tick += new EventHandler(TimerProc); timer.Interval = 1000; timer.Start(); }
public MainForm () { // // _staStatus // _staStatus = new StatusStrip (); _staStatus.Dock = DockStyle.Bottom; _staStatus.Name = "Status Bar"; _staStatus.TabIndex = 0; Controls.Add (this._staStatus); // // _labelA // _labelA = new ToolStripStatusLabel (); _labelA.Text = "a"; _staStatus.Items.Add (_labelA); // // _labelB // _labelB = new ToolStripStatusLabel (); _labelB.Text = "b"; _staStatus.Items.Add (_labelB); // // _labelC // _labelC = new ToolStripStatusLabel (); _labelC.Text = "c"; _staStatus.Items.Add (_labelC); // // _largeTextCheckBox // _largeTextCheckBox = new CheckBox (); _largeTextCheckBox.Dock = DockStyle.Top; _largeTextCheckBox.Size = new Size (168, 32); _largeTextCheckBox.Text = "Large Text"; _largeTextCheckBox.CheckedChanged += new EventHandler (LargeTextCheckBox_CheckedChanged); Controls.Add (_largeTextCheckBox); // // MainForm // ClientSize = new Size (300, 150); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #351341"; Load += new EventHandler (MainForm_Load); }
private void InitializeComponent() { this.toolStrip1 = new ToolStrip(); this.tsbInstrumentAdd = new ToolStripButton(); this.tsbInstrumentRemove = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsbImport_Start = new ToolStripButton(); this.tsbImport_Stop = new ToolStripButton(); this.statusStrip1 = new StatusStrip(); this.tsiInfo = new ToolStripStatusLabel(); this.gbxSettings = new GroupBox(); this.nudBarSize = new NumericUpDown(); this.label4 = new Label(); this.dtpTo = new DateTimePicker(); this.dtpFrom = new DateTimePicker(); this.label3 = new Label(); this.label2 = new Label(); this.cbxDataType = new ComboBox(); this.label1 = new Label(); this.ltvImportTasks = new ListView(); this.columnHeader1 = new ColumnHeader(); this.columnHeader2 = new ColumnHeader(); this.columnHeader3 = new ColumnHeader(); this.columnHeader4 = new ColumnHeader(); this.worker = new BackgroundWorker(); this.toolStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.gbxSettings.SuspendLayout(); this.nudBarSize.BeginInit(); this.SuspendLayout(); this.toolStrip1.Items.AddRange(new ToolStripItem[5] { (ToolStripItem)this.tsbInstrumentAdd, (ToolStripItem)this.tsbInstrumentRemove, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.tsbImport_Start, (ToolStripItem)this.tsbImport_Stop }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(583, 25); this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; this.tsbInstrumentAdd.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.tsbInstrumentAdd.Image = (Image) Resources.instrument_add; this.tsbInstrumentAdd.ImageTransparentColor = Color.Magenta; this.tsbInstrumentAdd.Name = "tsbInstrumentAdd"; this.tsbInstrumentAdd.Size = new Size(23, 22); this.tsbInstrumentAdd.Text = "Add instrument(s)"; this.tsbInstrumentAdd.Click += new EventHandler(this.tsbInstrumentAdd_Click); this.tsbInstrumentRemove.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.tsbInstrumentRemove.Image = (Image) Resources.instrument_delete; this.tsbInstrumentRemove.ImageTransparentColor = Color.Magenta; this.tsbInstrumentRemove.Name = "tsbInstrumentRemove"; this.tsbInstrumentRemove.Size = new Size(23, 22); this.tsbInstrumentRemove.Text = "Remove instrument(s)"; this.tsbInstrumentRemove.Click += new EventHandler(this.tsbInstrumentRemove_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 25); this.tsbImport_Start.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.tsbImport_Start.Image = (Image) Resources.import_start; this.tsbImport_Start.ImageTransparentColor = Color.Magenta; this.tsbImport_Start.Name = "tsbImport_Start"; this.tsbImport_Start.Size = new Size(23, 22); this.tsbImport_Start.Text = "Start"; this.tsbImport_Start.Click += new EventHandler(this.tsbImport_Start_Click); this.tsbImport_Stop.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbImport_Stop.Enabled = false; // this.tsbImport_Stop.Image = (Image) Resources.import_stop; this.tsbImport_Stop.ImageTransparentColor = Color.Magenta; this.tsbImport_Stop.Name = "tsbImport_Stop"; this.tsbImport_Stop.Size = new Size(23, 22); this.tsbImport_Stop.Text = "Stop"; this.tsbImport_Stop.Click += new EventHandler(this.tsbImport_Stop_Click); this.statusStrip1.Items.AddRange(new ToolStripItem[1] { (ToolStripItem)this.tsiInfo }); this.statusStrip1.Location = new Point(0, 366); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(583, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; this.tsiInfo.AutoToolTip = true; this.tsiInfo.Name = "tsiInfo"; this.tsiInfo.Size = new Size(568, 17); this.tsiInfo.Spring = true; this.tsiInfo.TextAlign = ContentAlignment.MiddleLeft; this.gbxSettings.Controls.Add((Control)this.nudBarSize); this.gbxSettings.Controls.Add((Control)this.label4); this.gbxSettings.Controls.Add((Control)this.dtpTo); this.gbxSettings.Controls.Add((Control)this.dtpFrom); this.gbxSettings.Controls.Add((Control)this.label3); this.gbxSettings.Controls.Add((Control)this.label2); this.gbxSettings.Controls.Add((Control)this.cbxDataType); this.gbxSettings.Controls.Add((Control)this.label1); this.gbxSettings.Dock = DockStyle.Top; this.gbxSettings.Location = new Point(0, 25); this.gbxSettings.Name = "gbxSettings"; this.gbxSettings.Size = new Size(583, 79); this.gbxSettings.TabIndex = 2; this.gbxSettings.TabStop = false; this.gbxSettings.Text = "Settings"; this.nudBarSize.Location = new Point(80, 48); this.nudBarSize.Name = "nudBarSize"; this.nudBarSize.Size = new Size(100, 20); this.nudBarSize.TabIndex = 7; this.nudBarSize.TextAlign = HorizontalAlignment.Right; this.nudBarSize.ThousandsSeparator = true; this.label4.Location = new Point(16, 48); this.label4.Name = "label4"; this.label4.Size = new Size(58, 20); this.label4.TabIndex = 6; this.label4.Text = "Bar size"; this.label4.TextAlign = ContentAlignment.MiddleLeft; this.dtpTo.Format = DateTimePickerFormat.Custom; this.dtpTo.Location = new Point(264, 48); this.dtpTo.Name = "dtpTo"; this.dtpTo.Size = new Size(200, 20); this.dtpTo.TabIndex = 5; this.dtpFrom.Format = DateTimePickerFormat.Custom; this.dtpFrom.Location = new Point(264, 24); this.dtpFrom.Name = "dtpFrom"; this.dtpFrom.Size = new Size(200, 20); this.dtpFrom.TabIndex = 4; this.label3.Location = new Point(220, 48); this.label3.Name = "label3"; this.label3.Size = new Size(40, 20); this.label3.TabIndex = 3; this.label3.Text = "To"; this.label3.TextAlign = ContentAlignment.MiddleLeft; this.label2.Location = new Point(220, 24); this.label2.Name = "label2"; this.label2.Size = new Size(40, 20); this.label2.TabIndex = 2; this.label2.Text = "From"; this.label2.TextAlign = ContentAlignment.MiddleLeft; this.cbxDataType.DropDownStyle = ComboBoxStyle.DropDownList; this.cbxDataType.FormattingEnabled = true; this.cbxDataType.Location = new Point(80, 24); this.cbxDataType.Name = "cbxDataType"; this.cbxDataType.Size = new Size(100, 21); this.cbxDataType.TabIndex = 1; this.cbxDataType.SelectedIndexChanged += new EventHandler(this.cbxDataType_SelectedIndexChanged); this.label1.Location = new Point(16, 24); this.label1.Name = "label1"; this.label1.Size = new Size(58, 20); this.label1.TabIndex = 0; this.label1.Text = "Data type"; this.label1.TextAlign = ContentAlignment.MiddleLeft; this.ltvImportTasks.AllowDrop = true; this.ltvImportTasks.Columns.AddRange(new ColumnHeader[4] { this.columnHeader1, this.columnHeader2, this.columnHeader3, this.columnHeader4 }); this.ltvImportTasks.Dock = DockStyle.Fill; this.ltvImportTasks.FullRowSelect = true; this.ltvImportTasks.GridLines = true; this.ltvImportTasks.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.ltvImportTasks.HideSelection = false; this.ltvImportTasks.LabelWrap = false; this.ltvImportTasks.Location = new Point(0, 104); this.ltvImportTasks.Name = "ltvImportTasks"; this.ltvImportTasks.ShowGroups = false; this.ltvImportTasks.ShowItemToolTips = true; this.ltvImportTasks.Size = new Size(583, 262); this.ltvImportTasks.TabIndex = 3; this.ltvImportTasks.UseCompatibleStateImageBehavior = false; this.ltvImportTasks.View = View.Details; this.ltvImportTasks.DragDrop += new DragEventHandler(this.ltvImportTasks_DragDrop); this.ltvImportTasks.DragOver += new DragEventHandler(this.ltvImportTasks_DragOver); this.columnHeader1.Text = "Instrument"; this.columnHeader1.Width = 97; this.columnHeader2.Text = "State"; this.columnHeader2.TextAlign = HorizontalAlignment.Right; this.columnHeader2.Width = 93; this.columnHeader3.Text = "Count"; this.columnHeader3.TextAlign = HorizontalAlignment.Right; this.columnHeader3.Width = 173; this.columnHeader4.Text = "Message"; this.columnHeader4.Width = 187; this.worker.WorkerSupportsCancellation = true; this.worker.DoWork += new DoWorkEventHandler(this.worker_DoWork); this.worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.worker_RunWorkerCompleted); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.ltvImportTasks); this.Controls.Add((Control)this.gbxSettings); this.Controls.Add((Control)this.statusStrip1); this.Controls.Add((Control)this.toolStrip1); this.Name = "ImportHistoricalData"; this.Size = new Size(583, 388); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.gbxSettings.ResumeLayout(false); this.nudBarSize.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = (IContainer) new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(GamePicker)); this.gameLogos = new ImageList(this.components); this.callbackTimer = new System.Windows.Forms.Timer(this.components); this.toolStrip1 = new ToolStrip(); this.refreshGamesButton = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.addGameText = new ToolStripTextBox(); this.addGameButton = new ToolStripButton(); this.toolStripSeparator2 = new ToolStripSeparator(); this.filterButton = new ToolStripDropDownButton(); this.filterGamesMenuitem = new ToolStripMenuItem(); this.filterDemosMenuItem = new ToolStripMenuItem(); this.filterModsMenuItem = new ToolStripMenuItem(); this.filterJunkMenuItem = new ToolStripMenuItem(); this.gameList = new DoubleBufferedListView(); this.statusStrip1 = new StatusStrip(); this.pickerStatusLabel = new ToolStripStatusLabel(); this.downloadStatusLabel = new ToolStripStatusLabel(); this.toolStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); this.gameLogos.ColorDepth = ColorDepth.Depth8Bit; this.gameLogos.ImageSize = new Size(184, 69); this.gameLogos.TransparentColor = Color.Transparent; this.callbackTimer.Enabled = true; this.callbackTimer.Tick += new EventHandler(this.OnTimer); this.toolStrip1.Items.AddRange(new ToolStripItem[6] { (ToolStripItem)this.refreshGamesButton, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.addGameText, (ToolStripItem)this.addGameButton, (ToolStripItem)this.toolStripSeparator2, (ToolStripItem)this.filterButton }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(742, 25); this.toolStrip1.TabIndex = 1; this.toolStrip1.Text = "toolStrip1"; this.refreshGamesButton.Image = (Image)Resources.Refresh; this.refreshGamesButton.ImageTransparentColor = Color.Magenta; this.refreshGamesButton.Name = "refreshGamesButton"; this.refreshGamesButton.Size = new Size(105, 22); this.refreshGamesButton.Text = "Refresh Games"; this.refreshGamesButton.Click += new EventHandler(this.OnRefresh); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 25); this.addGameText.Name = "addGameText"; this.addGameText.Size = new Size(100, 25); this.addGameButton.Image = (Image)Resources.Search; this.addGameButton.ImageTransparentColor = Color.Magenta; this.addGameButton.Name = "addGameButton"; this.addGameButton.Size = new Size(83, 22); this.addGameButton.Text = "Add Game"; this.addGameButton.Click += new EventHandler(this.OnAddGame); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 25); this.filterButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.filterButton.DropDownItems.AddRange(new ToolStripItem[4] { (ToolStripItem)this.filterGamesMenuitem, (ToolStripItem)this.filterDemosMenuItem, (ToolStripItem)this.filterModsMenuItem, (ToolStripItem)this.filterJunkMenuItem }); this.filterButton.Image = (Image)Resources.Filter; this.filterButton.ImageTransparentColor = Color.Magenta; this.filterButton.Name = "filterButton"; this.filterButton.Size = new Size(29, 22); this.filterButton.Text = "Game filtering"; this.filterGamesMenuitem.Checked = true; this.filterGamesMenuitem.CheckOnClick = true; this.filterGamesMenuitem.CheckState = CheckState.Checked; this.filterGamesMenuitem.Name = "filterGamesMenuitem"; this.filterGamesMenuitem.Size = new Size(152, 22); this.filterGamesMenuitem.Text = "Show &games"; this.filterGamesMenuitem.CheckedChanged += new EventHandler(this.OnFilterUpdate); this.filterDemosMenuItem.CheckOnClick = true; this.filterDemosMenuItem.Name = "filterDemosMenuItem"; this.filterDemosMenuItem.Size = new Size(152, 22); this.filterDemosMenuItem.Text = "Show &demos"; this.filterDemosMenuItem.CheckedChanged += new EventHandler(this.OnFilterUpdate); this.filterModsMenuItem.CheckOnClick = true; this.filterModsMenuItem.Name = "filterModsMenuItem"; this.filterModsMenuItem.Size = new Size(152, 22); this.filterModsMenuItem.Text = "Show &mods"; this.filterModsMenuItem.CheckedChanged += new EventHandler(this.OnFilterUpdate); this.filterJunkMenuItem.CheckOnClick = true; this.filterJunkMenuItem.Name = "filterJunkMenuItem"; this.filterJunkMenuItem.Size = new Size(152, 22); this.filterJunkMenuItem.Text = "Show &junk"; this.filterJunkMenuItem.CheckedChanged += new EventHandler(this.OnFilterUpdate); this.gameList.BackColor = Color.Black; this.gameList.Dock = DockStyle.Fill; this.gameList.ForeColor = Color.White; this.gameList.LargeImageList = this.gameLogos; this.gameList.Location = new Point(0, 25); this.gameList.MultiSelect = false; this.gameList.Name = "gameList"; this.gameList.Size = new Size(742, 245); this.gameList.SmallImageList = this.gameLogos; this.gameList.Sorting = SortOrder.Ascending; this.gameList.TabIndex = 0; this.gameList.TileSize = new Size(184, 69); this.gameList.UseCompatibleStateImageBehavior = false; this.gameList.ItemActivate += new EventHandler(this.OnSelectGame); this.statusStrip1.Items.AddRange(new ToolStripItem[2] { (ToolStripItem)this.pickerStatusLabel, (ToolStripItem)this.downloadStatusLabel }); this.statusStrip1.Location = new Point(0, 270); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(742, 22); this.statusStrip1.TabIndex = 2; this.statusStrip1.Text = "statusStrip"; this.pickerStatusLabel.Name = "pickerStatusLabel"; this.pickerStatusLabel.Size = new Size(727, 17); this.pickerStatusLabel.Spring = true; this.pickerStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.downloadStatusLabel.Image = (Image)Resources.Download; this.downloadStatusLabel.Name = "downloadStatusLabel"; this.downloadStatusLabel.Size = new Size(111, 17); this.downloadStatusLabel.Text = "Download status"; this.downloadStatusLabel.Visible = false; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(742, 292); this.Controls.Add((Control)this.gameList); this.Controls.Add((Control)this.statusStrip1); this.Controls.Add((Control)this.toolStrip1); this.Icon = (Icon)componentResourceManager.GetObject("$this.Icon"); this.Name = nameof(GamePicker); this.Text = "Steam Achievement Manager 6.3 | Pick a game... Any game..."; this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public StatusStripProvider(StatusStrip statusStrip) : base(statusStrip) { this.items = statusStrip.Items; }
/// <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(ProgressWindow)); this.currentVideoFrameLabel = new System.Windows.Forms.Label(); this.currentVideoFrame = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.totalTime = new System.Windows.Forms.TextBox(); this.totalTimeLabel = new System.Windows.Forms.Label(); this.timeElapsed = new System.Windows.Forms.TextBox(); this.timeElapsedLabel = new System.Windows.Forms.Label(); this.fps = new System.Windows.Forms.TextBox(); this.fpsLabel = new System.Windows.Forms.Label(); this.videoData = new System.Windows.Forms.TextBox(); this.videoDataLabel = new System.Windows.Forms.Label(); this.currentPositionLabel = new System.Windows.Forms.Label(); this.positionInClip = new System.Windows.Forms.TextBox(); this.abortButton = new System.Windows.Forms.Button(); this.progressLabel = new System.Windows.Forms.Label(); this.progress = new System.Windows.Forms.ProgressBar(); this.priorityLabel = new System.Windows.Forms.Label(); this.priority = new System.Windows.Forms.ComboBox(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.helpButton1 = new MeGUI.core.gui.HelpButton(); this.jobNameLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.groupBox1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // currentVideoFrameLabel // this.currentVideoFrameLabel.AutoSize = true; this.currentVideoFrameLabel.Location = new System.Drawing.Point(8, 44); this.currentVideoFrameLabel.Name = "currentVideoFrameLabel"; this.currentVideoFrameLabel.Size = new System.Drawing.Size(118, 13); this.currentVideoFrameLabel.TabIndex = 2; this.currentVideoFrameLabel.Text = "Current / Total frames:"; // // currentVideoFrame // this.currentVideoFrame.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.currentVideoFrame.Location = new System.Drawing.Point(173, 41); this.currentVideoFrame.Name = "currentVideoFrame"; this.currentVideoFrame.ReadOnly = true; this.currentVideoFrame.Size = new System.Drawing.Size(130, 21); this.currentVideoFrame.TabIndex = 17; this.currentVideoFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.Controls.Add(this.totalTime); this.groupBox1.Controls.Add(this.totalTimeLabel); this.groupBox1.Controls.Add(this.timeElapsed); this.groupBox1.Controls.Add(this.timeElapsedLabel); this.groupBox1.Controls.Add(this.fps); this.groupBox1.Controls.Add(this.fpsLabel); this.groupBox1.Controls.Add(this.videoData); this.groupBox1.Controls.Add(this.videoDataLabel); this.groupBox1.Controls.Add(this.currentPositionLabel); this.groupBox1.Controls.Add(this.currentVideoFrame); this.groupBox1.Controls.Add(this.currentVideoFrameLabel); this.groupBox1.Controls.Add(this.positionInClip); this.groupBox1.Location = new System.Drawing.Point(8, 8); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(309, 177); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; // // totalTime // this.totalTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.totalTime.Location = new System.Drawing.Point(173, 149); this.totalTime.Name = "totalTime"; this.totalTime.ReadOnly = true; this.totalTime.Size = new System.Drawing.Size(130, 21); this.totalTime.TabIndex = 25; this.totalTime.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // totalTimeLabel // this.totalTimeLabel.AutoSize = true; this.totalTimeLabel.Location = new System.Drawing.Point(8, 152); this.totalTimeLabel.Name = "totalTimeLabel"; this.totalTimeLabel.Size = new System.Drawing.Size(82, 13); this.totalTimeLabel.TabIndex = 10; this.totalTimeLabel.Text = "Time remaining:"; // // timeElapsed // this.timeElapsed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.timeElapsed.Location = new System.Drawing.Point(173, 122); this.timeElapsed.Name = "timeElapsed"; this.timeElapsed.ReadOnly = true; this.timeElapsed.Size = new System.Drawing.Size(130, 21); this.timeElapsed.TabIndex = 23; this.timeElapsed.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // timeElapsedLabel // this.timeElapsedLabel.AutoSize = true; this.timeElapsedLabel.Location = new System.Drawing.Point(8, 125); this.timeElapsedLabel.Name = "timeElapsedLabel"; this.timeElapsedLabel.Size = new System.Drawing.Size(73, 13); this.timeElapsedLabel.TabIndex = 8; this.timeElapsedLabel.Text = "Time elapsed:"; // // fps // this.fps.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.fps.Location = new System.Drawing.Point(173, 95); this.fps.Name = "fps"; this.fps.ReadOnly = true; this.fps.Size = new System.Drawing.Size(130, 21); this.fps.TabIndex = 21; this.fps.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // fpsLabel // this.fpsLabel.AutoSize = true; this.fpsLabel.Location = new System.Drawing.Point(8, 98); this.fpsLabel.Name = "fpsLabel"; this.fpsLabel.Size = new System.Drawing.Size(85, 13); this.fpsLabel.TabIndex = 6; this.fpsLabel.Text = "Processing rate:"; // // videoData // this.videoData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.videoData.Location = new System.Drawing.Point(173, 68); this.videoData.Name = "videoData"; this.videoData.ReadOnly = true; this.videoData.Size = new System.Drawing.Size(130, 21); this.videoData.TabIndex = 19; this.videoData.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // videoDataLabel // this.videoDataLabel.AutoSize = true; this.videoDataLabel.Location = new System.Drawing.Point(8, 71); this.videoDataLabel.Name = "videoDataLabel"; this.videoDataLabel.Size = new System.Drawing.Size(139, 13); this.videoDataLabel.TabIndex = 4; this.videoDataLabel.Text = "Current / Projected filesize:"; // // currentPositionLabel // this.currentPositionLabel.AutoSize = true; this.currentPositionLabel.Location = new System.Drawing.Point(8, 17); this.currentPositionLabel.Name = "currentPositionLabel"; this.currentPositionLabel.Size = new System.Drawing.Size(144, 13); this.currentPositionLabel.TabIndex = 0; this.currentPositionLabel.Text = "Position in clip / Total length:"; // // positionInClip // this.positionInClip.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.positionInClip.Location = new System.Drawing.Point(173, 14); this.positionInClip.Name = "positionInClip"; this.positionInClip.ReadOnly = true; this.positionInClip.Size = new System.Drawing.Size(130, 21); this.positionInClip.TabIndex = 15; this.positionInClip.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // abortButton // this.abortButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.abortButton.Location = new System.Drawing.Point(239, 252); this.abortButton.Name = "abortButton"; this.abortButton.Size = new System.Drawing.Size(75, 23); this.abortButton.TabIndex = 6; this.abortButton.Text = "Abort"; this.abortButton.Click += new System.EventHandler(this.abortButton_Click); // // progressLabel // this.progressLabel.Location = new System.Drawing.Point(12, 195); this.progressLabel.Name = "progressLabel"; this.progressLabel.Size = new System.Drawing.Size(100, 15); this.progressLabel.TabIndex = 1; this.progressLabel.Text = "Progress"; // // progress // this.progress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.progress.Location = new System.Drawing.Point(122, 191); this.progress.Name = "progress"; this.progress.Size = new System.Drawing.Size(195, 23); this.progress.TabIndex = 1; // // priorityLabel // this.priorityLabel.Location = new System.Drawing.Point(12, 223); this.priorityLabel.Name = "priorityLabel"; this.priorityLabel.Size = new System.Drawing.Size(100, 15); this.priorityLabel.TabIndex = 3; this.priorityLabel.Text = "Priority"; // // priority // this.priority.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.priority.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.priority.Items.AddRange(new object[] { "LOW", "BELOW NORMAL", "NORMAL", "ABOVE NORMAL", "HIGH" }); this.priority.Location = new System.Drawing.Point(122, 220); this.priority.Name = "priority"; this.priority.Size = new System.Drawing.Size(122, 21); this.priority.TabIndex = 2; this.priority.SelectedIndexChanged += new System.EventHandler(this.priority_SelectedIndexChanged); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.jobNameLabel, this.statusLabel }); this.statusStrip1.Location = new System.Drawing.Point(0, 284); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(326, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 7; this.statusStrip1.Text = "statusStrip1"; // // statusLabel // this.statusLabel.Name = "statusLabel"; this.statusLabel.Size = new System.Drawing.Size(45, 17); this.statusLabel.Text = "Status: "; // // helpButton1 // this.helpButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.helpButton1.ArticleName = "Status Window"; this.helpButton1.AutoSize = true; this.helpButton1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.helpButton1.Location = new System.Drawing.Point(12, 252); this.helpButton1.Name = "helpButton1"; this.helpButton1.Size = new System.Drawing.Size(38, 23); this.helpButton1.TabIndex = 5; // // jobNameLabel // this.jobNameLabel.Name = "jobNameLabel"; this.jobNameLabel.Size = new System.Drawing.Size(38, 17); this.jobNameLabel.Text = "[job1]"; // // ProgressWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(326, 306); this.Controls.Add(this.helpButton1); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.priority); this.Controls.Add(this.priorityLabel); this.Controls.Add(this.progress); this.Controls.Add(this.progressLabel); this.Controls.Add(this.abortButton); this.Controls.Add(this.groupBox1); this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimumSize = new System.Drawing.Size(332, 330); this.Name = "ProgressWindow"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.Text = "Status"; this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public void setToolStripText(StatusStrip in_me, ToolStripStatusLabel set_me, String to_me) { if(in_me.InvokeRequired) { in_me.BeginInvoke(new setToolStripTextDelegate(setToolStripText), new Object[] { in_me, set_me, to_me}); } else { lock(in_me) { set_me.Text = to_me; } } }
public WatchForm(string text) { this.init(); this.Text = "Text"; var statusStrip = new StatusStrip { Parent = this, Stretch = true, Height = 22, Dock = DockStyle.Bottom, Visible = true }; var charCountItem = statusStrip.Items.Add("Selected Chars: "); charCountItem.TextAlign = ContentAlignment.MiddleLeft; var wordCountItem = statusStrip.Items.Add("Selected Words: "); wordCountItem.TextAlign = ContentAlignment.MiddleLeft; var allCharItem = statusStrip.Items.Add("All Chars: " + text.Count(s => s != '\r').ToString().PadLeft(6)); allCharItem.TextAlign = ContentAlignment.MiddleLeft; var allWordItem = statusStrip.Items.Add("All Words: " + text.Split(' ', '\n').Select(s => s.Trim()).Count(s => !String.IsNullOrWhiteSpace(s)) .ToString().PadLeft(6)); allWordItem.TextAlign = ContentAlignment.MiddleLeft; var codeHighlighter = Factories.CodeHighlighter.Create(text, this, this.ClientSize.Adjust(0, -statusStrip.Height)); this.Controls.Add(statusStrip); var setCurrentText = new Action(() => { var invokeAction = new Action(() => { string currentText = codeHighlighter.Text; ThreadHelper.RunAsStaThread(() => { Clipboard.SetText(currentText); }); }); if (codeHighlighter.InvokeRequired) { codeHighlighter.Invoke(invokeAction); return; } invokeAction(); }); var scintillaStyle = codeHighlighter.Styles.First(); using (var font = new Font(scintillaStyle.Font, scintillaStyle.SizeF)) { var textSize = TextRenderer.MeasureText(text, font); var screenSize = this.MaximumSize; int x = Math.Min(textSize.Width, screenSize.Width); int y = Math.Min(textSize.Height, screenSize.Height) + statusStrip.Height; this.ClientSize = new Size(x, y); } this.Location = getFormLocation(this.ClientSize, this.MaximumSize); this.clipboardAction = setCurrentText; this.lockControl = codeHighlighter; }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(frmCommLocationMap)); this.groupBox7 = new GroupBox(); this.label_heading = new Label(); this.label_gpsTime = new Label(); this.label_mode = new Label(); this.label_fix = new Label(); this.label_totalSVsUsed = new Label(); this.label_Speed = new Label(); this.label_HDOP = new Label(); this.label_Altitude = new Label(); this.label_Latitude = new Label(); this.label_Longitude = new Label(); this.label_ReceiverTime = new Label(); this.MapRightClickContextMenuStrip = new ContextMenuStrip(this.components); this.setMapCenterLocationHereToolStripMenuItem = new ToolStripMenuItem(); this.LatLongLabel = new Label(); this.locationViewToolStrip = new ToolStrip(); this.locationViewToolbarMapitBtn = new ToolStripButton(); this.locationViewToolbarSetRadiusBtn = new ToolStripButton(); this.locationViewToolbarClearBtn = new ToolStripButton(); this.toolStripButton_setRefLocation = new ToolStripButton(); this.statusStrip1 = new StatusStrip(); this.locationViewStatusLabel = new ToolStripStatusLabel(); this.panel_Location = new MyPanel(); this.groupBox7.SuspendLayout(); this.MapRightClickContextMenuStrip.SuspendLayout(); this.locationViewToolStrip.SuspendLayout(); this.statusStrip1.SuspendLayout(); base.SuspendLayout(); this.groupBox7.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.groupBox7.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.groupBox7.BackColor = SystemColors.ControlLight; this.groupBox7.Controls.Add(this.label_heading); this.groupBox7.Controls.Add(this.label_gpsTime); this.groupBox7.Controls.Add(this.label_mode); this.groupBox7.Controls.Add(this.label_fix); this.groupBox7.Controls.Add(this.label_totalSVsUsed); this.groupBox7.Controls.Add(this.label_Speed); this.groupBox7.Controls.Add(this.label_HDOP); this.groupBox7.Controls.Add(this.label_Altitude); this.groupBox7.Controls.Add(this.label_Latitude); this.groupBox7.Controls.Add(this.label_Longitude); this.groupBox7.Controls.Add(this.label_ReceiverTime); this.groupBox7.Location = new Point(0x16, 0x22); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new Size(0x1b9, 0x97); this.groupBox7.TabIndex = 0; this.groupBox7.TabStop = false; this.groupBox7.Text = "Position Infomation"; this.label_heading.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_heading.AutoSize = true; this.label_heading.Location = new Point(0x135, 70); this.label_heading.Name = "label_heading"; this.label_heading.Size = new Size(50, 13); this.label_heading.TabIndex = 11; this.label_heading.Text = "Heading:"; this.label_gpsTime.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_gpsTime.AutoSize = true; this.label_gpsTime.Location = new Point(0xb2, 0x15); this.label_gpsTime.Name = "label_gpsTime"; this.label_gpsTime.Size = new Size(0x5c, 13); this.label_gpsTime.TabIndex = 10; this.label_gpsTime.Text = "TOW: Week:"; this.label_mode.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_mode.AutoSize = true; this.label_mode.Location = new Point(0xb2, 0x61); this.label_mode.Name = "label_mode"; this.label_mode.Size = new Size(0x25, 13); this.label_mode.TabIndex = 9; this.label_mode.Text = "Mode:"; this.label_fix.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_fix.AutoSize = true; this.label_fix.Location = new Point(7, 0x61); this.label_fix.Name = "label_fix"; this.label_fix.Size = new Size(0x17, 13); this.label_fix.TabIndex = 8; this.label_fix.Text = "Fix:"; this.label_fix.TextAlign = ContentAlignment.MiddleRight; this.label_fix.Visible = false; this.label_totalSVsUsed.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_totalSVsUsed.AutoSize = true; this.label_totalSVsUsed.Location = new Point(7, 0x7a); this.label_totalSVsUsed.Name = "label_totalSVsUsed"; this.label_totalSVsUsed.Size = new Size(0x6b, 13); this.label_totalSVsUsed.TabIndex = 7; this.label_totalSVsUsed.Text = "Number of SVs used:"; this.label_Speed.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_Speed.AutoSize = true; this.label_Speed.Location = new Point(0xb2, 70); this.label_Speed.Name = "label_Speed"; this.label_Speed.Size = new Size(0x29, 13); this.label_Speed.TabIndex = 6; this.label_Speed.Text = "Speed:"; this.label_HDOP.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_HDOP.AutoSize = true; this.label_HDOP.Location = new Point(7, 70); this.label_HDOP.Name = "label_HDOP"; this.label_HDOP.Size = new Size(0x29, 13); this.label_HDOP.TabIndex = 5; this.label_HDOP.Text = "HDOP:"; this.label_Altitude.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_Altitude.AutoSize = true; this.label_Altitude.Location = new Point(0x135, 0x2c); this.label_Altitude.Name = "label_Altitude"; this.label_Altitude.Size = new Size(0x2d, 13); this.label_Altitude.TabIndex = 3; this.label_Altitude.Text = "Altitude:"; this.label_Latitude.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_Latitude.AutoSize = true; this.label_Latitude.Location = new Point(7, 0x2c); this.label_Latitude.Name = "label_Latitude"; this.label_Latitude.Size = new Size(0x30, 13); this.label_Latitude.TabIndex = 2; this.label_Latitude.Text = "Latitude:"; this.label_Longitude.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_Longitude.AutoSize = true; this.label_Longitude.Location = new Point(0xb2, 0x2c); this.label_Longitude.Name = "label_Longitude"; this.label_Longitude.Size = new Size(0x39, 13); this.label_Longitude.TabIndex = 1; this.label_Longitude.Text = "Longitude:"; this.label_ReceiverTime.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.label_ReceiverTime.AutoSize = true; this.label_ReceiverTime.Location = new Point(7, 0x15); this.label_ReceiverTime.Name = "label_ReceiverTime"; this.label_ReceiverTime.Size = new Size(0x4f, 13); this.label_ReceiverTime.TabIndex = 0; this.label_ReceiverTime.Text = "Receiver Time:"; this.MapRightClickContextMenuStrip.Items.AddRange(new ToolStripItem[] { this.setMapCenterLocationHereToolStripMenuItem }); this.MapRightClickContextMenuStrip.Name = "MapRightClickContextMenuStrip"; this.MapRightClickContextMenuStrip.Size = new Size(0xcb, 0x1a); this.setMapCenterLocationHereToolStripMenuItem.Name = "setMapCenterLocationHereToolStripMenuItem"; this.setMapCenterLocationHereToolStripMenuItem.Size = new Size(0xca, 0x16); this.setMapCenterLocationHereToolStripMenuItem.Text = "Switch to Manual Center"; this.setMapCenterLocationHereToolStripMenuItem.Click += new EventHandler(this.setMapCenterLocationHereToolStripMenuItem_Click); this.LatLongLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.LatLongLabel.AutoSize = true; this.LatLongLabel.Location = new Point(0x1b, 0xc3); this.LatLongLabel.Name = "LatLongLabel"; this.LatLongLabel.Size = new Size(0x3a, 13); this.LatLongLabel.TabIndex = 15; this.LatLongLabel.Text = "Lat, Long: "; this.locationViewToolStrip.Items.AddRange(new ToolStripItem[] { this.locationViewToolbarMapitBtn, this.locationViewToolbarSetRadiusBtn, this.locationViewToolbarClearBtn, this.toolStripButton_setRefLocation }); this.locationViewToolStrip.Location = new Point(0, 0); this.locationViewToolStrip.Name = "locationViewToolStrip"; this.locationViewToolStrip.Size = new Size(0x1e5, 0x19); this.locationViewToolStrip.TabIndex = 0x12; this.locationViewToolStrip.Text = "toolStrip1"; this.locationViewToolbarMapitBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.locationViewToolbarMapitBtn.Image = Resources.mapIt; this.locationViewToolbarMapitBtn.ImageTransparentColor = Color.Magenta; this.locationViewToolbarMapitBtn.Name = "locationViewToolbarMapitBtn"; this.locationViewToolbarMapitBtn.Size = new Size(0x17, 0x16); this.locationViewToolbarMapitBtn.Text = "Map Position"; this.locationViewToolbarMapitBtn.Click += new EventHandler(this.button_MapIt_Click); this.locationViewToolbarSetRadiusBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.locationViewToolbarSetRadiusBtn.Image = Resources.Config; this.locationViewToolbarSetRadiusBtn.ImageTransparentColor = Color.Magenta; this.locationViewToolbarSetRadiusBtn.Name = "locationViewToolbarSetRadiusBtn"; this.locationViewToolbarSetRadiusBtn.Size = new Size(0x17, 0x16); this.locationViewToolbarSetRadiusBtn.Text = "Configuration"; this.locationViewToolbarSetRadiusBtn.Click += new EventHandler(this.locationViewToolbarSetRadiusBtn_Click); this.locationViewToolbarClearBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.locationViewToolbarClearBtn.Image = Resources.DeleteHS; this.locationViewToolbarClearBtn.ImageTransparentColor = Color.Magenta; this.locationViewToolbarClearBtn.Name = "locationViewToolbarClearBtn"; this.locationViewToolbarClearBtn.Size = new Size(0x17, 0x16); this.locationViewToolbarClearBtn.Text = "Clear Data"; this.locationViewToolbarClearBtn.Click += new EventHandler(this.frmCommLocationMapClearBtn_Click); this.toolStripButton_setRefLocation.DisplayStyle = ToolStripItemDisplayStyle.Image; this.toolStripButton_setRefLocation.Image = Resources.RefLocation; this.toolStripButton_setRefLocation.ImageTransparentColor = Color.Magenta; this.toolStripButton_setRefLocation.Name = "toolStripButton_setRefLocation"; this.toolStripButton_setRefLocation.Size = new Size(0x17, 0x16); this.toolStripButton_setRefLocation.Text = "Set Reference Location"; this.toolStripButton_setRefLocation.Click += new EventHandler(this.toolStripButton_setRefLocation_Click); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.locationViewStatusLabel }); this.statusStrip1.Location = new Point(0, 0x1b9); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(0x1e5, 0x16); this.statusStrip1.TabIndex = 0x13; this.statusStrip1.Text = "Status"; this.locationViewStatusLabel.DisplayStyle = ToolStripItemDisplayStyle.Text; this.locationViewStatusLabel.Name = "locationViewStatusLabel"; this.locationViewStatusLabel.Size = new Size(0x26, 0x11); this.locationViewStatusLabel.Text = "Status"; this.panel_Location.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.panel_Location.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel_Location.Location = new Point(0x16, 0xd9); this.panel_Location.Name = "panel_Location"; this.panel_Location.Size = new Size(0x1b9, 210); this.panel_Location.TabIndex = 7; this.panel_Location.Paint += new PaintEventHandler(this.panel_Location_Paint); this.panel_Location.MouseMove += new MouseEventHandler(this.panel_Location_MouseMove); this.panel_Location.MouseClick += new MouseEventHandler(this.panel_Location_MouseClick); this.panel_Location.Resize += new EventHandler(this.panel_Location_Resize); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; this.BackColor = SystemColors.Control; base.ClientSize = new Size(0x1e5, 0x1cf); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.locationViewToolStrip); base.Controls.Add(this.groupBox7); base.Controls.Add(this.panel_Location); base.Controls.Add(this.LatLongLabel); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "frmCommLocationMap"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.Manual; this.Text = "Location View"; base.Load += new EventHandler(this.frmCommLocationMap_Load); base.LocationChanged += new EventHandler(this.frmCommLocationMap_LocationChanged); base.ResizeEnd += new EventHandler(this.frmCommLocationMap_ResizeEnd); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.MapRightClickContextMenuStrip.ResumeLayout(false); this.locationViewToolStrip.ResumeLayout(false); this.locationViewToolStrip.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
protected override void Initialize() { _checkbox1 = new Checkbox { Location = new Point { Left = 3, Top = 4 }, Text = "Checkbox tentative" }; _checkbox1.CheckedChanged += checkbox1_CheckedChanged; RootPanel.AddChild(_checkbox1); _checkbox2 = new Checkbox { Location = new Point { Left = 3, Top = 6 }, IsChecked = true, Text = "Checkbox checked" }; RootPanel.AddChild(_checkbox2); _checkbox3 = new Checkbox { Location = new Point { Left = 3, Top = 8 }, IsChecked = false, Text = "Checkbox unchecked" }; RootPanel.AddChild(_checkbox3); _checkbox4 = new Checkbox { Location = new Point { Left = 3, Top = 10 }, IsChecked = false, Text = "Checkbox disabled", IsEnabled = false }; RootPanel.AddChild(_checkbox4); _label1 = new Label { Location = new Point { Left = 3, Top = 12 }, Text = "Label" }; RootPanel.AddChild(_label1); _radioButton1 = new RadioButton { Location = new Point { Left = 3, Top = 14 }, Text = "Radio unchecked" }; RootPanel.AddChild(_radioButton1); _radioButton2 = new RadioButton { Location = new Point { Left = 3, Top = 16 }, Text = "Radio checked", IsChecked = true }; RootPanel.AddChild(_radioButton2); _radioButton3 = new RadioButton { Location = new Point { Left = 3, Top = 18 }, Text = "Radio checked", IsChecked = true, IsEnabled = false }; RootPanel.AddChild(_radioButton3); _textBox1 = new TextBox { Location = new Point { Left = 3, Top = 20 } }; _textBox1.TextChanged += textBox1_TextChanged; RootPanel.AddChild(_textBox1); _button1 = new Button { Location = new Point { Left = 3, Top = 22 }, Width = 10 }; _button1.Pressed += button1_Pressed; RootPanel.AddChild(_button1); _button2 = new Button { Location = new Point { Left = 16, Top = 22 }, Width = 10, IsEnabled = false, Text = "Disabled button" }; _button2.Pressed += button2_Pressed; RootPanel.AddChild(_button2); _progressBar1 = new ProgressBar { Location = new Point { Left = 3, Top = 2 }, Width = 74 }; RootPanel.AddChild(_progressBar1); _bnext1 = new Button { Location = new Point { Left = 40, Top = 22 }, Width = 10, Text = "Next 1", Tag = 1 }; _bnext1.Pressed += bNextPressed; RootPanel.AddChild(_bnext1); _bnext2 = new Button { Location = new Point { Left = 51, Top = 22 }, Width = 10, Text = "Next 2", Tag = 2 }; _bnext2.Pressed += bNextPressed; RootPanel.AddChild(_bnext2); _bnext3 = new Button { Location = new Point { Left = 62, Top = 22 }, Width = 10, Text = "Next 3", Tag = 3 }; _bnext3.Pressed += bNextPressed; RootPanel.AddChild(_bnext3); _panel1 = new BorderPanel { Location = new Point { Left = 28, Top = 3 }, Size = new Size { Height = 7, Width = 25 } }; RootPanel.AddChild(_panel1); var subRadiobuton1 = new RadioButton { Location = new Point { Left = 1, Top = 1 } }; _panel1.AddChild(subRadiobuton1); var subRadiobuton2 = new RadioButton { Location = new Point { Left = 1, Top = 3 } }; _panel1.AddChild(subRadiobuton2); var subRadiobuton3 = new RadioButton { Location = new Point { Left = 1, Top = 5 } }; _panel1.AddChild(subRadiobuton3); _comboBox1 = new ComboBox { Location = new Point {Left = 29, Top = 12}, VisibleItemsCount = 7 }; _comboBox1.Items.AddRange(new[] { "EntityFX", "Green.Dragon", "Guzalianna", "Prozz", "Aik2029", "Zombie", "Wesker", "Perez", "Chuvak", "Magistr", "Mad", "XOBAH", }); RootPanel.AddChild(_comboBox1); RootPanel.AddChild(new Checkbox { Location = new Point { Left = 29, Top = 14 }, Text = "Checkbox for overlapp" }); RootPanel.AddChild(new BorderPanel { Location = new Point { Left = 29, Top = 16 }, Size = new Size {Width = 15, Height = 3} }); StatusStrip = new StatusStrip(); StatusStrip.AddChild(new StatusStripLabel { Text = "Item 1" }); StatusStrip.AddChild(new StatusStripLabel { Text = "Item 2" }); _timeStripItem = new StatusStripLabel { Text = "Item 3", ItemLocation = StatusStripItemLocationEnum.Right }; StatusStrip.AddChild(_timeStripItem); StatusStrip.AddChild(new StatusStripLabel { Text = "Item 4", ItemLocation = StatusStripItemLocationEnum.Right }); StatusStrip.AddChild(new StatusStripButton { Text = "But 1", ItemLocation = StatusStripItemLocationEnum.Left }); StatusStrip.AddChild(new StatusStripButton { Text = "But 2", ItemLocation = StatusStripItemLocationEnum.Left }); _statusStripProgressBar = new StatusStripProgressBar { Text = "P: {0}", Width = 14, Minimum = 0, Value = 16, Maximum = 25 }; StatusStrip.AddChild(_statusStripProgressBar); Initializetable(); _timer.Elapsed += timer_Elapsed; _timer.Start(); _timer2.Elapsed += _timer2_Elapsed; _timer2.Start(); }
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 MainForm () { // // _toolStrip // _toolStrip = new ToolStrip (); _toolStrip.Dock = DockStyle.Top; _toolStrip.Height = 25; Controls.Add (_toolStrip); // // _statusStrip; // _statusStrip = new StatusStrip (); Controls.Add (_statusStrip); // // _toolStripLabel1 // _toolStripLabel1 = new ToolStripLabel (); _toolStripLabel1.Text = "Mono"; _statusStrip.Items.Add (_toolStripLabel1); // // _toolStripLabel2 // _toolStripLabel2 = new ToolStripLabel (); _toolStripLabel2.Text = "Mono"; _toolStrip.Items.Add (_toolStripLabel2); // // _menuStrip // _menuStrip = new MenuStrip (); _menuStrip.Dock = DockStyle.Left; _menuStrip.LayoutStyle = ToolStripLayoutStyle.Flow; _menuStrip.Location = new Point (0, 0); _menuStrip.Size = new Size (303, 23); Controls.Add (_menuStrip); // // _fileToolStripMenuItem // _fileToolStripMenuItem = new ToolStripMenuItem (); _fileToolStripMenuItem.Text = "&File"; _menuStrip.Items.Add (_fileToolStripMenuItem); // // _newToolStripMenuItem // _newToolStripMenuItem = new ToolStripMenuItem (); _newToolStripMenuItem.Text = "&New"; _fileToolStripMenuItem.DropDownItems.Add (_newToolStripMenuItem); // // _openToolStripMenuItem // _openToolStripMenuItem = new ToolStripMenuItem (); _openToolStripMenuItem.Text = "&Open"; _fileToolStripMenuItem.DropDownItems.Add (_openToolStripMenuItem); // // _editToolStripMenuItem // _editToolStripMenuItem = new ToolStripMenuItem (); _editToolStripMenuItem.Text = "&Edit"; _menuStrip.Items.Add (_editToolStripMenuItem); // // _undoToolStripMenuItem // _undoToolStripMenuItem = new ToolStripMenuItem (); _undoToolStripMenuItem.Text = "&Undo"; _editToolStripMenuItem.DropDownItems.Add (_undoToolStripMenuItem); // // MainForm // ClientSize = new Size (300, 250); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82739"; Load += new EventHandler (MainForm_Load); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.listView = new System.Windows.Forms.ListViewEx(); this.columnIcon = new System.Windows.Forms.ColumnHeader(); this.columnPos = new System.Windows.Forms.ColumnHeader(); this.columnType = new System.Windows.Forms.ColumnHeader(); this.columnText = new System.Windows.Forms.ColumnHeader(); this.columnName = new System.Windows.Forms.ColumnHeader(); this.columnPath = new System.Windows.Forms.ColumnHeader(); this.toolStripLabel = new System.Windows.Forms.ToolStripLabel(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.statusStrip.SuspendLayout(); this.SuspendLayout(); // // listView // this.listView.BorderStyle = System.Windows.Forms.BorderStyle.None; this.listView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnIcon, this.columnPos, this.columnType, this.columnText, this.columnName, this.columnPath }); this.listView.Dock = System.Windows.Forms.DockStyle.Fill; this.listView.FullRowSelect = true; this.listView.GridLines = true; this.listView.LabelWrap = false; this.listView.MultiSelect = false; this.listView.Name = "listView"; this.listView.ShowItemToolTips = true; this.listView.Size = new System.Drawing.Size(278, 330); this.listView.TabIndex = 0; this.listView.UseCompatibleStateImageBehavior = false; this.listView.View = System.Windows.Forms.View.Details; this.listView.DoubleClick += new System.EventHandler(this.ListViewDoubleClick); this.listView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ListViewColumnClick); this.listView.KeyPress += new KeyPressEventHandler(this.ListViewKeyPress); // // columnIcon // this.columnIcon.Text = "!"; this.columnIcon.Width = 23; // // columnPos // this.columnPos.Text = "Position"; this.columnPos.Width = 75; // // columnType // this.columnType.Text = "Type"; this.columnType.Width = 70; // // columnText // this.columnText.Text = "Description"; this.columnText.Width = 350; // // columnName // this.columnName.Text = "File"; this.columnName.Width = 150; // // columnPath // this.columnPath.Text = "Path"; this.columnPath.Width = 400; // // toolStripLabel // this.toolStripLabel.Name = "toolStripLabel"; this.toolStripLabel.Size = new System.Drawing.Size(0, 20); // // statusStrip // this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripLabel }); this.statusStrip.Dock = System.Windows.Forms.DockStyle.Bottom; this.statusStrip.Renderer = new DockPanelStripRenderer(false); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(278, 22); this.statusStrip.TabIndex = 0; // // PluginUI // this.Name = "PluginUI"; this.Controls.Add(this.listView); this.Controls.Add(this.statusStrip); this.Size = new System.Drawing.Size(280, 352); this.statusStrip.ResumeLayout(false); this.statusStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void setupStatusStrip() { statusStrip = new StatusStrip(); ToolStripStatusLabel statusLabel = new ToolStripStatusLabel(); statusLabel.Text = "Well?"; ToolStripProgressBar progressBar = new ToolStripProgressBar(); progressBar.Maximum = 100; progressBar.Value = 50; //statusStrip.Items.Add(statusLabel); statusStrip.Items.AddRange(new ToolStripStatusLabel[] { statusLabel }); statusStrip.Items.AddRange(new ToolStripProgressBar[] { progressBar }); statusStrip.Text = "Status!"; this.Controls.Add(statusStrip); }
private void InitializeComponent() { this.icontainer_0 = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(MainForm)); this.toolStrip1 = new ToolStrip(); this.btnOpenDirectory = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.btnAddFile = new ToolStripButton(); this.btnDeleteFile = new ToolStripButton(); this.toolStripSeparator2 = new ToolStripSeparator(); this.btnAddCommand = new ToolStripButton(); this.btnEditCommand = new ToolStripButton(); this.btnDeleteCommnad = new ToolStripButton(); this.toolStripSeparator3 = new ToolStripSeparator(); this.btnSaveAll = new ToolStripButton(); this.toolStripSeparator4 = new ToolStripSeparator(); this.btnFindCommand = new ToolStripButton(); this.toolStripSeparator5 = new ToolStripSeparator(); this.btnHelp = new ToolStripButton(); this.statusStrip1 = new StatusStrip(); this.labCurrentPath = new ToolStripStatusLabel(); this.labMessage = new ToolStripStatusLabel(); this.treeView1 = new TreeView(); this.imageList_0 = new ImageList(this.icontainer_0); this.splitter1 = new Splitter(); this.panel1 = new Panel(); this.txtSQL = new SyntaxHighlighterControlFix(); this.splitter2 = new Splitter(); this.txtXML = new SyntaxHighlighterControlFix(); this.contextMenuStrip1 = new ContextMenuStrip(this.icontainer_0); this.menuAdd = new ToolStripMenuItem(); this.menuEdit = new ToolStripMenuItem(); this.menuDelete = new ToolStripMenuItem(); this.menuPaste = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.menuCopyName = new ToolStripMenuItem(); this.menuCopyXml = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripSeparator(); this.menuGenerateCallCode = new ToolStripMenuItem(); this.fileSystemWatcher_0 = new FileSystemWatcher(); this.timer_0 = new Timer(this.icontainer_0); this.toolStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.panel1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.fileSystemWatcher_0.BeginInit(); base.SuspendLayout(); this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.btnOpenDirectory, this.toolStripSeparator1, this.btnAddFile, this.btnDeleteFile, this.toolStripSeparator2, this.btnAddCommand, this.btnEditCommand, this.btnDeleteCommnad, this.toolStripSeparator3, this.btnSaveAll, this.toolStripSeparator4, this.btnFindCommand, this.toolStripSeparator5, this.btnHelp }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(0x39b, 0x19); this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; // this.btnOpenDirectory.Image = Resources.openfolderHS; this.btnOpenDirectory.ImageTransparentColor = Color.Magenta; this.btnOpenDirectory.Name = "btnOpenDirectory"; this.btnOpenDirectory.Size = new Size(0x5c, 0x16); this.btnOpenDirectory.Text = "打开目录(&D)"; this.btnOpenDirectory.Click += new EventHandler(this.btnOpenDirectory_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 0x19); //this.btnAddFile.Image = Resources.NewFolderHS; this.btnAddFile.ImageTransparentColor = Color.Magenta; this.btnAddFile.Name = "btnAddFile"; this.btnAddFile.Size = new Size(0x5d, 0x16); this.btnAddFile.Text = "新增文件(&N)"; this.btnAddFile.Click += new EventHandler(this.btnAddFile_Click); //this.btnDeleteFile.Image = Resources.DeleteFolderHS; this.btnDeleteFile.ImageTransparentColor = Color.Magenta; this.btnDeleteFile.Name = "btnDeleteFile"; this.btnDeleteFile.Size = new Size(0x4b, 0x16); this.btnDeleteFile.Text = "删除文件"; this.btnDeleteFile.Click += new EventHandler(this.btnDeleteFile_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 0x19); // this.btnAddCommand.Image = Resources.NewDocumentHS; this.btnAddCommand.ImageTransparentColor = Color.Magenta; this.btnAddCommand.Name = "btnAddCommand"; this.btnAddCommand.Size = new Size(0x5b, 0x16); this.btnAddCommand.Text = "新增命令(&C)"; this.btnAddCommand.Click += new EventHandler(this.menuAdd_Click); //this.btnEditCommand.Image = (Image) manager.GetObject("btnEditCommand.Image"); this.btnEditCommand.ImageTransparentColor = Color.Magenta; this.btnEditCommand.Name = "btnEditCommand"; this.btnEditCommand.Size = new Size(90, 0x16); this.btnEditCommand.Text = "修改命令(&E)"; this.btnEditCommand.Click += new EventHandler(this.menuEdit_Click); // this.btnDeleteCommnad.Image = Resources.DeleteHS; this.btnDeleteCommnad.ImageTransparentColor = Color.Magenta; this.btnDeleteCommnad.Name = "btnDeleteCommnad"; this.btnDeleteCommnad.Size = new Size(0x4b, 0x16); this.btnDeleteCommnad.Text = "删除命令"; this.btnDeleteCommnad.Click += new EventHandler(this.menuDelete_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(6, 0x19); // this.btnSaveAll.Image = Resources.SaveAllHS; this.btnSaveAll.ImageTransparentColor = Color.Magenta; this.btnSaveAll.Name = "btnSaveAll"; this.btnSaveAll.Size = new Size(0x72, 0x16); this.btnSaveAll.Text = "保存所有修改(&S)"; this.btnSaveAll.Click += new EventHandler(this.btnSaveAll_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new Size(6, 0x19); // this.btnFindCommand.Image = Resources.FindHS; this.btnFindCommand.ImageTransparentColor = Color.Magenta; this.btnFindCommand.Name = "btnFindCommand"; this.btnFindCommand.Size = new Size(0x59, 0x16); this.btnFindCommand.Text = "查找命令(&F)"; this.btnFindCommand.Click += new EventHandler(this.btnFindCommand_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new Size(6, 0x19); this.btnHelp.DisplayStyle = ToolStripItemDisplayStyle.Image; // this.btnHelp.Image = Resources.Help; this.btnHelp.ImageTransparentColor = Color.Magenta; this.btnHelp.Name = "btnHelp"; this.btnHelp.Size = new Size(0x17, 0x16); this.btnHelp.Text = "帮助页面"; this.btnHelp.ToolTipText = "查看帮助页面"; this.btnHelp.Click += new EventHandler(this.btnHelp_Click); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.labCurrentPath, this.labMessage }); this.statusStrip1.Location = new Point(0, 0x1dd); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(0x39b, 0x18); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; this.labCurrentPath.BorderSides = ToolStripStatusLabelBorderSides.All; this.labCurrentPath.BorderStyle = Border3DStyle.SunkenOuter; this.labCurrentPath.ForeColor = Color.Tomato; this.labCurrentPath.IsLink = true; this.labCurrentPath.LinkBehavior = LinkBehavior.NeverUnderline; this.labCurrentPath.LinkColor = Color.Tomato; this.labCurrentPath.Name = "labCurrentPath"; this.labCurrentPath.Size = new Size(0x61, 0x13); this.labCurrentPath.Text = "labCurrentPath"; this.labCurrentPath.TextAlign = ContentAlignment.MiddleLeft; this.labCurrentPath.Click += new EventHandler(this.labCurrentPath_Click); this.labMessage.Name = "labMessage"; this.labMessage.Size = new Size(0x32b, 0x13); this.labMessage.Spring = true; this.labMessage.Text = "Ready."; this.labMessage.TextAlign = ContentAlignment.MiddleLeft; this.treeView1.Dock = DockStyle.Left; this.treeView1.ImageIndex = 0; this.treeView1.ImageList = this.imageList_0; this.treeView1.Location = new Point(0, 0x19); this.treeView1.Name = "treeView1"; this.treeView1.SelectedImageIndex = 0; this.treeView1.Size = new Size(0xe3, 0x1c4); this.treeView1.TabIndex = 2; this.treeView1.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseDoubleClick); this.treeView1.AfterSelect += new TreeViewEventHandler(this.treeView1_AfterSelect); this.treeView1.NodeMouseClick += new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick); this.treeView1.KeyDown += new KeyEventHandler(this.treeView1_KeyDown); this.imageList_0.ColorDepth = ColorDepth.Depth8Bit; this.imageList_0.ImageSize = new Size(0x10, 0x10); this.imageList_0.TransparentColor = Color.Transparent; this.splitter1.Location = new Point(0xe3, 0x19); this.splitter1.Name = "splitter1"; this.splitter1.Size = new Size(7, 0x1c4); this.splitter1.TabIndex = 3; this.splitter1.TabStop = false; this.panel1.Controls.Add(this.txtSQL); this.panel1.Controls.Add(this.splitter2); this.panel1.Controls.Add(this.txtXML); this.panel1.Dock = DockStyle.Fill; this.panel1.Location = new Point(0xea, 0x19); this.panel1.Name = "panel1"; this.panel1.Size = new Size(0x2b1, 0x1c4); this.panel1.TabIndex = 4; this.txtSQL.Dock = DockStyle.Fill; this.txtSQL.Location = new Point(0, 0); this.txtSQL.Name = "txtSQL"; this.txtSQL.Size = new Size(0x2b1, 0xc0); this.txtSQL.TabIndex = 2; this.splitter2.Dock = DockStyle.Bottom; this.splitter2.Location = new Point(0, 0xc0); this.splitter2.Name = "splitter2"; this.splitter2.Size = new Size(0x2b1, 7); this.splitter2.TabIndex = 1; this.splitter2.TabStop = false; this.txtXML.Dock = DockStyle.Bottom; this.txtXML.SetLanguage("xml"); this.txtXML.Location = new Point(0, 0xc7); this.txtXML.Name = "txtXML"; this.txtXML.Size = new Size(0x2b1, 0xfd); this.txtXML.TabIndex = 0; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.menuAdd, this.menuEdit, this.menuDelete, this.menuPaste, this.toolStripMenuItem1, this.menuCopyName, this.menuCopyXml, this.toolStripMenuItem2, this.menuGenerateCallCode }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(0xb3, 170); this.contextMenuStrip1.Opening += new CancelEventHandler(this.contextMenuStrip1_Opening); // this.menuAdd.Image = Resources.NewDocumentHS; this.menuAdd.Name = "menuAdd"; this.menuAdd.Size = new Size(0xb2, 0x16); this.menuAdd.Text = "新增命令"; this.menuAdd.Click += new EventHandler(this.menuAdd_Click); //this.menuEdit.Image = Resources.EditTableHS; this.menuEdit.Name = "menuEdit"; this.menuEdit.Size = new Size(0xb2, 0x16); this.menuEdit.Text = "修改命令"; this.menuEdit.Click += new EventHandler(this.menuEdit_Click); // this.menuDelete.Image = Resources.DeleteHS; this.menuDelete.Name = "menuDelete"; this.menuDelete.Size = new Size(0xb2, 0x16); this.menuDelete.Text = "删除命令"; this.menuDelete.Click += new EventHandler(this.menuDelete_Click); // this.menuPaste.Image = Resources.PasteHS; this.menuPaste.Name = "menuPaste"; this.menuPaste.Size = new Size(0xb2, 0x16); this.menuPaste.Text = "粘贴命令"; this.menuPaste.Click += new EventHandler(this.menuPaste_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(0xaf, 6); // this.menuCopyName.Image = Resources.CopyHS; this.menuCopyName.Name = "menuCopyName"; this.menuCopyName.Size = new Size(0xb2, 0x16); this.menuCopyName.Text = "复制名称 Ctrl-C"; this.menuCopyName.Click += new EventHandler(this.menuCopyName_Click); this.menuCopyXml.Name = "menuCopyXml"; this.menuCopyXml.Size = new Size(0xb2, 0x16); this.menuCopyXml.Text = "复制节点XML"; this.menuCopyXml.Click += new EventHandler(this.menuCopyXml_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(0xaf, 6); // this.menuGenerateCallCode.Image = Resources.Bitmap_0; this.menuGenerateCallCode.Name = "menuGenerateCallCode"; this.menuGenerateCallCode.Size = new Size(0xb2, 0x16); this.menuGenerateCallCode.Text = "生成调用代码 F12"; this.menuGenerateCallCode.Click += new EventHandler(this.menuGenerateCallCode_Click); this.fileSystemWatcher_0.EnableRaisingEvents = true; this.fileSystemWatcher_0.SynchronizingObject = this; this.fileSystemWatcher_0.Deleted += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed); this.fileSystemWatcher_0.Created += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed); this.fileSystemWatcher_0.Changed += new FileSystemEventHandler(this.fileSystemWatcher_0_Changed); this.timer_0.Enabled = true; this.timer_0.Interval = 500; this.timer_0.Tick += new EventHandler(this.timer_0_Tick); base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x39b, 0x1f5); base.Controls.Add(this.panel1); base.Controls.Add(this.splitter1); base.Controls.Add(this.treeView1); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.toolStrip1); this.MinimumSize = new Size(700, 400); base.Name = "MainForm"; this.Text = "FastDBEngine XmlCommandTool"; base.WindowState = FormWindowState.Maximized; base.Load += new EventHandler(this.MainForm_Load); base.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.panel1.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); this.fileSystemWatcher_0.EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ComponentResourceManager resources = new ComponentResourceManager(typeof(TestForm)); this.ssStatus = new StatusStrip(); this.tsLblStatus = new ToolStripStatusLabel(); this.backgroundWorker1 = new BackgroundWorker(); this.groupBox4 = new GroupBoxEx(); this.pBoxRfOut4 = new PictureBox(); this.pBoxRfOut3 = new PictureBox(); this.pBoxRfOut2 = new PictureBox(); this.pBoxRfOut1 = new PictureBox(); this.pnlRfPaSwitchSel = new Panel(); this.rBtnRfPaSwitchPaIo = new RadioButton(); this.rBtnRfPaSwitchIoPa = new RadioButton(); this.label44 = new Label(); this.label5 = new Label(); this.label34 = new Label(); this.label32 = new Label(); this.label43 = new Label(); this.label6 = new Label(); this.label35 = new Label(); this.label37 = new Label(); this.label42 = new Label(); this.label33 = new Label(); this.label38 = new Label(); this.label36 = new Label(); this.label41 = new Label(); this.label31 = new Label(); this.label39 = new Label(); this.label40 = new Label(); this.label4 = new Label(); this.label3 = new Label(); this.label2 = new Label(); this.label1 = new Label(); this.pnlRfPaSwitchEnable = new Panel(); this.rBtnRfPaSwitchAuto = new RadioButton(); this.rBtnRfPaSwitchManual = new RadioButton(); this.rBtnRfPaSwitchOff = new RadioButton(); this.groupBox3 = new GroupBoxEx(); this.btnRead = new Button(); this.tlRegisters = new TableLayoutPanel(); this.lblAddress = new Label(); this.lblDataWrite = new Label(); this.tBoxRegAddress = new TextBox(); this.tBoxRegValue = new TextBox(); this.btnWrite = new Button(); this.ssStatus.SuspendLayout(); this.groupBox4.SuspendLayout(); ((ISupportInitialize)this.pBoxRfOut4).BeginInit(); ((ISupportInitialize)this.pBoxRfOut3).BeginInit(); ((ISupportInitialize)this.pBoxRfOut2).BeginInit(); ((ISupportInitialize)this.pBoxRfOut1).BeginInit(); this.pnlRfPaSwitchSel.SuspendLayout(); this.pnlRfPaSwitchEnable.SuspendLayout(); this.groupBox3.SuspendLayout(); this.tlRegisters.SuspendLayout(); base.SuspendLayout(); this.ssStatus.Items.AddRange(new ToolStripItem[] { this.tsLblStatus }); this.ssStatus.Location = new Point(0, 0x12a); this.ssStatus.Name = "ssStatus"; this.ssStatus.Size = new Size(0x13f, 0x16); this.ssStatus.TabIndex = 1; this.ssStatus.Text = "statusStrip1"; this.tsLblStatus.Name = "tsLblStatus"; this.tsLblStatus.Size = new Size(11, 0x11); this.tsLblStatus.Text = "-"; this.backgroundWorker1.WorkerReportsProgress = true; this.groupBox4.Controls.Add(this.pBoxRfOut4); this.groupBox4.Controls.Add(this.pBoxRfOut3); this.groupBox4.Controls.Add(this.pBoxRfOut2); this.groupBox4.Controls.Add(this.pBoxRfOut1); this.groupBox4.Controls.Add(this.pnlRfPaSwitchSel); this.groupBox4.Controls.Add(this.label44); this.groupBox4.Controls.Add(this.label5); this.groupBox4.Controls.Add(this.label34); this.groupBox4.Controls.Add(this.label32); this.groupBox4.Controls.Add(this.label43); this.groupBox4.Controls.Add(this.label6); this.groupBox4.Controls.Add(this.label35); this.groupBox4.Controls.Add(this.label37); this.groupBox4.Controls.Add(this.label42); this.groupBox4.Controls.Add(this.label33); this.groupBox4.Controls.Add(this.label38); this.groupBox4.Controls.Add(this.label36); this.groupBox4.Controls.Add(this.label41); this.groupBox4.Controls.Add(this.label31); this.groupBox4.Controls.Add(this.label39); this.groupBox4.Controls.Add(this.label40); this.groupBox4.Controls.Add(this.label4); this.groupBox4.Controls.Add(this.label3); this.groupBox4.Controls.Add(this.label2); this.groupBox4.Controls.Add(this.label1); this.groupBox4.Controls.Add(this.pnlRfPaSwitchEnable); this.groupBox4.Location = new Point(12, 0x76); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new Size(0x127, 0xa7); this.groupBox4.TabIndex = 4; this.groupBox4.TabStop = false; this.groupBox4.Text = "Antena switch control"; this.pBoxRfOut4.Image = (Image)resources.GetObject("pBoxRfOut4.Image"); this.pBoxRfOut4.Location = new Point(0x110, 0x69); this.pBoxRfOut4.Name = "pBoxRfOut4"; this.pBoxRfOut4.Size = new Size(0x10, 0x10); this.pBoxRfOut4.TabIndex = 0x15; this.pBoxRfOut4.TabStop = false; this.pBoxRfOut4.Visible = false; this.pBoxRfOut3.Image = (Image)resources.GetObject("pBoxRfOut3.Image"); this.pBoxRfOut3.Location = new Point(0x110, 0x56); this.pBoxRfOut3.Name = "pBoxRfOut3"; this.pBoxRfOut3.Size = new Size(0x10, 0x10); this.pBoxRfOut3.TabIndex = 0x16; this.pBoxRfOut3.TabStop = false; this.pBoxRfOut3.Visible = false; this.pBoxRfOut2.Image = (Image)resources.GetObject("pBoxRfOut2.Image"); this.pBoxRfOut2.Location = new Point(0x110, 0x43); this.pBoxRfOut2.Name = "pBoxRfOut2"; this.pBoxRfOut2.Size = new Size(0x10, 0x10); this.pBoxRfOut2.TabIndex = 0x18; this.pBoxRfOut2.TabStop = false; this.pBoxRfOut1.Image = (Image)resources.GetObject("pBoxRfOut1.Image"); this.pBoxRfOut1.Location = new Point(0x110, 0x30); this.pBoxRfOut1.Name = "pBoxRfOut1"; this.pBoxRfOut1.Size = new Size(0x10, 0x10); this.pBoxRfOut1.TabIndex = 0x17; this.pBoxRfOut1.TabStop = false; this.pBoxRfOut1.Visible = false; this.pnlRfPaSwitchSel.AutoSize = true; this.pnlRfPaSwitchSel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.pnlRfPaSwitchSel.Controls.Add(this.rBtnRfPaSwitchPaIo); this.pnlRfPaSwitchSel.Controls.Add(this.rBtnRfPaSwitchIoPa); this.pnlRfPaSwitchSel.Enabled = false; this.pnlRfPaSwitchSel.Location = new Point(70, 0x2f); this.pnlRfPaSwitchSel.Name = "pnlRfPaSwitchSel"; this.pnlRfPaSwitchSel.Size = new Size(20, 0x48); this.pnlRfPaSwitchSel.TabIndex = 4; this.rBtnRfPaSwitchPaIo.AutoSize = true; this.rBtnRfPaSwitchPaIo.Checked = true; this.rBtnRfPaSwitchPaIo.Location = new Point(3, 3); this.rBtnRfPaSwitchPaIo.MinimumSize = new Size(0, 30); this.rBtnRfPaSwitchPaIo.Name = "rBtnRfPaSwitchPaIo"; this.rBtnRfPaSwitchPaIo.Size = new Size(14, 30); this.rBtnRfPaSwitchPaIo.TabIndex = 0; this.rBtnRfPaSwitchPaIo.TabStop = true; this.rBtnRfPaSwitchPaIo.UseVisualStyleBackColor = true; this.rBtnRfPaSwitchPaIo.CheckedChanged += new EventHandler(this.rBtnRfPaSwitchSel_CheckedChanged); this.rBtnRfPaSwitchIoPa.AutoSize = true; this.rBtnRfPaSwitchIoPa.Location = new Point(3, 0x27); this.rBtnRfPaSwitchIoPa.Margin = new Padding(3, 4, 3, 3); this.rBtnRfPaSwitchIoPa.MinimumSize = new Size(0, 30); this.rBtnRfPaSwitchIoPa.Name = "rBtnRfPaSwitchIoPa"; this.rBtnRfPaSwitchIoPa.Size = new Size(14, 30); this.rBtnRfPaSwitchIoPa.TabIndex = 0; this.rBtnRfPaSwitchIoPa.UseVisualStyleBackColor = true; this.rBtnRfPaSwitchIoPa.CheckedChanged += new EventHandler(this.rBtnRfPaSwitchSel_CheckedChanged); this.label44.AutoSize = true; this.label44.Location = new Point(0x60, 0x6b); this.label44.Margin = new Padding(3); this.label44.Name = "label44"; this.label44.Size = new Size(0x16, 13); this.label44.TabIndex = 0x10; this.label44.Text = "Pin"; this.label5.AutoSize = true; this.label5.Location = new Point(0x60, 50); this.label5.Margin = new Padding(3); this.label5.Name = "label5"; this.label5.Size = new Size(0x16, 13); this.label5.TabIndex = 15; this.label5.Text = "Pin"; this.label34.AutoSize = true; this.label34.Location = new Point(0xc2, 0x45); this.label34.Margin = new Padding(3); this.label34.Name = "label34"; this.label34.Size = new Size(0x19, 13); this.label34.TabIndex = 20; this.label34.Text = "<=>"; this.label32.AutoSize = true; this.label32.Location = new Point(0x7c, 0x45); this.label32.Margin = new Padding(3); this.label32.Name = "label32"; this.label32.Size = new Size(0x20, 13); this.label32.TabIndex = 0x13; this.label32.Text = "RFIO"; this.label43.AutoSize = true; this.label43.Location = new Point(0xc2, 0x6b); this.label43.Margin = new Padding(3); this.label43.Name = "label43"; this.label43.Size = new Size(0x19, 13); this.label43.TabIndex = 0x12; this.label43.Text = "<=>"; this.label6.AutoSize = true; this.label6.Location = new Point(0x60, 0x45); this.label6.Margin = new Padding(3); this.label6.Name = "label6"; this.label6.Size = new Size(0x16, 13); this.label6.TabIndex = 0x11; this.label6.Text = "Pin"; this.label35.AutoSize = true; this.label35.Location = new Point(0xe1, 0x45); this.label35.Margin = new Padding(3); this.label35.Name = "label35"; this.label35.Size = new Size(0x26, 13); this.label35.TabIndex = 7; this.label35.Text = "RF_IO"; this.label37.AutoSize = true; this.label37.Location = new Point(0x60, 0x58); this.label37.Margin = new Padding(3); this.label37.Name = "label37"; this.label37.Size = new Size(0x16, 13); this.label37.TabIndex = 8; this.label37.Text = "Pin"; this.label42.AutoSize = true; this.label42.Location = new Point(0xe1, 0x6b); this.label42.Margin = new Padding(3); this.label42.Name = "label42"; this.label42.Size = new Size(0x29, 13); this.label42.TabIndex = 5; this.label42.Text = "RF_PA"; this.label33.AutoSize = true; this.label33.Location = new Point(0xc2, 50); this.label33.Margin = new Padding(3); this.label33.Name = "label33"; this.label33.Size = new Size(0x19, 13); this.label33.TabIndex = 6; this.label33.Text = "<=>"; this.label38.AutoSize = true; this.label38.Location = new Point(0x7c, 0x58); this.label38.Margin = new Padding(3); this.label38.Name = "label38"; this.label38.Size = new Size(0x40, 13); this.label38.TabIndex = 9; this.label38.Text = "PA_BOOST"; this.label36.AutoSize = true; this.label36.Location = new Point(0xe1, 50); this.label36.Margin = new Padding(3); this.label36.Name = "label36"; this.label36.Size = new Size(0x29, 13); this.label36.TabIndex = 13; this.label36.Text = "RF_PA"; this.label41.AutoSize = true; this.label41.Location = new Point(0xe1, 0x58); this.label41.Margin = new Padding(3); this.label41.Name = "label41"; this.label41.Size = new Size(0x26, 13); this.label41.TabIndex = 10; this.label41.Text = "RF_IO"; this.label31.AutoSize = true; this.label31.Location = new Point(0x7c, 50); this.label31.Margin = new Padding(3); this.label31.Name = "label31"; this.label31.Size = new Size(0x40, 13); this.label31.TabIndex = 11; this.label31.Text = "PA_BOOST"; this.label39.AutoSize = true; this.label39.Location = new Point(0xc2, 0x58); this.label39.Margin = new Padding(3); this.label39.Name = "label39"; this.label39.Size = new Size(0x19, 13); this.label39.TabIndex = 12; this.label39.Text = "<=>"; this.label40.AutoSize = true; this.label40.Location = new Point(0x7c, 0x6b); this.label40.Margin = new Padding(3); this.label40.Name = "label40"; this.label40.Size = new Size(0x20, 13); this.label40.TabIndex = 14; this.label40.Text = "RFIO"; this.label4.Location = new Point(0x2d, 130); this.label4.Name = "label4"; this.label4.Size = new Size(0xc0, 0x1c); this.label4.TabIndex = 3; this.label4.Text = "To be used only on antenna diversity ref design."; this.label3.AutoSize = true; this.label3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); this.label3.Location = new Point(6, 130); this.label3.Name = "label3"; this.label3.Size = new Size(0x26, 13); this.label3.TabIndex = 3; this.label3.Text = "Note:"; this.label2.AutoSize = true; this.label2.Location = new Point(6, 0x4d); this.label2.Name = "label2"; this.label2.Size = new Size(0x36, 13); this.label2.TabIndex = 2; this.label2.Text = "Selection:"; this.label1.AutoSize = true; this.label1.Location = new Point(6, 0x18); this.label1.Name = "label1"; this.label1.Size = new Size(0x2a, 13); this.label1.TabIndex = 2; this.label1.Text = "Switch:"; this.pnlRfPaSwitchEnable.AutoSize = true; this.pnlRfPaSwitchEnable.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.pnlRfPaSwitchEnable.Controls.Add(this.rBtnRfPaSwitchAuto); this.pnlRfPaSwitchEnable.Controls.Add(this.rBtnRfPaSwitchManual); this.pnlRfPaSwitchEnable.Controls.Add(this.rBtnRfPaSwitchOff); this.pnlRfPaSwitchEnable.Location = new Point(70, 0x13); this.pnlRfPaSwitchEnable.Name = "pnlRfPaSwitchEnable"; this.pnlRfPaSwitchEnable.Size = new Size(170, 0x17); this.pnlRfPaSwitchEnable.TabIndex = 1; this.rBtnRfPaSwitchAuto.AutoSize = true; this.rBtnRfPaSwitchAuto.Location = new Point(3, 3); this.rBtnRfPaSwitchAuto.Name = "rBtnRfPaSwitchAuto"; this.rBtnRfPaSwitchAuto.Size = new Size(0x2f, 0x11); this.rBtnRfPaSwitchAuto.TabIndex = 0; this.rBtnRfPaSwitchAuto.Text = "Auto"; this.rBtnRfPaSwitchAuto.UseVisualStyleBackColor = true; this.rBtnRfPaSwitchAuto.CheckedChanged += new EventHandler(this.rBtnRfPaSwitchEnable_CheckedChanged); this.rBtnRfPaSwitchManual.AutoSize = true; this.rBtnRfPaSwitchManual.Location = new Point(0x38, 2); this.rBtnRfPaSwitchManual.Name = "rBtnRfPaSwitchManual"; this.rBtnRfPaSwitchManual.Size = new Size(60, 0x11); this.rBtnRfPaSwitchManual.TabIndex = 0; this.rBtnRfPaSwitchManual.Text = "Manual"; this.rBtnRfPaSwitchManual.UseVisualStyleBackColor = true; this.rBtnRfPaSwitchManual.CheckedChanged += new EventHandler(this.rBtnRfPaSwitchEnable_CheckedChanged); this.rBtnRfPaSwitchOff.AutoSize = true; this.rBtnRfPaSwitchOff.Checked = true; this.rBtnRfPaSwitchOff.Location = new Point(0x7a, 3); this.rBtnRfPaSwitchOff.Name = "rBtnRfPaSwitchOff"; this.rBtnRfPaSwitchOff.Size = new Size(0x2d, 0x11); this.rBtnRfPaSwitchOff.TabIndex = 0; this.rBtnRfPaSwitchOff.TabStop = true; this.rBtnRfPaSwitchOff.Text = "OFF"; this.rBtnRfPaSwitchOff.UseVisualStyleBackColor = true; this.rBtnRfPaSwitchOff.CheckedChanged += new EventHandler(this.rBtnRfPaSwitchEnable_CheckedChanged); this.groupBox3.Controls.Add(this.btnRead); this.groupBox3.Controls.Add(this.tlRegisters); this.groupBox3.Controls.Add(this.btnWrite); this.groupBox3.Location = new Point(12, 12); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new Size(0x127, 100); this.groupBox3.TabIndex = 0; this.groupBox3.TabStop = false; this.groupBox3.Text = "Registers"; this.btnRead.Location = new Point(0x97, 0x44); this.btnRead.Name = "btnRead"; this.btnRead.Size = new Size(0x41, 0x17); this.btnRead.TabIndex = 2; this.btnRead.Text = "Read"; this.btnRead.UseVisualStyleBackColor = true; this.btnRead.Click += new EventHandler(this.btnRead_Click); this.tlRegisters.AutoSize = true; this.tlRegisters.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tlRegisters.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; this.tlRegisters.ColumnCount = 2; this.tlRegisters.ColumnStyles.Add(new ColumnStyle()); this.tlRegisters.ColumnStyles.Add(new ColumnStyle()); this.tlRegisters.Controls.Add(this.lblAddress, 0, 0); this.tlRegisters.Controls.Add(this.lblDataWrite, 1, 0); this.tlRegisters.Controls.Add(this.tBoxRegAddress, 0, 1); this.tlRegisters.Controls.Add(this.tBoxRegValue, 1, 1); this.tlRegisters.Location = new Point(0x4b, 0x13); this.tlRegisters.Name = "tlRegisters"; this.tlRegisters.RowCount = 2; this.tlRegisters.RowStyles.Add(new RowStyle()); this.tlRegisters.RowStyles.Add(new RowStyle()); this.tlRegisters.Size = new Size(0x91, 0x2b); this.tlRegisters.TabIndex = 0; this.lblAddress.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.lblAddress.Location = new Point(4, 1); this.lblAddress.Name = "lblAddress"; this.lblAddress.Size = new Size(0x41, 20); this.lblAddress.TabIndex = 0; this.lblAddress.Text = "Address"; this.lblAddress.TextAlign = ContentAlignment.MiddleCenter; this.lblDataWrite.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.lblDataWrite.Location = new Point(0x4c, 1); this.lblDataWrite.Name = "lblDataWrite"; this.lblDataWrite.Size = new Size(0x41, 20); this.lblDataWrite.TabIndex = 1; this.lblDataWrite.Text = "Data"; this.lblDataWrite.TextAlign = ContentAlignment.MiddleCenter; this.tBoxRegAddress.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.tBoxRegAddress.Location = new Point(1, 0x16); this.tBoxRegAddress.Margin = new Padding(0); this.tBoxRegAddress.MaxLength = 4; this.tBoxRegAddress.Name = "tBoxRegAddress"; this.tBoxRegAddress.Size = new Size(0x47, 20); this.tBoxRegAddress.TabIndex = 2; this.tBoxRegAddress.Text = "0x00"; this.tBoxRegAddress.TextAlign = HorizontalAlignment.Center; this.tBoxRegAddress.TextChanged += new EventHandler(this.tBox_TextChanged); this.tBoxRegAddress.Enter += new EventHandler(this.txtBox_Enter); this.tBoxRegAddress.Validating += new CancelEventHandler(this.txtBox_Validating); this.tBoxRegAddress.Validated += new EventHandler(this.txtBox_Validated); this.tBoxRegValue.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.tBoxRegValue.Location = new Point(0x49, 0x16); this.tBoxRegValue.Margin = new Padding(0); this.tBoxRegValue.MaxLength = 4; this.tBoxRegValue.Name = "tBoxRegValue"; this.tBoxRegValue.Size = new Size(0x47, 20); this.tBoxRegValue.TabIndex = 3; this.tBoxRegValue.Text = "0x00"; this.tBoxRegValue.TextAlign = HorizontalAlignment.Center; this.tBoxRegValue.TextChanged += new EventHandler(this.tBox_TextChanged); this.tBoxRegValue.Enter += new EventHandler(this.txtBox_Enter); this.tBoxRegValue.Validating += new CancelEventHandler(this.txtBox_Validating); this.tBoxRegValue.Validated += new EventHandler(this.txtBox_Validated); this.btnWrite.Location = new Point(0x4f, 0x44); this.btnWrite.Name = "btnWrite"; this.btnWrite.Size = new Size(0x41, 0x17); this.btnWrite.TabIndex = 1; this.btnWrite.Text = "Write"; this.btnWrite.UseVisualStyleBackColor = true; this.btnWrite.Click += new EventHandler(this.btnWrite_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new Size(0x13f, 320); base.Controls.Add(this.groupBox4); base.Controls.Add(this.groupBox3); base.Controls.Add(this.ssStatus); this.DoubleBuffered = true; base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; base.Icon = (Icon)resources.GetObject("$this.Icon"); base.KeyPreview = true; base.MaximizeBox = false; this.MaximumSize = new Size(0x4b0, 0x4b0); base.Name = "TestForm"; base.StartPosition = FormStartPosition.Manual; this.Text = "Test"; base.Activated += new EventHandler(this.TestForm_Activated); base.FormClosing += new FormClosingEventHandler(this.TestForm_FormClosing); base.Load += new EventHandler(this.TestForm_Load); base.KeyDown += new KeyEventHandler(this.TestForm_KeyDown); this.ssStatus.ResumeLayout(false); this.ssStatus.PerformLayout(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); ((ISupportInitialize)this.pBoxRfOut4).EndInit(); ((ISupportInitialize)this.pBoxRfOut3).EndInit(); ((ISupportInitialize)this.pBoxRfOut2).EndInit(); ((ISupportInitialize)this.pBoxRfOut1).EndInit(); this.pnlRfPaSwitchSel.ResumeLayout(false); this.pnlRfPaSwitchSel.PerformLayout(); this.pnlRfPaSwitchEnable.ResumeLayout(false); this.pnlRfPaSwitchEnable.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); this.tlRegisters.ResumeLayout(false); this.tlRegisters.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
/// <summary> /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器修改 /// 這個方法的內容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.OFD = new System.Windows.Forms.OpenFileDialog(); this.FBO = new System.Windows.Forms.FolderBrowserDialog(); this.label2 = new System.Windows.Forms.Label(); this.txt_File = new System.Windows.Forms.TextBox(); this.txt_Save = new System.Windows.Forms.TextBox(); this.btn_Start = new System.Windows.Forms.Button(); this.btn_File = new System.Windows.Forms.Button(); this.btn_Save = new System.Windows.Forms.Button(); this.lib_File = new System.Windows.Forms.ListBox(); this.rdb_ST = new System.Windows.Forms.RadioButton(); this.rdb_SJ = new System.Windows.Forms.RadioButton(); this.label1 = new System.Windows.Forms.Label(); this.lib_Error = new System.Windows.Forms.ListBox(); this.label3 = new System.Windows.Forms.Label(); this.PB_TotalFile = new System.Windows.Forms.ProgressBar(); this.GB_Server = new System.Windows.Forms.GroupBox(); this.rdb_tennis = new System.Windows.Forms.RadioButton(); this.txt_URL = new System.Windows.Forms.TextBox(); this.rdb_Custom = new System.Windows.Forms.RadioButton(); this.rdb_SK = new System.Windows.Forms.RadioButton(); this.GB_Ver = new System.Windows.Forms.GroupBox(); this.RB_I = new System.Windows.Forms.RadioButton(); this.RB_A = new System.Windows.Forms.RadioButton(); this.btn_Save_Error = new System.Windows.Forms.Button(); this.SFD = new System.Windows.Forms.SaveFileDialog(); this.btn_Stop = new System.Windows.Forms.Button(); this.statusStrip = new System.Windows.Forms.StatusStrip(); this.lab_Status = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_Item = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_DownItem = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_ErrorItem = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_time = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_Execute = new System.Windows.Forms.ToolStripStatusLabel(); this.lab_Download = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.解包選項ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TSM_Log = new System.Windows.Forms.ToolStripMenuItem(); this.TSM_Convert = new System.Windows.Forms.ToolStripMenuItem(); this.TSM_UnPrefab = new System.Windows.Forms.ToolStripMenuItem(); this.TSM_Exclude = new System.Windows.Forms.ToolStripTextBox(); this.TSM_OpenLogForm = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.TST_DLLength = new System.Windows.Forms.ToolStripTextBox(); this.PB_SingleFile = new System.Windows.Forms.ProgressBar(); this.lab_Speed = new System.Windows.Forms.Label(); this.chb_Unity3d = new System.Windows.Forms.CheckBox(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.GB_Server.SuspendLayout(); this.GB_Ver.SuspendLayout(); this.statusStrip.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // OFD // this.OFD.DefaultExt = "txt"; this.OFD.Filter = "文字檔|*.txt|全部格式|*.*"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(10, 67); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(56, 12); this.label2.TabIndex = 1; this.label2.Text = "輸出目錄:"; // // txt_File // this.txt_File.Location = new System.Drawing.Point(12, 42); this.txt_File.Name = "txt_File"; this.txt_File.ReadOnly = true; this.txt_File.Size = new System.Drawing.Size(640, 22); this.txt_File.TabIndex = 2; // // txt_Save // this.txt_Save.Location = new System.Drawing.Point(12, 82); this.txt_Save.Name = "txt_Save"; this.txt_Save.ReadOnly = true; this.txt_Save.Size = new System.Drawing.Size(640, 22); this.txt_Save.TabIndex = 3; // // btn_Start // this.btn_Start.Enabled = false; this.btn_Start.Location = new System.Drawing.Point(621, 329); this.btn_Start.Name = "btn_Start"; this.btn_Start.Size = new System.Drawing.Size(60, 23); this.btn_Start.TabIndex = 4; this.btn_Start.Text = "開始"; this.btn_Start.UseVisualStyleBackColor = true; this.btn_Start.Click += new System.EventHandler(this.btn_Start_Click); // // btn_File // this.btn_File.Location = new System.Drawing.Point(658, 40); this.btn_File.Name = "btn_File"; this.btn_File.Size = new System.Drawing.Size(23, 23); this.btn_File.TabIndex = 5; this.btn_File.Text = "..."; this.btn_File.UseVisualStyleBackColor = true; this.btn_File.Click += new System.EventHandler(this.btn_FIle_Click); // // btn_Save // this.btn_Save.Location = new System.Drawing.Point(658, 80); this.btn_Save.Name = "btn_Save"; this.btn_Save.Size = new System.Drawing.Size(23, 23); this.btn_Save.TabIndex = 6; this.btn_Save.Text = "..."; this.btn_Save.UseVisualStyleBackColor = true; this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click); // // lib_File // this.lib_File.FormattingEnabled = true; this.lib_File.HorizontalScrollbar = true; this.lib_File.ItemHeight = 12; this.lib_File.Location = new System.Drawing.Point(12, 211); this.lib_File.Name = "lib_File"; this.lib_File.Size = new System.Drawing.Size(325, 112); this.lib_File.TabIndex = 7; this.lib_File.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lib_File_MouseDown); // // rdb_ST // this.rdb_ST.AutoSize = true; this.rdb_ST.Checked = true; this.rdb_ST.Location = new System.Drawing.Point(6, 14); this.rdb_ST.Name = "rdb_ST"; this.rdb_ST.Size = new System.Drawing.Size(47, 16); this.rdb_ST.TabIndex = 9; this.rdb_ST.TabStop = true; this.rdb_ST.Text = "台版"; this.rdb_ST.UseVisualStyleBackColor = true; // // rdb_SJ // this.rdb_SJ.AutoSize = true; this.rdb_SJ.Location = new System.Drawing.Point(59, 14); this.rdb_SJ.Name = "rdb_SJ"; this.rdb_SJ.Size = new System.Drawing.Size(47, 16); this.rdb_SJ.TabIndex = 10; this.rdb_SJ.Text = "日版"; this.rdb_SJ.UseVisualStyleBackColor = true; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(10, 27); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(56, 12); this.label1.TabIndex = 0; this.label1.Text = "輸入檔案:"; // // lib_Error // this.lib_Error.FormattingEnabled = true; this.lib_Error.HorizontalScrollbar = true; this.lib_Error.ItemHeight = 12; this.lib_Error.Location = new System.Drawing.Point(356, 211); this.lib_Error.Name = "lib_Error"; this.lib_Error.Size = new System.Drawing.Size(325, 112); this.lib_Error.TabIndex = 11; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(628, 196); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 12); this.label3.TabIndex = 12; this.label3.Text = "錯誤清單"; // // PB_TotalFile // this.PB_TotalFile.Location = new System.Drawing.Point(12, 387); this.PB_TotalFile.Name = "PB_TotalFile"; this.PB_TotalFile.Size = new System.Drawing.Size(669, 23); this.PB_TotalFile.Step = 1; this.PB_TotalFile.TabIndex = 14; // // GB_Server // this.GB_Server.Controls.Add(this.rdb_tennis); this.GB_Server.Controls.Add(this.txt_URL); this.GB_Server.Controls.Add(this.rdb_Custom); this.GB_Server.Controls.Add(this.rdb_SK); this.GB_Server.Controls.Add(this.rdb_ST); this.GB_Server.Controls.Add(this.rdb_SJ); this.GB_Server.Location = new System.Drawing.Point(10, 110); this.GB_Server.Name = "GB_Server"; this.GB_Server.Size = new System.Drawing.Size(671, 59); this.GB_Server.TabIndex = 15; this.GB_Server.TabStop = false; this.GB_Server.Text = "伺服器版本"; // // rdb_tennis // this.rdb_tennis.AutoSize = true; this.rdb_tennis.Location = new System.Drawing.Point(165, 14); this.rdb_tennis.Name = "rdb_tennis"; this.rdb_tennis.Size = new System.Drawing.Size(71, 16); this.rdb_tennis.TabIndex = 14; this.rdb_tennis.TabStop = true; this.rdb_tennis.Text = "網球專用"; this.rdb_tennis.UseVisualStyleBackColor = true; // // txt_URL // this.txt_URL.Location = new System.Drawing.Point(83, 31); this.txt_URL.Name = "txt_URL"; this.txt_URL.ReadOnly = true; this.txt_URL.Size = new System.Drawing.Size(582, 22); this.txt_URL.TabIndex = 13; // // rdb_Custom // this.rdb_Custom.AutoSize = true; this.rdb_Custom.Location = new System.Drawing.Point(6, 36); this.rdb_Custom.Name = "rdb_Custom"; this.rdb_Custom.Size = new System.Drawing.Size(71, 16); this.rdb_Custom.TabIndex = 12; this.rdb_Custom.TabStop = true; this.rdb_Custom.Text = "自訂網址"; this.rdb_Custom.UseVisualStyleBackColor = true; this.rdb_Custom.CheckedChanged += new System.EventHandler(this.rdb_Custom_CheckedChanged); // // rdb_SK // this.rdb_SK.AutoSize = true; this.rdb_SK.Location = new System.Drawing.Point(112, 14); this.rdb_SK.Name = "rdb_SK"; this.rdb_SK.Size = new System.Drawing.Size(47, 16); this.rdb_SK.TabIndex = 11; this.rdb_SK.TabStop = true; this.rdb_SK.Text = "韓版"; this.rdb_SK.UseVisualStyleBackColor = true; // // GB_Ver // this.GB_Ver.Controls.Add(this.RB_I); this.GB_Ver.Controls.Add(this.RB_A); this.GB_Ver.Location = new System.Drawing.Point(12, 175); this.GB_Ver.Name = "GB_Ver"; this.GB_Ver.Size = new System.Drawing.Size(111, 36); this.GB_Ver.TabIndex = 0; this.GB_Ver.TabStop = false; this.GB_Ver.Text = "檔案版本"; // // RB_I // this.RB_I.AutoSize = true; this.RB_I.Location = new System.Drawing.Point(66, 14); this.RB_I.Name = "RB_I"; this.RB_I.Size = new System.Drawing.Size(39, 16); this.RB_I.TabIndex = 1; this.RB_I.Text = "I版"; this.RB_I.UseVisualStyleBackColor = true; // // RB_A // this.RB_A.AutoSize = true; this.RB_A.Checked = true; this.RB_A.Location = new System.Drawing.Point(6, 14); this.RB_A.Name = "RB_A"; this.RB_A.Size = new System.Drawing.Size(43, 16); this.RB_A.TabIndex = 0; this.RB_A.TabStop = true; this.RB_A.Text = "A版"; this.RB_A.UseVisualStyleBackColor = true; // // btn_Save_Error // this.btn_Save_Error.Enabled = false; this.btn_Save_Error.Location = new System.Drawing.Point(460, 329); this.btn_Save_Error.Name = "btn_Save_Error"; this.btn_Save_Error.Size = new System.Drawing.Size(89, 23); this.btn_Save_Error.TabIndex = 16; this.btn_Save_Error.Text = "輸出錯誤清單"; this.btn_Save_Error.UseVisualStyleBackColor = true; this.btn_Save_Error.Click += new System.EventHandler(this.btn_Save_Error_Click); // // SFD // this.SFD.DefaultExt = "txt"; this.SFD.Filter = "文字檔|*.txt"; // // btn_Stop // this.btn_Stop.Enabled = false; this.btn_Stop.Location = new System.Drawing.Point(555, 329); this.btn_Stop.Name = "btn_Stop"; this.btn_Stop.Size = new System.Drawing.Size(60, 23); this.btn_Stop.TabIndex = 17; this.btn_Stop.Text = "停止"; this.btn_Stop.UseVisualStyleBackColor = true; this.btn_Stop.Click += new System.EventHandler(this.btn_Stop_Click); // // statusStrip // this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lab_Status, this.lab_Item, this.lab_DownItem, this.lab_ErrorItem, this.lab_time, this.lab_Execute }); this.statusStrip.Location = new System.Drawing.Point(0, 418); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(693, 22); this.statusStrip.TabIndex = 18; this.statusStrip.Text = "statusStrip1"; // // lab_Status // this.lab_Status.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.lab_Status.Name = "lab_Status"; this.lab_Status.Size = new System.Drawing.Size(43, 17); this.lab_Status.Text = "等待中"; this.lab_Status.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lab_Item // this.lab_Item.Name = "lab_Item"; this.lab_Item.Size = new System.Drawing.Size(56, 17); this.lab_Item.Text = "檔案數: 0"; // // lab_DownItem // this.lab_DownItem.Name = "lab_DownItem"; this.lab_DownItem.Size = new System.Drawing.Size(68, 17); this.lab_DownItem.Text = "已下載數: 0"; // // lab_ErrorItem // this.lab_ErrorItem.Name = "lab_ErrorItem"; this.lab_ErrorItem.Size = new System.Drawing.Size(80, 17); this.lab_ErrorItem.Text = "錯誤檔案數: 0"; // // lab_time // this.lab_time.Name = "lab_time"; this.lab_time.Size = new System.Drawing.Size(92, 17); this.lab_time.Text = "已用時間: 00:00"; // // lab_Execute // this.lab_Execute.Name = "lab_Execute"; this.lab_Execute.Size = new System.Drawing.Size(49, 17); this.lab_Execute.Text = "解包: 無"; // // lab_Download // this.lab_Download.AutoSize = true; this.lab_Download.Location = new System.Drawing.Point(14, 329); this.lab_Download.Name = "lab_Download"; this.lab_Download.Size = new System.Drawing.Size(71, 12); this.lab_Download.TabIndex = 19; this.lab_Download.Text = "下載檔案: 無"; // // timer1 // this.timer1.Interval = 1000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.解包選項ToolStripMenuItem, this.TSM_OpenLogForm, this.toolStripMenuItem1, this.TST_DLLength }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(693, 27); this.menuStrip1.TabIndex = 23; this.menuStrip1.Text = "menuStrip1"; // // 解包選項ToolStripMenuItem // this.解包選項ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.TSM_Log, this.TSM_Convert, this.TSM_UnPrefab, this.TSM_Exclude }); this.解包選項ToolStripMenuItem.Name = "解包選項ToolStripMenuItem"; this.解包選項ToolStripMenuItem.Size = new System.Drawing.Size(67, 23); this.解包選項ToolStripMenuItem.Text = "解包選項"; // // TSM_Log // this.TSM_Log.Checked = true; this.TSM_Log.CheckState = System.Windows.Forms.CheckState.Checked; this.TSM_Log.Name = "TSM_Log"; this.TSM_Log.Size = new System.Drawing.Size(335, 22); this.TSM_Log.Text = "開啟紀錄"; this.TSM_Log.Click += new System.EventHandler(this.TSM_Click); // // TSM_Convert // this.TSM_Convert.Checked = true; this.TSM_Convert.CheckState = System.Windows.Forms.CheckState.Checked; this.TSM_Convert.Name = "TSM_Convert"; this.TSM_Convert.Size = new System.Drawing.Size(335, 22); this.TSM_Convert.Text = "自動轉換解析度"; this.TSM_Convert.Click += new System.EventHandler(this.TSM_Click); // // TSM_UnPrefab // this.TSM_UnPrefab.Checked = true; this.TSM_UnPrefab.CheckState = System.Windows.Forms.CheckState.Checked; this.TSM_UnPrefab.Name = "TSM_UnPrefab"; this.TSM_UnPrefab.Size = new System.Drawing.Size(335, 22); this.TSM_UnPrefab.Text = "不自動解名稱包含下面指定字串的檔案(由\",\"分割)"; this.TSM_UnPrefab.Click += new System.EventHandler(this.TSM_Click); // // TSM_Exclude // this.TSM_Exclude.Name = "TSM_Exclude"; this.TSM_Exclude.Size = new System.Drawing.Size(250, 23); // // TSM_OpenLogForm // this.TSM_OpenLogForm.Name = "TSM_OpenLogForm"; this.TSM_OpenLogForm.Size = new System.Drawing.Size(91, 23); this.TSM_OpenLogForm.Text = "開啟紀錄視窗"; this.TSM_OpenLogForm.Click += new System.EventHandler(this.TSM_Click); // // toolStripMenuItem1 // this.toolStripMenuItem1.Enabled = false; this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(82, 23); this.toolStripMenuItem1.Text = "下載線程數:"; // // TST_DLLength // this.TST_DLLength.Name = "TST_DLLength"; this.TST_DLLength.Size = new System.Drawing.Size(100, 23); // // PB_SingleFile // this.PB_SingleFile.Location = new System.Drawing.Point(12, 358); this.PB_SingleFile.Name = "PB_SingleFile"; this.PB_SingleFile.Size = new System.Drawing.Size(669, 23); this.PB_SingleFile.Step = 1; this.PB_SingleFile.TabIndex = 24; // // lab_Speed // this.lab_Speed.AutoSize = true; this.lab_Speed.Location = new System.Drawing.Point(14, 343); this.lab_Speed.Name = "lab_Speed"; this.lab_Speed.Size = new System.Drawing.Size(82, 12); this.lab_Speed.TabIndex = 25; this.lab_Speed.Text = "0.0 KB / 0.0 KB"; // // chb_Unity3d // this.chb_Unity3d.AutoSize = true; this.chb_Unity3d.Checked = true; this.chb_Unity3d.CheckState = System.Windows.Forms.CheckState.Checked; this.chb_Unity3d.Location = new System.Drawing.Point(129, 190); this.chb_Unity3d.Name = "chb_Unity3d"; this.chb_Unity3d.Size = new System.Drawing.Size(207, 16); this.chb_Unity3d.TabIndex = 26; this.chb_Unity3d.Text = "下載時在檔案名稱後面加上.unity3d"; this.chb_Unity3d.UseVisualStyleBackColor = true; // // richTextBox1 // this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBox1.Location = new System.Drawing.Point(12, 211); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(325, 112); this.richTextBox1.TabIndex = 27; this.richTextBox1.Text = ""; this.richTextBox1.Visible = false; this.richTextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); // // Form1 // this.AllowDrop = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(693, 440); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.chb_Unity3d); this.Controls.Add(this.lab_Speed); this.Controls.Add(this.PB_SingleFile); this.Controls.Add(this.lab_Download); this.Controls.Add(this.statusStrip); this.Controls.Add(this.menuStrip1); this.Controls.Add(this.btn_Stop); this.Controls.Add(this.btn_Save_Error); this.Controls.Add(this.GB_Ver); this.Controls.Add(this.GB_Server); this.Controls.Add(this.PB_TotalFile); this.Controls.Add(this.label3); this.Controls.Add(this.lib_Error); this.Controls.Add(this.lib_File); this.Controls.Add(this.btn_Save); this.Controls.Add(this.btn_File); this.Controls.Add(this.btn_Start); this.Controls.Add(this.txt_Save); this.Controls.Add(this.txt_File); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "Form1"; this.Text = "清單檔案下載器"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); this.Load += new System.EventHandler(this.Form1_Load); this.DragDrop += new System.Windows.Forms.DragEventHandler(this.Form1_DragDrop); this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Form1_DragEnter); this.GB_Server.ResumeLayout(false); this.GB_Server.PerformLayout(); this.GB_Ver.ResumeLayout(false); this.GB_Ver.PerformLayout(); this.statusStrip.ResumeLayout(false); this.statusStrip.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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(BaseForm)); this.FMainMenu = new System.Windows.Forms.MenuStrip(); this.FFormMenu = new System.Windows.Forms.ToolStripMenuItem(); this.FStatusBar = new System.Windows.Forms.StatusStrip(); this.FHintPanel = new System.Windows.Forms.ToolStripStatusLabel(); this.FStatusPanel = new System.Windows.Forms.ToolStripStatusLabel(); this.FToolBar = new System.Windows.Forms.ToolStrip(); this.FContentPanel = new Alphora.Dataphor.Frontend.Client.Windows.Panel(); this.FMainMenu.SuspendLayout(); this.FStatusBar.SuspendLayout(); this.FContentPanel.SuspendLayout(); this.SuspendLayout(); // // FMainMenu // this.FMainMenu.AllowItemReorder = true; this.FMainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FFormMenu }); this.FMainMenu.Location = new System.Drawing.Point(0, 0); this.FMainMenu.Name = "FMainMenu"; this.FMainMenu.Size = new System.Drawing.Size(272, 24); this.FMainMenu.TabIndex = 1; // // FFormMenu // this.FFormMenu.MergeIndex = 100; this.FFormMenu.Name = "FFormMenu"; this.FFormMenu.Size = new System.Drawing.Size(43, 20); this.FFormMenu.Text = "&Form"; // // FStatusBar // this.FStatusBar.AllowItemReorder = true; this.FStatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FHintPanel, this.FStatusPanel }); this.FStatusBar.Location = new System.Drawing.Point(0, 179); this.FStatusBar.Name = "FStatusBar"; this.FStatusBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.FStatusBar.Size = new System.Drawing.Size(272, 22); this.FStatusBar.TabIndex = 3; // // FHintPanel // this.FHintPanel.AutoSize = false; this.FHintPanel.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.FHintPanel.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.FHintPanel.MergeIndex = 100; this.FHintPanel.Name = "FHintPanel"; this.FHintPanel.Size = new System.Drawing.Size(257, 17); this.FHintPanel.Spring = true; this.FHintPanel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FStatusPanel // this.FStatusPanel.MergeIndex = 200; this.FStatusPanel.Name = "FStatusPanel"; this.FStatusPanel.Size = new System.Drawing.Size(0, 17); // // FToolBar // this.FToolBar.Location = new System.Drawing.Point(0, 24); this.FToolBar.Name = "FToolBar"; this.FToolBar.Size = new System.Drawing.Size(272, 25); this.FToolBar.TabIndex = 2; this.FToolBar.ItemAdded += new System.Windows.Forms.ToolStripItemEventHandler(this.ToolBarItemAdded); this.FToolBar.ItemRemoved += new System.Windows.Forms.ToolStripItemEventHandler(this.ToolBarItemDeleted); // // FContentPanel // this.FContentPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.FContentPanel.Paint += new PaintEventHandler(ContentPanelPaint); this.FContentPanel.Location = new System.Drawing.Point(0, 49); this.FContentPanel.Name = "FContentPanel"; this.FContentPanel.Size = new System.Drawing.Size(272, 130); this.FContentPanel.TabIndex = 0; // // BaseForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(272, 201); this.Controls.Add(this.FContentPanel); this.Controls.Add(this.FToolBar); this.Controls.Add(this.FMainMenu); this.Controls.Add(this.FStatusBar); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MainMenuStrip = this.FMainMenu; this.Name = "BaseForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.FMainMenu.ResumeLayout(false); this.FMainMenu.PerformLayout(); this.FStatusBar.ResumeLayout(false); this.FStatusBar.PerformLayout(); this.FContentPanel.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Launcher)); this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.firmwareVersionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pCSoftwareToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.groupBoxApplicationSelection = new System.Windows.Forms.GroupBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.bNVMDatalogger = new System.Windows.Forms.Button(); this.btnFlick = new System.Windows.Forms.Button(); 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.EvalModeButton = new System.Windows.Forms.Button(); this.bGraphicalDatalogger = new System.Windows.Forms.Button(); this.btnTapDemo = new System.Windows.Forms.Button(); this.buttonOrientation = new System.Windows.Forms.Button(); this.buttonTilt = new System.Windows.Forms.Button(); this.buttonFIFOLP = new System.Windows.Forms.Button(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.CommStrip = new System.Windows.Forms.StatusStrip(); this.CommStripButton = new System.Windows.Forms.ToolStripDropDownButton(); this.pnlBootloader = new System.Windows.Forms.Panel(); this.label5 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.mnuMenu = new System.Windows.Forms.MenuStrip(); this.itemAbout = new System.Windows.Forms.ToolStripMenuItem(); this.itemHelpAbout = new System.Windows.Forms.ToolStripMenuItem(); this.groupBoxApplicationSelection.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.CommStrip.SuspendLayout(); this.pnlBootloader.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.mnuMenu.SuspendLayout(); this.SuspendLayout(); // // toolStripStatusLabel // this.toolStripStatusLabel.BackColor = System.Drawing.SystemColors.ButtonFace; this.toolStripStatusLabel.Name = "toolStripStatusLabel"; this.toolStripStatusLabel.Size = new System.Drawing.Size(482, 20); this.toolStripStatusLabel.Spring = true; this.toolStripStatusLabel.Text = "COM Port Not Connected, Please Connect"; this.toolStripStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.firmwareVersionToolStripMenuItem, this.pCSoftwareToolStripMenuItem }); this.aboutToolStripMenuItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; this.aboutToolStripMenuItem.Size = new System.Drawing.Size(57, 20); this.aboutToolStripMenuItem.Text = "About"; // // firmwareVersionToolStripMenuItem // this.firmwareVersionToolStripMenuItem.Name = "firmwareVersionToolStripMenuItem"; this.firmwareVersionToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.firmwareVersionToolStripMenuItem.Text = "Firmware Version"; this.firmwareVersionToolStripMenuItem.Click += new System.EventHandler(this.firmwareVersionToolStripMenuItem_Click); // // pCSoftwareToolStripMenuItem // this.pCSoftwareToolStripMenuItem.Name = "pCSoftwareToolStripMenuItem"; this.pCSoftwareToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.pCSoftwareToolStripMenuItem.Text = "PC Software"; this.pCSoftwareToolStripMenuItem.Click += new System.EventHandler(this.pCSoftwareToolStripMenuItem_Click); // // groupBoxApplicationSelection // this.groupBoxApplicationSelection.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.groupBoxApplicationSelection.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(91)))), ((int)(((byte)(111)))), ((int)(((byte)(123))))); this.groupBoxApplicationSelection.Controls.Add(this.label8); this.groupBoxApplicationSelection.Controls.Add(this.label7); this.groupBoxApplicationSelection.Controls.Add(this.label6); this.groupBoxApplicationSelection.Controls.Add(this.bNVMDatalogger); this.groupBoxApplicationSelection.Controls.Add(this.btnFlick); this.groupBoxApplicationSelection.Controls.Add(this.label4); this.groupBoxApplicationSelection.Controls.Add(this.label3); this.groupBoxApplicationSelection.Controls.Add(this.label2); this.groupBoxApplicationSelection.Controls.Add(this.label1); this.groupBoxApplicationSelection.Controls.Add(this.EvalModeButton); this.groupBoxApplicationSelection.Controls.Add(this.bGraphicalDatalogger); this.groupBoxApplicationSelection.Controls.Add(this.btnTapDemo); this.groupBoxApplicationSelection.Controls.Add(this.buttonOrientation); this.groupBoxApplicationSelection.Controls.Add(this.buttonTilt); this.groupBoxApplicationSelection.Controls.Add(this.buttonFIFOLP); this.groupBoxApplicationSelection.Controls.Add(this.pictureBox2); this.groupBoxApplicationSelection.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBoxApplicationSelection.ForeColor = System.Drawing.Color.AliceBlue; this.groupBoxApplicationSelection.Location = new System.Drawing.Point(11, 86); this.groupBoxApplicationSelection.Name = "groupBoxApplicationSelection"; this.groupBoxApplicationSelection.Size = new System.Drawing.Size(493, 487); this.groupBoxApplicationSelection.TabIndex = 42; this.groupBoxApplicationSelection.TabStop = false; this.groupBoxApplicationSelection.Text = "MMA8451Q"; // // label8 // this.label8.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.ForeColor = System.Drawing.Color.Black; this.label8.Location = new System.Drawing.Point(262, 330); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(201, 46); this.label8.TabIndex = 25; this.label8.Text = "Supports delay\r\nup to 800Hz Full resolution\r\ntethered and untethered"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label7 // this.label7.Enabled = false; this.label7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.ForeColor = System.Drawing.Color.Black; this.label7.Location = new System.Drawing.Point(55, 339); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(201, 28); this.label7.TabIndex = 24; this.label7.Text = "Graphical output\r\nup to 200Hz Full resolution"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.ForeColor = System.Drawing.Color.White; this.label6.Location = new System.Drawing.Point(184, 268); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(136, 16); this.label6.TabIndex = 23; this.label6.Text = "[[ XYZ Dataloggers ]]"; // // bNVMDatalogger // this.bNVMDatalogger.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.bNVMDatalogger.Cursor = System.Windows.Forms.Cursors.Hand; this.bNVMDatalogger.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.bNVMDatalogger.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bNVMDatalogger.ForeColor = System.Drawing.Color.Black; this.bNVMDatalogger.Location = new System.Drawing.Point(262, 287); this.bNVMDatalogger.MinimumSize = new System.Drawing.Size(100, 30); this.bNVMDatalogger.Name = "bNVMDatalogger"; this.bNVMDatalogger.Size = new System.Drawing.Size(201, 40); this.bNVMDatalogger.TabIndex = 22; this.bNVMDatalogger.Text = "NVM Datalogger"; this.bNVMDatalogger.UseVisualStyleBackColor = false; this.bNVMDatalogger.Click += new System.EventHandler(this.bNVMDatalogger_Click); // // btnFlick // this.btnFlick.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.btnFlick.Cursor = System.Windows.Forms.Cursors.Hand; this.btnFlick.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnFlick.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnFlick.ForeColor = System.Drawing.Color.Black; this.btnFlick.Location = new System.Drawing.Point(158, 123); this.btnFlick.Name = "btnFlick"; this.btnFlick.Size = new System.Drawing.Size(201, 40); this.btnFlick.TabIndex = 15; this.btnFlick.Text = "Directional Flick"; this.btnFlick.UseVisualStyleBackColor = false; this.btnFlick.Click += new System.EventHandler(this.btnFlick_Click); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.Color.White; this.label4.Location = new System.Drawing.Point(161, 396); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(185, 16); this.label4.TabIndex = 21; this.label4.Text = "[[ Low Power FIFO Demos ]]"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.Color.White; this.label3.Location = new System.Drawing.Point(161, 104); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(198, 16); this.label3.TabIndex = 20; this.label3.Text = "[[ Basic Directional Gestures ]]"; // // label2 // this.label2.AutoSize = true; this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.White; this.label2.Location = new System.Drawing.Point(184, 22); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(149, 16); this.label2.TabIndex = 19; this.label2.Text = "[[ System Evaluation ]]"; // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(184, 186); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(154, 16); this.label1.TabIndex = 17; this.label1.Text = "[[ Tilt Demonstrations ]]"; // // EvalModeButton // this.EvalModeButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.EvalModeButton.Cursor = System.Windows.Forms.Cursors.Hand; this.EvalModeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.EvalModeButton.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.EvalModeButton.ForeColor = System.Drawing.Color.Black; this.EvalModeButton.Location = new System.Drawing.Point(158, 41); this.EvalModeButton.MinimumSize = new System.Drawing.Size(100, 30); this.EvalModeButton.Name = "EvalModeButton"; this.EvalModeButton.Size = new System.Drawing.Size(201, 40); this.EvalModeButton.TabIndex = 13; this.EvalModeButton.Text = "Full System Evaluation"; this.EvalModeButton.UseVisualStyleBackColor = false; this.EvalModeButton.Click += new System.EventHandler(this.evaluationModeButton_Click); // // bGraphicalDatalogger // this.bGraphicalDatalogger.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.bGraphicalDatalogger.Cursor = System.Windows.Forms.Cursors.Hand; this.bGraphicalDatalogger.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.bGraphicalDatalogger.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bGraphicalDatalogger.ForeColor = System.Drawing.Color.Black; this.bGraphicalDatalogger.Location = new System.Drawing.Point(55, 287); this.bGraphicalDatalogger.MinimumSize = new System.Drawing.Size(100, 30); this.bGraphicalDatalogger.Name = "bGraphicalDatalogger"; this.bGraphicalDatalogger.Size = new System.Drawing.Size(201, 40); this.bGraphicalDatalogger.TabIndex = 13; this.bGraphicalDatalogger.Text = "Graphical Datalogger"; this.bGraphicalDatalogger.UseVisualStyleBackColor = false; this.bGraphicalDatalogger.Click += new System.EventHandler(this.buttonScope_Click); // // btnTapDemo // this.btnTapDemo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.btnTapDemo.Cursor = System.Windows.Forms.Cursors.Hand; this.btnTapDemo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnTapDemo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnTapDemo.ForeColor = System.Drawing.Color.Black; this.btnTapDemo.Location = new System.Drawing.Point(262, 415); this.btnTapDemo.MinimumSize = new System.Drawing.Size(100, 30); this.btnTapDemo.Name = "btnTapDemo"; this.btnTapDemo.Size = new System.Drawing.Size(201, 40); this.btnTapDemo.TabIndex = 4; this.btnTapDemo.Text = "Directional Tap Low-Power with FIFO"; this.btnTapDemo.UseVisualStyleBackColor = false; this.btnTapDemo.Click += new System.EventHandler(this.btnTapDemo_Click); // // buttonOrientation // this.buttonOrientation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.buttonOrientation.Cursor = System.Windows.Forms.Cursors.Hand; this.buttonOrientation.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonOrientation.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonOrientation.ForeColor = System.Drawing.Color.Black; this.buttonOrientation.Location = new System.Drawing.Point(262, 205); this.buttonOrientation.MinimumSize = new System.Drawing.Size(100, 30); this.buttonOrientation.Name = "buttonOrientation"; this.buttonOrientation.Size = new System.Drawing.Size(201, 40); this.buttonOrientation.TabIndex = 5; this.buttonOrientation.Text = "Low Resolution Portrait/Landscape"; this.buttonOrientation.UseVisualStyleBackColor = false; this.buttonOrientation.Click += new System.EventHandler(this.buttonOrientation_Click); // // buttonTilt // this.buttonTilt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.buttonTilt.Cursor = System.Windows.Forms.Cursors.Hand; this.buttonTilt.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonTilt.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonTilt.ForeColor = System.Drawing.Color.Black; this.buttonTilt.Location = new System.Drawing.Point(55, 205); this.buttonTilt.MinimumSize = new System.Drawing.Size(100, 30); this.buttonTilt.Name = "buttonTilt"; this.buttonTilt.Size = new System.Drawing.Size(201, 40); this.buttonTilt.TabIndex = 6; this.buttonTilt.Text = "Hi Resolution Tilt Detection"; this.buttonTilt.UseVisualStyleBackColor = false; this.buttonTilt.Click += new System.EventHandler(this.buttonTilt_Click); // // buttonFIFOLP // this.buttonFIFOLP.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(138)))), ((int)(((byte)(167))))); this.buttonFIFOLP.Cursor = System.Windows.Forms.Cursors.Hand; this.buttonFIFOLP.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonFIFOLP.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonFIFOLP.ForeColor = System.Drawing.Color.Black; this.buttonFIFOLP.Location = new System.Drawing.Point(55, 415); this.buttonFIFOLP.Name = "buttonFIFOLP"; this.buttonFIFOLP.Size = new System.Drawing.Size(201, 40); this.buttonFIFOLP.TabIndex = 0; this.buttonFIFOLP.Text = "Directional Shake Low-Power with FIFO"; this.buttonFIFOLP.UseVisualStyleBackColor = false; this.buttonFIFOLP.Click += new System.EventHandler(this.buttonFIFOLP_Click); // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(6, 25); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(481, 456); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox2.TabIndex = 26; this.pictureBox2.TabStop = false; // // toolStripDropDownButton1 // this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; this.toolStripDropDownButton1.ShowDropDownArrow = false; this.toolStripDropDownButton1.Size = new System.Drawing.Size(20, 20); this.toolStripDropDownButton1.Text = "toolStripDropDownButton1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(23, 23); // // CommStrip // this.CommStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.CommStripButton, this.toolStripStatusLabel }); this.CommStrip.Location = new System.Drawing.Point(0, 576); this.CommStrip.Name = "CommStrip"; this.CommStrip.Size = new System.Drawing.Size(517, 25); this.CommStrip.TabIndex = 47; this.CommStrip.Text = "statusStrip1"; // // CommStripButton // this.CommStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.CommStripButton.Image = ((System.Drawing.Image)(resources.GetObject("CommStripButton.Image"))); this.CommStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.CommStripButton.Name = "CommStripButton"; this.CommStripButton.ShowDropDownArrow = false; this.CommStripButton.Size = new System.Drawing.Size(20, 23); this.CommStripButton.Text = "toolStripDropDownButton1"; this.CommStripButton.Click += new System.EventHandler(this.CommStripButton_Click); // // pnlBootloader // this.pnlBootloader.BackColor = System.Drawing.Color.White; this.pnlBootloader.Controls.Add(this.label5); this.pnlBootloader.Location = new System.Drawing.Point(0, 31); this.pnlBootloader.Name = "pnlBootloader"; this.pnlBootloader.Size = new System.Drawing.Size(517, 31); this.pnlBootloader.TabIndex = 22; // // label5 // this.label5.AutoSize = true; this.label5.Cursor = System.Windows.Forms.Cursors.Hand; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.Color.Blue; this.label5.Location = new System.Drawing.Point(46, 6); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(429, 20); this.label5.TabIndex = 1; this.label5.Text = "The board is in Bootloader mode. Click here to upgrade FW."; this.label5.Click += new System.EventHandler(this.label5_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(-323, 24); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(840, 60); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox1.TabIndex = 48; this.pictureBox1.TabStop = false; // // mnuMenu // this.mnuMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.itemAbout }); this.mnuMenu.Location = new System.Drawing.Point(0, 0); this.mnuMenu.Name = "mnuMenu"; this.mnuMenu.Size = new System.Drawing.Size(517, 28); this.mnuMenu.TabIndex = 49; this.mnuMenu.Text = "menuStrip1"; // // itemAbout // this.itemAbout.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.itemHelpAbout }); this.itemAbout.Name = "itemAbout"; this.itemAbout.Size = new System.Drawing.Size(53, 24); this.itemAbout.Text = "Help"; // // itemHelpAbout // this.itemHelpAbout.Name = "itemHelpAbout"; this.itemHelpAbout.Size = new System.Drawing.Size(119, 24); this.itemHelpAbout.Text = "About"; this.itemHelpAbout.Click += new System.EventHandler(this.itemHelpAbout_Click); // // Launcher // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(91)))), ((int)(((byte)(111)))), ((int)(((byte)(123))))); this.ClientSize = new System.Drawing.Size(517, 601); this.Controls.Add(this.pnlBootloader); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.CommStrip); this.Controls.Add(this.mnuMenu); this.Controls.Add(this.groupBoxApplicationSelection); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MainMenuStrip = this.mnuMenu; this.MaximizeBox = false; this.Name = "Launcher"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "MMA845x Demos Launcher"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Apps_FormClosing); this.groupBoxApplicationSelection.ResumeLayout(false); this.groupBoxApplicationSelection.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.CommStrip.ResumeLayout(false); this.CommStrip.PerformLayout(); this.pnlBootloader.ResumeLayout(false); this.pnlBootloader.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.mnuMenu.ResumeLayout(false); this.mnuMenu.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.mnuContext = new System.Windows.Forms.ContextMenuStrip(this.components); this.tsmiCopyRows = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiCopyColumn = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); this.tsmiUncheckAll = new System.Windows.Forms.ToolStripMenuItem(); this.tsmiCheckAll = new System.Windows.Forms.ToolStripMenuItem(); this.btnSave = new System.Windows.Forms.Button(); this.btnExemptNone = new System.Windows.Forms.Button(); this.btnExemptAll = new System.Windows.Forms.Button(); this.lblExplainText = new System.Windows.Forms.Label(); this.lnkLearn = new System.Windows.Forms.LinkLabel(); this.btnRefresh = new System.Windows.Forms.Button(); this.lvAppContainers = new EnableLoopback.DoubleBufferedListView(); this.chDisplayName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chPackageFullName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chACName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chACSID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chUserSID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chBinaries = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.statusStrip1.SuspendLayout(); this.mnuContext.SuspendLayout(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsslStatus }); this.statusStrip1.Location = new System.Drawing.Point(0, 319); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(761, 22); this.statusStrip1.TabIndex = 7; this.statusStrip1.Text = "statusStrip1"; // // tsslStatus // this.tsslStatus.Name = "tsslStatus"; this.tsslStatus.Size = new System.Drawing.Size(207, 17); this.tsslStatus.Text = "©2012 Telerik. All rights reserved."; // // mnuContext // this.mnuContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsmiCopyRows, this.tsmiCopyColumn, this.toolStripMenuItem2, this.tsmiUncheckAll, this.tsmiCheckAll }); this.mnuContext.Name = "mnuContext"; this.mnuContext.Size = new System.Drawing.Size(191, 98); this.mnuContext.Opening += new System.ComponentModel.CancelEventHandler(this.mnuContext_Opening); // // tsmiCopyRows // this.tsmiCopyRows.Name = "tsmiCopyRows"; this.tsmiCopyRows.Size = new System.Drawing.Size(190, 22); this.tsmiCopyRows.Text = "&Copy selected rows"; this.tsmiCopyRows.Click += new System.EventHandler(this.tsmiCopyRows_Click); // // tsmiCopyColumn // this.tsmiCopyColumn.Name = "tsmiCopyColumn"; this.tsmiCopyColumn.Size = new System.Drawing.Size(190, 22); this.tsmiCopyColumn.Text = "Copy &this column"; this.tsmiCopyColumn.Click += new System.EventHandler(this.tsmiCopyColumn_Click); // // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(187, 6); // // tsmiUncheckAll // this.tsmiUncheckAll.Name = "tsmiUncheckAll"; this.tsmiUncheckAll.Size = new System.Drawing.Size(190, 22); this.tsmiUncheckAll.Text = "Exempt &None"; this.tsmiUncheckAll.Click += new System.EventHandler(this.tsmiUncheckAll_Click); // // tsmiCheckAll // this.tsmiCheckAll.Name = "tsmiCheckAll"; this.tsmiCheckAll.Size = new System.Drawing.Size(190, 22); this.tsmiCheckAll.Text = "Exempt &All"; this.tsmiCheckAll.Click += new System.EventHandler(this.btnExemptAll_Click); // // btnSave // this.btnSave.Enabled = false; this.btnSave.Font = new System.Drawing.Font("Segoe UI", 9F); this.btnSave.Location = new System.Drawing.Point(371, 42); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(103, 31); this.btnSave.TabIndex = 4; this.btnSave.Text = "&Save Changes"; this.btnSave.UseVisualStyleBackColor = true; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnExemptNone // this.btnExemptNone.Font = new System.Drawing.Font("Segoe UI", 9F); this.btnExemptNone.Location = new System.Drawing.Point(269, 42); this.btnExemptNone.Name = "btnExemptNone"; this.btnExemptNone.Size = new System.Drawing.Size(96, 31); this.btnExemptNone.TabIndex = 2; this.btnExemptNone.Text = "Exempt &None"; this.btnExemptNone.UseVisualStyleBackColor = true; this.btnExemptNone.Click += new System.EventHandler(this.btnExemptNone_Click); // // btnExemptAll // this.btnExemptAll.Font = new System.Drawing.Font("Segoe UI", 9F); this.btnExemptAll.Location = new System.Drawing.Point(186, 42); this.btnExemptAll.Name = "btnExemptAll"; this.btnExemptAll.Size = new System.Drawing.Size(77, 31); this.btnExemptAll.TabIndex = 1; this.btnExemptAll.Text = "Exempt &All"; this.btnExemptAll.UseVisualStyleBackColor = true; this.btnExemptAll.Click += new System.EventHandler(this.btnExemptAll_Click); // // lblExplainText // this.lblExplainText.AutoEllipsis = true; this.lblExplainText.Dock = System.Windows.Forms.DockStyle.Top; this.lblExplainText.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblExplainText.Location = new System.Drawing.Point(0, 0); this.lblExplainText.Name = "lblExplainText"; this.lblExplainText.Padding = new System.Windows.Forms.Padding(5); this.lblExplainText.Size = new System.Drawing.Size(761, 50); this.lblExplainText.TabIndex = 0; this.lblExplainText.Text = "For security and reliability reasons, Windows 8 blocks apps from sending network " + "traffic to the local computer. This utility enables removal of this restriction " + "for debugging purposes."; this.lblExplainText.UseMnemonic = false; // // lnkLearn // this.lnkLearn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lnkLearn.AutoSize = true; this.lnkLearn.Font = new System.Drawing.Font("Segoe UI", 9F); this.lnkLearn.LinkArea = new System.Windows.Forms.LinkArea(0, 14); this.lnkLearn.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; this.lnkLearn.Location = new System.Drawing.Point(670, 50); this.lnkLearn.Name = "lnkLearn"; this.lnkLearn.Size = new System.Drawing.Size(76, 15); this.lnkLearn.TabIndex = 5; this.lnkLearn.TabStop = true; this.lnkLearn.Text = "&Learn more..."; this.lnkLearn.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkLearn_LinkClicked); this.lnkLearn.MouseHover += new System.EventHandler(this.lnkLearn_MouseHover); // // btnRefresh // this.btnRefresh.Font = new System.Drawing.Font("Segoe UI", 9F); this.btnRefresh.Image = global::EnableLoopback.Properties.Resources.EnableLoopbackRefresh; this.btnRefresh.Location = new System.Drawing.Point(8, 42); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(80, 31); this.btnRefresh.TabIndex = 3; this.btnRefresh.Text = "&Refresh"; this.btnRefresh.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btnRefresh.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); // // lvAppContainers // this.lvAppContainers.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.lvAppContainers.BackgroundImageTiled = true; this.lvAppContainers.BorderStyle = System.Windows.Forms.BorderStyle.None; this.lvAppContainers.CheckBoxes = true; this.lvAppContainers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.chDisplayName, this.chDescription, this.chPackageFullName, this.chACName, this.chACSID, this.chUserSID, this.chBinaries }); this.lvAppContainers.ContextMenuStrip = this.mnuContext; this.lvAppContainers.Font = new System.Drawing.Font("Segoe UI", 9F); this.lvAppContainers.FullRowSelect = true; this.lvAppContainers.GridLines = true; this.lvAppContainers.HideSelection = false; this.lvAppContainers.Location = new System.Drawing.Point(0, 79); this.lvAppContainers.Name = "lvAppContainers"; this.lvAppContainers.Size = new System.Drawing.Size(761, 237); this.lvAppContainers.TabIndex = 6; this.lvAppContainers.UseCompatibleStateImageBehavior = false; this.lvAppContainers.View = System.Windows.Forms.View.Details; this.lvAppContainers.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lvAppContainers_ColumnClick); this.lvAppContainers.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lvAppContainers_KeyDown); // // chDisplayName // this.chDisplayName.Text = "DisplayName"; this.chDisplayName.Width = 143; // // chDescription // this.chDescription.Text = "Description"; this.chDescription.Width = 120; // // chPackageFullName // this.chPackageFullName.Text = "Package"; // // chACName // this.chACName.Text = "AC Name"; this.chACName.Width = 65; // // chACSID // this.chACSID.Text = "AC SID"; this.chACSID.Width = 99; // // chUserSID // this.chUserSID.Text = "AC User(s)"; this.chUserSID.Width = 118; // // chBinaries // this.chBinaries.Text = "Binaries"; this.chBinaries.Width = 150; // // frmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(761, 341); this.Controls.Add(this.btnSave); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.btnExemptNone); this.Controls.Add(this.lvAppContainers); this.Controls.Add(this.btnExemptAll); this.Controls.Add(this.lblExplainText); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.lnkLearn); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MinimumSize = new System.Drawing.Size(516, 270); this.Name = "frmMain"; this.Text = "AppContainer Loopback Exemption Utility"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmMain_FormClosing); this.Load += new System.EventHandler(this.frmMain_Load); this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.frmMain_KeyUp); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.mnuContext.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmEmpleado)); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.lblInfo = new System.Windows.Forms.ToolStripStatusLabel(); this.label1 = new System.Windows.Forms.Label(); this.txtCodigo = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.txtNombreCompleto = new System.Windows.Forms.TextBox(); this.btnCerrar = new System.Windows.Forms.Button(); this.btnGuardar = new System.Windows.Forms.Button(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lblInfo }); this.statusStrip1.Location = new System.Drawing.Point(0, 103); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(453, 22); this.statusStrip1.TabIndex = 15; this.statusStrip1.Text = "statusStrip1"; // // lblInfo // this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(0, 17); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(12, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(46, 13); this.label1.TabIndex = 16; this.label1.Text = "Codigo"; // // txtCodigo // this.txtCodigo.Location = new System.Drawing.Point(126, 13); this.txtCodigo.Name = "txtCodigo"; this.txtCodigo.Size = new System.Drawing.Size(100, 20); this.txtCodigo.TabIndex = 17; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(12, 42); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(105, 13); this.label2.TabIndex = 18; this.label2.Text = "Nombre completo"; // // txtNombreCompleto // this.txtNombreCompleto.Location = new System.Drawing.Point(126, 39); this.txtNombreCompleto.Name = "txtNombreCompleto"; this.txtNombreCompleto.Size = new System.Drawing.Size(315, 20); this.txtNombreCompleto.TabIndex = 19; // // btnCerrar // this.btnCerrar.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCerrar.Image = ((System.Drawing.Image)(resources.GetObject("btnCerrar.Image"))); this.btnCerrar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnCerrar.Location = new System.Drawing.Point(349, 67); this.btnCerrar.Name = "btnCerrar"; this.btnCerrar.Size = new System.Drawing.Size(92, 28); this.btnCerrar.TabIndex = 21; this.btnCerrar.Text = "&Cerrar"; this.btnCerrar.UseVisualStyleBackColor = true; // // btnGuardar // this.btnGuardar.Image = ((System.Drawing.Image)(resources.GetObject("btnGuardar.Image"))); this.btnGuardar.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnGuardar.Location = new System.Drawing.Point(256, 67); this.btnGuardar.Name = "btnGuardar"; this.btnGuardar.Size = new System.Drawing.Size(92, 28); this.btnGuardar.TabIndex = 20; this.btnGuardar.Text = "&Guardar"; this.btnGuardar.UseVisualStyleBackColor = true; this.btnGuardar.Click += new System.EventHandler(this.BtnGuardarClick); // // FrmEmpleado // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(453, 125); this.Controls.Add(this.btnCerrar); this.Controls.Add(this.btnGuardar); this.Controls.Add(this.txtNombreCompleto); this.Controls.Add(this.label2); this.Controls.Add(this.txtCodigo); this.Controls.Add(this.label1); this.Controls.Add(this.statusStrip1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "FrmEmpleado"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Empleado"; this.Load += new System.EventHandler(this.FrmEmpleadoLoad); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <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(Form1)); this.htmluiControl1 = new Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl(); this.statusBar1 = new System.Windows.Forms.StatusStrip(); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.checkBox1 = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv(); this.gradientPanel1 = new Syncfusion.Windows.Forms.Tools.GradientPanel(); this.panel4 = new System.Windows.Forms.Panel(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).BeginInit(); this.statusBar1.SuspendLayout(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).BeginInit(); this.gradientPanel1.SuspendLayout(); this.panel4.SuspendLayout(); this.SuspendLayout(); // // htmluiControl1 // this.htmluiControl1.AutoScroll = true; this.htmluiControl1.AutoScrollMinSize = new System.Drawing.Size(337, 315); this.htmluiControl1.BackColor = System.Drawing.Color.White; this.htmluiControl1.DefaultFormat.BackgroundColor = System.Drawing.SystemColors.Control; this.htmluiControl1.DefaultFormat.ForeColor = System.Drawing.SystemColors.ControlText; this.htmluiControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.htmluiControl1.Location = new System.Drawing.Point(0, 0); this.htmluiControl1.Name = "htmluiControl1"; this.htmluiControl1.ShowTitle = false; this.htmluiControl1.Size = new System.Drawing.Size(354, 330); this.htmluiControl1.TabIndex = 0; this.htmluiControl1.Text = resources.GetString("htmluiControl1.Text"); this.htmluiControl1.LoadError += new Syncfusion.Windows.Forms.HTMLUI.LoadErrorEventHandler(this.htmluiControl1_LoadError); this.htmluiControl1.LoadFinished += new System.EventHandler(this.htmluiControl1_LoadFinished); // // statusBar1 // this.statusBar1.BackColor = System.Drawing.SystemColors.Window; this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill; this.statusBar1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1 }); this.statusBar1.Location = new System.Drawing.Point(0, 0); this.statusBar1.Name = "statusBar1"; this.statusBar1.Padding = new System.Windows.Forms.Padding(3); this.statusBar1.Size = new System.Drawing.Size(532, 22); this.statusBar1.TabIndex = 1; this.statusBar1.Text = "statusBar1"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.White; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.panel2); this.panel1.Controls.Add(this.checkBox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.ForeColor = System.Drawing.SystemColors.ControlText; this.panel1.Location = new System.Drawing.Point(10, 10); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(176, 332); this.panel1.TabIndex = 2; // // panel2 // this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; this.panel2.BackColor = System.Drawing.Color.White; this.panel2.Controls.Add(this.panel3); this.panel2.Location = new System.Drawing.Point(7, 112); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(160, 88); this.panel2.TabIndex = 3; // // panel3 // this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(198)))), ((int)(((byte)(220))))); this.panel3.Controls.Add(this.label2); this.panel3.Controls.Add(this.label1); this.panel3.Location = new System.Drawing.Point(2, 2); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(156, 84); this.panel3.TabIndex = 0; // // label2 // this.label2.BackColor = System.Drawing.Color.White; this.label2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(0, 0); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(160, 24); this.label2.TabIndex = 4; this.label2.Text = "Action"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label1 // this.label1.BackColor = System.Drawing.Color.White; this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.Black; this.label1.Location = new System.Drawing.Point(2, 28); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(150, 54); this.label1.TabIndex = 2; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // checkBox1 // this.checkBox1.Anchor = System.Windows.Forms.AnchorStyles.Top; this.checkBox1.DrawFocusRectangle = false; this.checkBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBox1.ForeColor = System.Drawing.Color.Black; this.checkBox1.Location = new System.Drawing.Point(7, 24); this.checkBox1.MetroColor = System.Drawing.Color.DarkGray; this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(160, 72); this.checkBox1.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro; this.checkBox1.TabIndex = 2; this.checkBox1.Text = "Check To Include Mouse Leave Event"; this.checkBox1.ThemesEnabled = false; // // gradientPanel1 // this.gradientPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.gradientPanel1.Controls.Add(this.htmluiControl1); this.gradientPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.gradientPanel1.Location = new System.Drawing.Point(186, 10); this.gradientPanel1.Name = "gradientPanel1"; this.gradientPanel1.Size = new System.Drawing.Size(356, 332); this.gradientPanel1.TabIndex = 3; // // panel4 // this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.Controls.Add(this.statusBar1); this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel4.Location = new System.Drawing.Point(10, 333); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(692, 32); this.panel4.TabIndex = 4; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 19); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 15); this.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.CaptionAlign = System.Windows.Forms.HorizontalAlignment.Center; this.ClientSize = new System.Drawing.Size(552, 374); this.Controls.Add(this.gradientPanel1); this.Controls.Add(this.panel1); this.Controls.Add(this.panel4); this.DropShadow = true; this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(564, 410); this.Name = "Form1"; this.Padding = new System.Windows.Forms.Padding(10); this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Bubbling Events"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.htmluiControl1)).EndInit(); this.statusBar1.ResumeLayout(false); this.statusBar1.PerformLayout(); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.checkBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gradientPanel1)).EndInit(); this.gradientPanel1.ResumeLayout(false); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); this.statusStrip1 = new StatusStrip(); this.StatusLabel = new ToolStripStatusLabel(); this.tabControl1 = new TabControl(); this.tabPage1 = new TabPage(); this.tableLayoutPanel1 = new TableLayoutPanel(); this.panel1 = new Panel(); this.button_CLS = new Button(); this.label_Trace = new Label(); this.button_Test = new Button(); this.label6 = new Label(); this.button_RescanPorts = new Button(); this.numOfTraces = new NumericUpDown(); this.label5 = new Label(); this.button_collect = new Button(); this.comboBox_Baud = new ComboBox(); this.label2 = new Label(); this.label1 = new Label(); this.comboBox_Port = new ComboBox(); this.button_Open = new Button(); this.label3 = new Label(); this.textBox_PlainText = new TextBox(); this.button_Send = new Button(); this.richTextBox_Console = new RichTextBox(); this.tabPage2 = new TabPage(); this.buttonScope = new Button(); this.label4 = new Label(); this.comboBox_Scope = new ComboBox(); this.serialPort_Main = new SerialPort(this.components); this.label7 = new Label(); this.textBox_Key = new TextBox(); this.button_updateKey = new Button(); this.statusStrip1.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.panel1.SuspendLayout(); this.numOfTraces.BeginInit(); this.tabPage2.SuspendLayout(); this.SuspendLayout(); this.statusStrip1.Items.AddRange(new ToolStripItem[1] { (ToolStripItem)this.StatusLabel }); this.statusStrip1.Location = new Point(0, 608); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(921, 22); this.statusStrip1.TabIndex = 0; this.statusStrip1.Text = "statusStrip1"; this.StatusLabel.Name = "StatusLabel"; this.StatusLabel.Size = new Size(39, 17); this.StatusLabel.Text = "Ready"; this.tabControl1.Controls.Add((Control)this.tabPage1); this.tabControl1.Controls.Add((Control)this.tabPage2); this.tabControl1.Dock = DockStyle.Fill; this.tabControl1.Location = new Point(0, 0); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new Size(921, 608); this.tabControl1.TabIndex = 2; this.tabPage1.Controls.Add((Control)this.tableLayoutPanel1); this.tabPage1.Location = new Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new Padding(3); this.tabPage1.Size = new Size(913, 582); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Control"; this.tabPage1.UseVisualStyleBackColor = true; this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f)); this.tableLayoutPanel1.Controls.Add((Control)this.panel1, 0, 0); this.tableLayoutPanel1.Controls.Add((Control)this.richTextBox_Console, 0, 1); this.tableLayoutPanel1.Dock = DockStyle.Fill; this.tableLayoutPanel1.Location = new Point(3, 3); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 130f)); this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100f)); this.tableLayoutPanel1.Size = new Size(907, 576); this.tableLayoutPanel1.TabIndex = 1; this.panel1.Controls.Add((Control)this.button_updateKey); this.panel1.Controls.Add((Control)this.textBox_Key); this.panel1.Controls.Add((Control)this.label7); this.panel1.Controls.Add((Control)this.button_CLS); this.panel1.Controls.Add((Control)this.label_Trace); this.panel1.Controls.Add((Control)this.button_Test); this.panel1.Controls.Add((Control)this.label6); this.panel1.Controls.Add((Control)this.button_RescanPorts); this.panel1.Controls.Add((Control)this.numOfTraces); this.panel1.Controls.Add((Control)this.label5); this.panel1.Controls.Add((Control)this.button_collect); this.panel1.Controls.Add((Control)this.comboBox_Baud); this.panel1.Controls.Add((Control)this.label2); this.panel1.Controls.Add((Control)this.label1); this.panel1.Controls.Add((Control)this.comboBox_Port); this.panel1.Controls.Add((Control)this.button_Open); this.panel1.Controls.Add((Control)this.label3); this.panel1.Controls.Add((Control)this.textBox_PlainText); this.panel1.Controls.Add((Control)this.button_Send); this.panel1.Dock = DockStyle.Fill; this.panel1.Location = new Point(3, 3); this.panel1.Name = "panel1"; this.panel1.Size = new Size(901, 124); this.panel1.TabIndex = 2; this.button_CLS.Location = new Point(798, 87); this.button_CLS.Name = "button_CLS"; this.button_CLS.Size = new Size(86, 23); this.button_CLS.TabIndex = 17; this.button_CLS.Text = "Clear Console"; this.button_CLS.UseVisualStyleBackColor = true; this.button_CLS.Click += new EventHandler(this.button_CLS_Click); this.label_Trace.AutoSize = true; this.label_Trace.Font = new Font("Tahoma", 18f, FontStyle.Regular, GraphicsUnit.Point, (byte)0); this.label_Trace.Location = new Point(581, 79); this.label_Trace.Name = "label_Trace"; this.label_Trace.Size = new Size(81, 29); this.label_Trace.TabIndex = 16; this.label_Trace.Text = "Trace:"; this.button_Test.Enabled = false; this.button_Test.Location = new Point(394, 47); this.button_Test.Name = "button_Test"; this.button_Test.Size = new Size(75, 23); this.button_Test.TabIndex = 15; this.button_Test.Text = "Test"; this.button_Test.UseVisualStyleBackColor = true; this.button_Test.Click += new EventHandler(this.button_Test_Click); this.label6.AutoSize = true; this.label6.Location = new Point(212, 51); this.label6.Name = "label6"; this.label6.Size = new Size(80, 13); this.label6.TabIndex = 14; this.label6.Text = "(Maximum 500)"; this.button_RescanPorts.Font = new Font("Segoe MDL2 Assets", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0); this.button_RescanPorts.Location = new Point(756, 20); this.button_RescanPorts.Name = "button_RescanPorts"; this.button_RescanPorts.Size = new Size(21, 23); this.button_RescanPorts.TabIndex = 13; this.button_RescanPorts.UseVisualStyleBackColor = true; this.button_RescanPorts.Click += new EventHandler(this.button_RescanPorts_Click); this.numOfTraces.Location = new Point(91, 48); this.numOfTraces.Maximum = new Decimal(new int[4] { 10000, 0, 0, 0 }); this.numOfTraces.Name = "numOfTraces"; this.numOfTraces.Size = new Size(114, 21); this.numOfTraces.TabIndex = 12; this.numOfTraces.Value = new Decimal(new int[4] { 5, 0, 0, 0 }); this.label5.AutoSize = true; this.label5.Location = new Point(13, 51); this.label5.Name = "label5"; this.label5.Size = new Size(72, 13); this.label5.TabIndex = 11; this.label5.Text = "No. of Traces"; this.button_collect.Enabled = false; this.button_collect.Location = new Point(313, 48); this.button_collect.Name = "button_collect"; this.button_collect.Size = new Size(75, 23); this.button_collect.TabIndex = 10; this.button_collect.Text = "Collect"; this.button_collect.UseVisualStyleBackColor = true; this.button_collect.Click += new EventHandler(this.collect_Click); this.comboBox_Baud.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBox_Baud.FormattingEnabled = true; this.comboBox_Baud.Items.AddRange(new object[9] { (object)"600", (object)"4800", (object)"9600", (object)"38400", (object)"57600", (object)"115200", (object)"983600", (object)"1000000", (object)"2000000" }); this.comboBox_Baud.Location = new Point(586, 49); this.comboBox_Baud.Name = "comboBox_Baud"; this.comboBox_Baud.Size = new Size(168, 21); this.comboBox_Baud.TabIndex = 9; this.label2.AutoSize = true; this.label2.Location = new Point(513, 51); this.label2.Name = "label2"; this.label2.Size = new Size(57, 13); this.label2.TabIndex = 8; this.label2.Text = "Baud Rate"; this.label1.AutoSize = true; this.label1.Location = new Point(543, 24); this.label1.Name = "label1"; this.label1.Size = new Size(27, 13); this.label1.TabIndex = 7; this.label1.Text = "Port"; this.comboBox_Port.DropDownStyle = ComboBoxStyle.DropDownList; this.comboBox_Port.FormattingEnabled = true; this.comboBox_Port.Location = new Point(586, 21); this.comboBox_Port.Name = "comboBox_Port"; this.comboBox_Port.Size = new Size(168, 21); this.comboBox_Port.TabIndex = 6; this.button_Open.Location = new Point(798, 20); this.button_Open.Name = "button_Open"; this.button_Open.Size = new Size(86, 23); this.button_Open.TabIndex = 5; this.button_Open.Text = "Open"; this.button_Open.UseVisualStyleBackColor = true; this.button_Open.Click += new EventHandler(this.button_Open_Click); this.label3.AutoSize = true; this.label3.Location = new Point(34, 24); this.label3.Name = "label3"; this.label3.Size = new Size(51, 13); this.label3.TabIndex = 2; this.label3.Text = "PlainText"; this.textBox_PlainText.Location = new Point(91, 21); this.textBox_PlainText.Name = "textBox_PlainText"; this.textBox_PlainText.Size = new Size(216, 21); this.textBox_PlainText.TabIndex = 1; this.textBox_PlainText.Text = "489DB4B302172961CC2BCB4E00E28EB7"; this.button_Send.Enabled = false; this.button_Send.Location = new Point(313, 19); this.button_Send.Name = "button_Send"; this.button_Send.Size = new Size(75, 23); this.button_Send.TabIndex = 0; this.button_Send.Text = "Send"; this.button_Send.UseVisualStyleBackColor = true; this.button_Send.Click += new EventHandler(this.buttonSend_Click); this.richTextBox_Console.BackColor = Color.Black; this.richTextBox_Console.Dock = DockStyle.Fill; this.richTextBox_Console.Font = new Font("Consolas", 11.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0); this.richTextBox_Console.ForeColor = Color.LawnGreen; this.richTextBox_Console.Location = new Point(3, 133); this.richTextBox_Console.Name = "richTextBox_Console"; this.richTextBox_Console.Size = new Size(901, 440); this.richTextBox_Console.TabIndex = 3; this.richTextBox_Console.Text = ""; this.tabPage2.Controls.Add((Control)this.buttonScope); this.tabPage2.Controls.Add((Control)this.label4); this.tabPage2.Controls.Add((Control)this.comboBox_Scope); this.tabPage2.Location = new Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new Padding(3); this.tabPage2.Size = new Size(913, 582); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Oscilloscope Settings"; this.tabPage2.UseVisualStyleBackColor = true; this.buttonScope.Location = new Point(188, 85); this.buttonScope.Name = "buttonScope"; this.buttonScope.Size = new Size(75, 23); this.buttonScope.TabIndex = 2; this.buttonScope.Text = "Connect"; this.buttonScope.UseVisualStyleBackColor = true; this.buttonScope.Click += new EventHandler(this.buttonScope_Click); this.label4.AutoSize = true; this.label4.Location = new Point(47, 47); this.label4.Name = "label4"; this.label4.Size = new Size(97, 13); this.label4.TabIndex = 1; this.label4.Text = "Select Oscilloscope"; this.comboBox_Scope.FormattingEnabled = true; this.comboBox_Scope.Location = new Point(188, 44); this.comboBox_Scope.Name = "comboBox_Scope"; this.comboBox_Scope.Size = new Size(308, 21); this.comboBox_Scope.TabIndex = 0; this.serialPort_Main.BaudRate = 115200; this.serialPort_Main.PortName = "COM5"; this.serialPort_Main.ReadBufferSize = 1024; this.serialPort_Main.ReadTimeout = 3000; this.serialPort_Main.ReceivedBytesThreshold = 20; this.label7.AutoSize = true; this.label7.Location = new Point(60, 92); this.label7.Name = "label7"; this.label7.Size = new Size(25, 13); this.label7.TabIndex = 18; this.label7.Text = "Key"; this.textBox_Key.Location = new Point(91, 87); this.textBox_Key.Name = "textBox_Key"; this.textBox_Key.Size = new Size(215, 21); this.textBox_Key.TabIndex = 19; this.textBox_Key.Text = "489DB4B302172961CC2BCB4E00E28EB7"; this.button_updateKey.Enabled = false; this.button_updateKey.Location = new Point(313, 85); this.button_updateKey.Name = "button_updateKey"; this.button_updateKey.Size = new Size(75, 23); this.button_updateKey.TabIndex = 20; this.button_updateKey.Text = "Update Key"; this.button_updateKey.UseVisualStyleBackColor = true; this.button_updateKey.Click += new EventHandler(this.button_updateKey_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.ClientSize = new Size(921, 630); this.Controls.Add((Control)this.tabControl1); this.Controls.Add((Control)this.statusStrip1); this.Font = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0); this.Name = nameof(Form1); this.Text = "SCA 328p Controller"; this.Load += new EventHandler(this.Form1_Load); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.numOfTraces.EndInit(); this.tabPage2.ResumeLayout(false); this.tabPage2.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { // Initialize objects this.m_CRManager = new ComponentResourceManager(typeof(MainWindow)); this.m_CTableLPanel = new TableLayoutPanel(); this.m_MenuStrip = new MenuStrip(); this.m_FComboBox = new ComboBox(); this.m_TComboBox = new ComboBox(); this.m_HButton = new Button(); this.m_SButton = new Button(); this.m_TButton = new Button(); this.m_FRichTextBox = new RichTextBox(); this.m_TRichTextBox = new RichTextBox(); this.m_FLabel = new Label(); this.m_TLabel = new Label(); this.m_FLName = new Label(); this.m_TLName = new Label(); this.m_StatusStrip = new StatusStrip(); this.m_TSSLabel = new ToolStripStatusLabel(); this.m_STimer = new System.Windows.Forms.Timer(); this.m_THTip = new ToolTip(); this.m_TSTip = new ToolTip(); this.m_TTTip = new ToolTip(); // Suspended this.m_CTableLPanel.SuspendLayout(); this.m_MenuStrip.SuspendLayout(); this.m_StatusStrip.SuspendLayout(); this.SuspendLayout(); // TableLayoutPanel <Central> this.m_CTableLPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.m_CTableLPanel.Dock = DockStyle.Fill; this.m_CTableLPanel.Name = "C-TablePanelLayout"; this.m_CTableLPanel.TabIndex = 0; this.m_CTableLPanel.ColumnCount = 5; this.m_CTableLPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40F)); this.m_CTableLPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); this.m_CTableLPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 30F)); this.m_CTableLPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 45F)); this.m_CTableLPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 45F)); this.m_CTableLPanel.RowCount = 8; this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); this.m_CTableLPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); this.m_CTableLPanel.Controls.Add(this.m_MenuStrip, 0, 0); this.m_CTableLPanel.Controls.Add(this.m_FLName, 0, 1); this.m_CTableLPanel.Controls.Add(this.m_FComboBox, 1, 1); this.m_CTableLPanel.Controls.Add(this.m_TLName, 0, 2); this.m_CTableLPanel.Controls.Add(this.m_TComboBox, 1, 2); this.m_CTableLPanel.Controls.Add(this.m_HButton, 2, 1); this.m_CTableLPanel.Controls.Add(this.m_SButton, 3, 1); this.m_CTableLPanel.Controls.Add(this.m_TButton, 4, 1); this.m_CTableLPanel.Controls.Add(this.m_FLabel, 0, 3); this.m_CTableLPanel.Controls.Add(this.m_FRichTextBox, 0, 4); this.m_CTableLPanel.Controls.Add(this.m_TLabel, 0, 5); this.m_CTableLPanel.Controls.Add(this.m_TRichTextBox, 0, 6); this.m_CTableLPanel.Controls.Add(this.m_StatusStrip, 0, 7); this.m_CTableLPanel.SetColumnSpan(this.m_MenuStrip, 5); this.m_CTableLPanel.SetColumnSpan(this.m_FLabel, 5); this.m_CTableLPanel.SetColumnSpan(this.m_FRichTextBox, 5); this.m_CTableLPanel.SetColumnSpan(this.m_TLabel, 5); this.m_CTableLPanel.SetColumnSpan(this.m_TRichTextBox, 5); this.m_CTableLPanel.SetColumnSpan(this.m_StatusStrip, 5); this.m_CTableLPanel.SetRowSpan(this.m_HButton, 2); this.m_CTableLPanel.SetRowSpan(this.m_SButton, 2); this.m_CTableLPanel.SetRowSpan(this.m_TButton, 2); // MenuStrip this.m_MenuStrip.Name = "G-MenuStrip"; this.m_MenuStrip.TabIndex = 1; this.p_InitializeMenu(); // ComboBox <From> this.m_FComboBox.Anchor = AnchorStyles.None; this.m_FComboBox.Dock = DockStyle.Fill; this.m_FComboBox.FormattingEnabled = false; this.m_FComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.m_FComboBox.Sorted = true; this.m_FComboBox.Name = "F-ComboBox"; this.m_FComboBox.TabIndex = 2; this.m_FComboBox.Click += new EventHandler(this.M_ComboBox_Click); // ComboBox <To> this.m_TComboBox.Anchor = AnchorStyles.None; this.m_TComboBox.Dock = DockStyle.Fill; this.m_TComboBox.FormattingEnabled = false; this.m_TComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this.m_TComboBox.Sorted = true; this.m_TComboBox.Name = "T-ComboBox"; this.m_TComboBox.TabIndex = 3; this.m_TComboBox.Click += new EventHandler(this.M_ComboBox_Click); this.m_TComboBox.SelectedIndexChanged += new EventHandler(this.M_TComboBox_SelectedIndexChanged); // Button <Hold> this.m_HButton.Anchor = AnchorStyles.None; this.m_HButton.UseVisualStyleBackColor = true; this.m_HButton.Name = "H-Button"; this.m_HButton.Image = Pixmaps.HoldD; this.m_HButton.Size = new Size(30, 45); this.m_HButton.TabIndex = 4; this.m_HButton.Click += new EventHandler(this.M_HButton_Click); // Button <Switching> this.m_SButton.Anchor = AnchorStyles.None; this.m_SButton.UseVisualStyleBackColor = true; this.m_SButton.Name = "S-Button"; this.m_SButton.Image = Pixmaps.Switch; this.m_SButton.Size = new Size(45, 45); this.m_SButton.TabIndex = 4; this.m_SButton.Click += new EventHandler(this.M_SButton_Click); // Button <Translate> this.m_TButton.Anchor = AnchorStyles.None; this.m_TButton.UseVisualStyleBackColor = true; this.m_TButton.Name = "T-Button"; this.m_TButton.Image = Pixmaps.Translate; this.m_TButton.Size = new Size(45, 45); this.m_TButton.TabIndex = 4; this.m_TButton.Click += new EventHandler(this.M_TButton_Click); // ToolTip <Hold> this.m_THTip.SetToolTip(this.m_HButton, ToolTipHelper.Hold); // ToolTip <Switching> this.m_TSTip.SetToolTip(this.m_SButton, ToolTipHelper.Switch); // ToolTip <Translate> this.m_TTTip.SetToolTip(this.m_TButton, ToolTipHelper.Translate); // Label <From> this.m_FLabel.AutoSize = true; this.m_FLabel.Dock = DockStyle.Fill; this.m_FLabel.TextAlign = ContentAlignment.MiddleCenter; this.m_FLabel.Font = new Font(this.m_FLabel.Font, FontStyle.Bold); this.m_FLabel.Name = "F-Label"; this.m_FLabel.TabIndex = 5; // Label <To> this.m_TLabel.AutoSize = true; this.m_TLabel.Dock = DockStyle.Fill; this.m_TLabel.TextAlign = ContentAlignment.MiddleCenter; this.m_TLabel.Font = new Font(this.m_TLabel.Font, FontStyle.Bold); this.m_TLabel.Name = "T-Label"; this.m_TLabel.TabIndex = 6; // Label <From name> this.m_FLName.AutoSize = true; this.m_FLName.Dock = DockStyle.Fill; this.m_FLName.TextAlign = ContentAlignment.MiddleCenter; this.m_FLName.Name = "F-LName"; this.m_FLName.TabIndex = 5; // Label <To name> this.m_TLName.AutoSize = true; this.m_TLName.Dock = DockStyle.Fill; this.m_TLName.TextAlign = ContentAlignment.MiddleCenter; this.m_TLName.Name = "T-LName"; this.m_TLName.TabIndex = 6; // RichTextBox <From> this.m_FRichTextBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; this.m_FRichTextBox.Name = "F-RichTextBox"; this.m_FRichTextBox.TabIndex = 7; this.m_FRichTextBox.TextChanged += new EventHandler(this.M_FRichTextBox_TextChanged); // RTBContextMenuStrip <From> this.m_FRTBContextMenu = new RTBContextMenuStrip(this.m_FRichTextBox); this.m_FRichTextBox.ContextMenuStrip = this.m_FRTBContextMenu; // RichTextBox <To> this.m_TRichTextBox.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; this.m_TRichTextBox.ReadOnly = true; this.m_TRichTextBox.Name = "T-RichTextBox"; this.m_TRichTextBox.TabIndex = 8; // RTBContextMenuStrip <To> this.m_TRTBContextMenu = new RTBContextMenuStrip(this.m_TRichTextBox); this.m_TRichTextBox.ContextMenuStrip = this.m_TRTBContextMenu; // StatusStrip this.m_StatusStrip.Name = "G-StatusStrip"; this.m_StatusStrip.Items.Add(this.m_TSSLabel); this.m_StatusStrip.TabIndex = 9; // MainWindow this.Icon = Icon.FromHandle(Pixmaps.Icon.GetHicon()); this.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.MinimumSize = new Size(380, 540); this.Name = "MainWindow"; this.Text = "YAT"; this.Controls.Add(this.m_CTableLPanel); // ComponentResourceManager this.p_UpdateInterfaceLang(); // Resume this.m_CTableLPanel.ResumeLayout(false); this.m_CTableLPanel.PerformLayout(); this.m_MenuStrip.ResumeLayout(false); this.m_MenuStrip.PerformLayout(); this.m_StatusStrip.ResumeLayout(false); this.m_StatusStrip.PerformLayout(); this.ResumeLayout(false); // Timer this.m_STimer.Interval = 3000; this.m_STimer.Tick += new EventHandler(M_STimer_Tick); // Initialize this.p_Initialize(); // MainWindow <Configure> string ps = this.m_RegConfig.GetPositiionAndSize(); Rectangle r = Util.StringToRectangle(ps); if (!r.IsEmpty) { this.StartPosition = FormStartPosition.Manual; this.DesktopLocation = new Point(r.X, r.Y); this.Size = new Size(r.Width, r.Height); this.m_TSMISave.Checked = true; } else { this.StartPosition = FormStartPosition.CenterScreen; this.Size = new Size(480, 640); } // Bool bool on = false; // Enable auto detect on = this.m_RegConfig.GetAutoDetect(); this.m_TSMIAuto.Checked = on; this.m_TSMIAutoOn.Enabled = on; // Enable auto switch on = this.m_RegConfig.GetAutoSwitch(); this.m_TSMIAutoOn.Checked = on; // Last language this.m_TSMISaveOn.Checked = this.m_RegConfig.GetSaveOn(); }
internal static void ManageControl(Control control, String formName, String culture) { StatusStrip controlMenu = (StatusStrip)control; LanguageUtil.CicleControls(formName, controlMenu.Items, culture); }
private void InitializeContent() { #region Status ToolStripStatusLabel Tulajdonos = new ToolStripStatusLabel(Program.Tulajdonos_Megnevezés); ToolStripStatusLabel Készítők = new ToolStripStatusLabel("Belinyák Nándor és Társai. \u00A9 2014"); ToolStripStatusLabel Verzió = new ToolStripStatusLabel("Verzió: 0.9.9-2017.06.13"); Készítők.BorderSides = ToolStripStatusLabelBorderSides.Left; Verzió.BorderSides = ToolStripStatusLabelBorderSides.Left; status = new StatusStrip(); status.Items.Add(Tulajdonos); status.Items.Add(Készítők); status.Items.Add(Verzió); #endregion #region Menü TabPage Versenysorozat = new TabPage("Versenysorozatok"); versenysorozat_panel = new Panel_Versenysorozat(); versenysorozat_panel.Dock = DockStyle.Fill; Versenysorozat.Controls.Add(versenysorozat_panel); TabPage Verseny = new TabPage("Versenyek"); verseny_panel = new Panel_Verseny(); verseny_panel.Dock = DockStyle.Fill; Verseny.Controls.Add(verseny_panel); TabPage Korosztályok = new TabPage("Korosztályok"); korosztályok_panel = new Panel_Korosztályok(); korosztályok_panel.Dock = DockStyle.Fill; Korosztályok.Controls.Add(korosztályok_panel); TabPage Íjtípusok = new TabPage("Íjtípusok"); íjtípusok_panel = new Panel_Íjtípusok(); íjtípusok_panel.Dock = DockStyle.Fill; Íjtípusok.Controls.Add(íjtípusok_panel); TabPage Egyesuletek = new TabPage("Egyesületek"); egyesuletek_panel = new Panel_Egyesuletek(); egyesuletek_panel.Dock = DockStyle.Fill; Egyesuletek.Controls.Add(egyesuletek_panel); TabPage Indulók = new TabPage("Indulók"); indulók_panel = new Panel_Indulók(); indulók_panel.Dock = DockStyle.Fill; Indulók.Controls.Add(indulók_panel); TabPage Eredmények = new TabPage("Eredmények"); eredmények_panel = new Panel_Eredmények(); eredmények_panel.Dock = DockStyle.Fill; Eredmények.Controls.Add(eredmények_panel); TabPage Kapcsolatok = new TabPage("Kapcsolatok"); kapcsolatok_panel = new Panel_Kapcsolatok(); kapcsolatok_panel.Dock = DockStyle.Fill; Kapcsolatok.Controls.Add(kapcsolatok_panel); TabPage Startlista = new TabPage("Startlisták"); startlista_panel = new Panel_Startlista(); startlista_panel.Dock = DockStyle.Fill; Startlista.Controls.Add(startlista_panel); TabPage Eredménylap = new TabPage("Eredménylapok"); eredménylap_panel = new Panel_Eredménylap(); eredménylap_panel.Dock = DockStyle.Fill; Eredménylap.Controls.Add(eredménylap_panel); TabPage Oklevelek = new TabPage("Oklevelek"); oklevelek_panel = new Panel_Oklevelek(); oklevelek_panel.Dock = DockStyle.Fill; Oklevelek.Controls.Add(oklevelek_panel); // menu = new TabControl(); menu.TabPages.Add(Versenysorozat); menu.TabPages.Add(Verseny); menu.TabPages.Add(Korosztályok); menu.TabPages.Add(Íjtípusok); menu.TabPages.Add(Egyesuletek); menu.TabPages.Add(Indulók); menu.TabPages.Add(Eredmények); menu.TabPages.Add(Startlista); menu.TabPages.Add(Eredménylap); menu.TabPages.Add(Oklevelek); //menu.TabPages.Add(Kapcsolatok); #if DEBUG menu.SelectedTab = Oklevelek; #endif menu.DrawItem += menu_DrawItem; menu.DrawMode = TabDrawMode.OwnerDrawFixed; menu.Padding = new Point(18, 5); menu.Dock = DockStyle.Fill; #endregion Button BackupButton = new Button(); BackupButton.Text = "Mentés"; BackupButton.Location = new Point(ClientSize.Width - 64, 0); BackupButton.Size = new System.Drawing.Size(64, 24); BackupButton.Anchor = AnchorStyles.Right | AnchorStyles.Top; BackupButton.Click += BackupButton_Click; Controls.Add(status); Controls.Add(menu); menu.BringToFront(); Controls.Add(BackupButton); BackupButton.BringToFront(); }
/// <summary> /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas /// le contenu de cette méthode avec l'éditeur de code. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainView)); this.timer = new System.Windows.Forms.Timer(this.components); this.toolBarLblVersion = new System.Windows.Forms.ToolStripLabel(); this.nIUpdateAvailable = new System.Windows.Forms.NotifyIcon(this.components); this.openCustomizableFileDialog = new System.Windows.Forms.OpenFileDialog(); this.colAlerts_Address = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn())); this.colAlerts_City = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn())); this.colAlerts_Phone = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn())); this.colAlerts_BranchName = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn())); this.bwUserInformation = new System.ComponentModel.BackgroundWorker(); this.mnuClients = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNewPerson = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNewClient = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNewGroup = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNewVillage = new System.Windows.Forms.ToolStripMenuItem(); this.newCorporateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.mnuSearchClient = new System.Windows.Forms.ToolStripMenuItem(); this.mnuSearchContract = new System.Windows.Forms.ToolStripMenuItem(); this.reasignToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnuAccounting = new System.Windows.Forms.ToolStripMenuItem(); this.mnuChartOfAccounts = new System.Windows.Forms.ToolStripMenuItem(); this.accountingRulesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.trialBalanceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemAccountView = new System.Windows.Forms.ToolStripMenuItem(); this.manualEntriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.standardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.menuItemExportTransaction = new System.Windows.Forms.ToolStripMenuItem(); this.mnuNewclosure = new System.Windows.Forms.ToolStripMenuItem(); this.fiscalYearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnuConfiguration = new System.Windows.Forms.ToolStripMenuItem(); this.branchesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tellersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparatorConfig1 = new System.Windows.Forms.ToolStripSeparator(); this.mnuDomainOfApplication = new System.Windows.Forms.ToolStripMenuItem(); this.loanPurposeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemLocations = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemFundingLines = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemInstallmentTypes = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparatorConfig2 = new System.Windows.Forms.ToolStripSeparator(); this.menuItemExchangeRate = new System.Windows.Forms.ToolStripMenuItem(); this.currenciesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparatorConfig3 = new System.Windows.Forms.ToolStripSeparator(); this.miContractCode = new System.Windows.Forms.ToolStripMenuItem(); this.collateralProductsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnuWindow = new System.Windows.Forms.ToolStripMenuItem(); this.mnuHelp = new System.Windows.Forms.ToolStripMenuItem(); this.userGuideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contactMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.getHelpFromForumToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.visitOpenCBScomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mainMenu = new System.Windows.Forms.MenuStrip(); this.mnuSettings = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemSetting = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemDatabaseControlPanel = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemApplicationDate = new System.Windows.Forms.ToolStripMenuItem(); this.languagesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.frenchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.englishToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.russianToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.spanishToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.portugueseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnuSecurity = new System.Windows.Forms.ToolStripMenuItem(); this.rolesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuItemAddUser = new System.Windows.Forms.ToolStripMenuItem(); this.miAuditTrail = new System.Windows.Forms.ToolStripMenuItem(); this.changePasswordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mnuProducts = new System.Windows.Forms.ToolStripMenuItem(); this.mnuPackages = new System.Windows.Forms.ToolStripMenuItem(); this.savingProductsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._viewItem = new System.Windows.Forms.ToolStripMenuItem(); this._startPageItem = new System.Windows.Forms.ToolStripMenuItem(); this._alertsItem = new System.Windows.Forms.ToolStripMenuItem(); this._dashboardItem = new System.Windows.Forms.ToolStripMenuItem(); this._modulesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this._aboutModulesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mainStatusBar = new System.Windows.Forms.StatusStrip(); this.mainStatusBarLblUpdateVersion = new System.Windows.Forms.ToolStripStatusLabel(); this.mainStatusBarLblUserName = new System.Windows.Forms.ToolStripStatusLabel(); this.mainStatusBarLblDate = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLblBranchCode = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatusLblDB = new System.Windows.Forms.ToolStripStatusLabel(); this._searchItem = new System.Windows.Forms.ToolStripMenuItem(); this.mainMenu.SuspendLayout(); this.mainStatusBar.SuspendLayout(); this.SuspendLayout(); // // timer // this.timer.Enabled = true; this.timer.Interval = 1000; this.timer.Tick += new System.EventHandler(this.timer_Tick); // // toolBarLblVersion // this.toolBarLblVersion.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; resources.ApplyResources(this.toolBarLblVersion, "toolBarLblVersion"); this.toolBarLblVersion.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(180)))), ((int)(((byte)(156))))); this.toolBarLblVersion.Name = "toolBarLblVersion"; // // nIUpdateAvailable // this.nIUpdateAvailable.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info; resources.ApplyResources(this.nIUpdateAvailable, "nIUpdateAvailable"); this.nIUpdateAvailable.BalloonTipClicked += new System.EventHandler(this.nIUpdateAvailable_BalloonTipClicked); // // openCustomizableFileDialog // resources.ApplyResources(this.openCustomizableFileDialog, "openCustomizableFileDialog"); // // colAlerts_Address // this.colAlerts_Address.AspectName = "Address"; resources.ApplyResources(this.colAlerts_Address, "colAlerts_Address"); this.colAlerts_Address.IsEditable = false; this.colAlerts_Address.IsVisible = false; // // colAlerts_City // this.colAlerts_City.AspectName = "City"; resources.ApplyResources(this.colAlerts_City, "colAlerts_City"); this.colAlerts_City.IsEditable = false; this.colAlerts_City.IsVisible = false; // // colAlerts_Phone // this.colAlerts_Phone.AspectName = "Phone"; resources.ApplyResources(this.colAlerts_Phone, "colAlerts_Phone"); this.colAlerts_Phone.IsEditable = false; this.colAlerts_Phone.IsVisible = false; // // colAlerts_BranchName // this.colAlerts_BranchName.AspectName = "BranchName"; resources.ApplyResources(this.colAlerts_BranchName, "colAlerts_BranchName"); this.colAlerts_BranchName.IsEditable = false; this.colAlerts_BranchName.IsVisible = false; // // mnuClients // this.mnuClients.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNewPerson, this.mnuNewClient, this.toolStripMenuItem1, this.mnuSearchClient, this.mnuSearchContract, this.reasignToolStripMenuItem }); this.mnuClients.Name = "mnuClients"; resources.ApplyResources(this.mnuClients, "mnuClients"); // // mnuNewPerson // resources.ApplyResources(this.mnuNewPerson, "mnuNewPerson"); this.mnuNewPerson.Name = "mnuNewPerson"; this.mnuNewPerson.Click += new System.EventHandler(this.mnuNewPerson_Click); // // mnuNewClient // this.mnuNewClient.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuNewGroup, this.mnuNewVillage, this.newCorporateToolStripMenuItem }); resources.ApplyResources(this.mnuNewClient, "mnuNewClient"); this.mnuNewClient.Name = "mnuNewClient"; // // mnuNewGroup // resources.ApplyResources(this.mnuNewGroup, "mnuNewGroup"); this.mnuNewGroup.Name = "mnuNewGroup"; this.mnuNewGroup.Click += new System.EventHandler(this.mnuNewGroup_Click); // // mnuNewVillage // this.mnuNewVillage.Name = "mnuNewVillage"; resources.ApplyResources(this.mnuNewVillage, "mnuNewVillage"); this.mnuNewVillage.Click += new System.EventHandler(this.mnuNewVillage_Click); // // newCorporateToolStripMenuItem // this.newCorporateToolStripMenuItem.Name = "newCorporateToolStripMenuItem"; resources.ApplyResources(this.newCorporateToolStripMenuItem, "newCorporateToolStripMenuItem"); this.newCorporateToolStripMenuItem.Click += new System.EventHandler(this.newCorporateToolStripMenuItem_Click); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1"); // // mnuSearchClient // this.mnuSearchClient.Image = global::OpenCBS.GUI.Properties.Resources.find; resources.ApplyResources(this.mnuSearchClient, "mnuSearchClient"); this.mnuSearchClient.Name = "mnuSearchClient"; this.mnuSearchClient.Click += new System.EventHandler(this.mnuSearchClient_Click); // // mnuSearchContract // this.mnuSearchContract.Image = global::OpenCBS.GUI.Properties.Resources.find; resources.ApplyResources(this.mnuSearchContract, "mnuSearchContract"); this.mnuSearchContract.Name = "mnuSearchContract"; this.mnuSearchContract.Click += new System.EventHandler(this.mnuSearchContract_Click); // // reasignToolStripMenuItem // this.reasignToolStripMenuItem.Name = "reasignToolStripMenuItem"; resources.ApplyResources(this.reasignToolStripMenuItem, "reasignToolStripMenuItem"); this.reasignToolStripMenuItem.Click += new System.EventHandler(this.reasignToolStripMenuItem_Click); // // mnuAccounting // this.mnuAccounting.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuChartOfAccounts, this.accountingRulesToolStripMenuItem, this.trialBalanceToolStripMenuItem, this.toolStripMenuItemAccountView, this.manualEntriesToolStripMenuItem, this.standardToolStripMenuItem, this.toolStripSeparator2, this.menuItemExportTransaction, this.mnuNewclosure, this.fiscalYearToolStripMenuItem }); this.mnuAccounting.Name = "mnuAccounting"; resources.ApplyResources(this.mnuAccounting, "mnuAccounting"); // // mnuChartOfAccounts // this.mnuChartOfAccounts.Image = global::OpenCBS.GUI.Properties.Resources.page; this.mnuChartOfAccounts.Name = "mnuChartOfAccounts"; resources.ApplyResources(this.mnuChartOfAccounts, "mnuChartOfAccounts"); // // accountingRulesToolStripMenuItem // this.accountingRulesToolStripMenuItem.Name = "accountingRulesToolStripMenuItem"; resources.ApplyResources(this.accountingRulesToolStripMenuItem, "accountingRulesToolStripMenuItem"); this.accountingRulesToolStripMenuItem.Click += new System.EventHandler(this.accountingRulesToolStripMenuItem_Click); // // trialBalanceToolStripMenuItem // this.trialBalanceToolStripMenuItem.Name = "trialBalanceToolStripMenuItem"; resources.ApplyResources(this.trialBalanceToolStripMenuItem, "trialBalanceToolStripMenuItem"); this.trialBalanceToolStripMenuItem.Click += new System.EventHandler(this.trialBalanceToolStripMenuItem_Click); // // toolStripMenuItemAccountView // this.toolStripMenuItemAccountView.Image = global::OpenCBS.GUI.Properties.Resources.book; resources.ApplyResources(this.toolStripMenuItemAccountView, "toolStripMenuItemAccountView"); this.toolStripMenuItemAccountView.Name = "toolStripMenuItemAccountView"; this.toolStripMenuItemAccountView.Click += new System.EventHandler(this.toolStripMenuItemAccountView_Click); // // manualEntriesToolStripMenuItem // this.manualEntriesToolStripMenuItem.Name = "manualEntriesToolStripMenuItem"; resources.ApplyResources(this.manualEntriesToolStripMenuItem, "manualEntriesToolStripMenuItem"); this.manualEntriesToolStripMenuItem.Click += new System.EventHandler(this.manualEntriesToolStripMenuItem_Click); // // standardToolStripMenuItem // this.standardToolStripMenuItem.Name = "standardToolStripMenuItem"; resources.ApplyResources(this.standardToolStripMenuItem, "standardToolStripMenuItem"); this.standardToolStripMenuItem.Click += new System.EventHandler(this.standardToolStripMenuItem_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; resources.ApplyResources(this.toolStripSeparator2, "toolStripSeparator2"); // // menuItemExportTransaction // resources.ApplyResources(this.menuItemExportTransaction, "menuItemExportTransaction"); this.menuItemExportTransaction.Name = "menuItemExportTransaction"; this.menuItemExportTransaction.Click += new System.EventHandler(this.menuItemExportTransaction_Click); // // mnuNewclosure // this.mnuNewclosure.Name = "mnuNewclosure"; resources.ApplyResources(this.mnuNewclosure, "mnuNewclosure"); this.mnuNewclosure.Click += new System.EventHandler(this.newClosureToolStripMenuItem_Click_1); // // fiscalYearToolStripMenuItem // this.fiscalYearToolStripMenuItem.Name = "fiscalYearToolStripMenuItem"; resources.ApplyResources(this.fiscalYearToolStripMenuItem, "fiscalYearToolStripMenuItem"); this.fiscalYearToolStripMenuItem.Click += new System.EventHandler(this.fiscalYearToolStripMenuItem_Click); // // mnuConfiguration // this.mnuConfiguration.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.branchesToolStripMenuItem, this.tellersToolStripMenuItem, this.toolStripSeparatorConfig1, this.mnuDomainOfApplication, this.loanPurposeToolStripMenuItem, this.menuItemLocations, this.toolStripMenuItemFundingLines, this.toolStripMenuItemInstallmentTypes, this.toolStripSeparatorConfig2, this.menuItemExchangeRate, this.currenciesToolStripMenuItem, this.toolStripSeparatorConfig3, this.miContractCode, this.collateralProductsToolStripMenuItem }); this.mnuConfiguration.Name = "mnuConfiguration"; resources.ApplyResources(this.mnuConfiguration, "mnuConfiguration"); // // branchesToolStripMenuItem // this.branchesToolStripMenuItem.Name = "branchesToolStripMenuItem"; resources.ApplyResources(this.branchesToolStripMenuItem, "branchesToolStripMenuItem"); this.branchesToolStripMenuItem.Click += new System.EventHandler(this.branchesToolStripMenuItem_Click); // // tellersToolStripMenuItem // this.tellersToolStripMenuItem.Name = "tellersToolStripMenuItem"; resources.ApplyResources(this.tellersToolStripMenuItem, "tellersToolStripMenuItem"); this.tellersToolStripMenuItem.Click += new System.EventHandler(this.tellersToolStripMenuItem_Click); // // toolStripSeparatorConfig1 // this.toolStripSeparatorConfig1.Name = "toolStripSeparatorConfig1"; resources.ApplyResources(this.toolStripSeparatorConfig1, "toolStripSeparatorConfig1"); // // mnuDomainOfApplication // resources.ApplyResources(this.mnuDomainOfApplication, "mnuDomainOfApplication"); this.mnuDomainOfApplication.Name = "mnuDomainOfApplication"; this.mnuDomainOfApplication.Click += new System.EventHandler(this.mnuDomainOfApplication_Click); // // loanPurposeToolStripMenuItem // this.loanPurposeToolStripMenuItem.Name = "loanPurposeToolStripMenuItem"; resources.ApplyResources(this.loanPurposeToolStripMenuItem, "loanPurposeToolStripMenuItem"); this.loanPurposeToolStripMenuItem.Click += new System.EventHandler(this.loanPurposeToolStripMenuItem_Click); // // menuItemLocations // this.menuItemLocations.Name = "menuItemLocations"; resources.ApplyResources(this.menuItemLocations, "menuItemLocations"); this.menuItemLocations.Click += new System.EventHandler(this.menuItemLocations_Click); // // toolStripMenuItemFundingLines // this.toolStripMenuItemFundingLines.Name = "toolStripMenuItemFundingLines"; resources.ApplyResources(this.toolStripMenuItemFundingLines, "toolStripMenuItemFundingLines"); this.toolStripMenuItemFundingLines.Click += new System.EventHandler(this.toolStripMenuItemFundingLines_Click); // // toolStripMenuItemInstallmentTypes // this.toolStripMenuItemInstallmentTypes.Name = "toolStripMenuItemInstallmentTypes"; resources.ApplyResources(this.toolStripMenuItemInstallmentTypes, "toolStripMenuItemInstallmentTypes"); this.toolStripMenuItemInstallmentTypes.Click += new System.EventHandler(this.toolStripMenuItemInstallmentTypes_Click); // // toolStripSeparatorConfig2 // this.toolStripSeparatorConfig2.Name = "toolStripSeparatorConfig2"; resources.ApplyResources(this.toolStripSeparatorConfig2, "toolStripSeparatorConfig2"); // // menuItemExchangeRate // resources.ApplyResources(this.menuItemExchangeRate, "menuItemExchangeRate"); this.menuItemExchangeRate.Name = "menuItemExchangeRate"; this.menuItemExchangeRate.Click += new System.EventHandler(this.menuItemExchangeRate_Click); // // currenciesToolStripMenuItem // this.currenciesToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.money; this.currenciesToolStripMenuItem.Name = "currenciesToolStripMenuItem"; resources.ApplyResources(this.currenciesToolStripMenuItem, "currenciesToolStripMenuItem"); this.currenciesToolStripMenuItem.Click += new System.EventHandler(this.currenciesToolStripMenuItem_Click); // // toolStripSeparatorConfig3 // this.toolStripSeparatorConfig3.Name = "toolStripSeparatorConfig3"; resources.ApplyResources(this.toolStripSeparatorConfig3, "toolStripSeparatorConfig3"); // // miContractCode // this.miContractCode.Name = "miContractCode"; resources.ApplyResources(this.miContractCode, "miContractCode"); this.miContractCode.Click += new System.EventHandler(this.miContractCode_Click); // // collateralProductsToolStripMenuItem // this.collateralProductsToolStripMenuItem.Name = "collateralProductsToolStripMenuItem"; resources.ApplyResources(this.collateralProductsToolStripMenuItem, "collateralProductsToolStripMenuItem"); this.collateralProductsToolStripMenuItem.Click += new System.EventHandler(this.collateralProductsToolStripMenuItem_Click); // // mnuWindow // this.mnuWindow.Name = "mnuWindow"; resources.ApplyResources(this.mnuWindow, "mnuWindow"); // // mnuHelp // this.mnuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.userGuideToolStripMenuItem, this.contactMenuItem, this.aboutMenuItem, this.getHelpFromForumToolStripMenuItem, this.visitOpenCBScomToolStripMenuItem }); this.mnuHelp.Name = "mnuHelp"; resources.ApplyResources(this.mnuHelp, "mnuHelp"); // // userGuideToolStripMenuItem // this.userGuideToolStripMenuItem.Name = "userGuideToolStripMenuItem"; resources.ApplyResources(this.userGuideToolStripMenuItem, "userGuideToolStripMenuItem"); this.userGuideToolStripMenuItem.Click += new System.EventHandler(this.OpenUserGuid); // // contactMenuItem // this.contactMenuItem.Name = "contactMenuItem"; resources.ApplyResources(this.contactMenuItem, "contactMenuItem"); this.contactMenuItem.Click += new System.EventHandler(this.contactMenuItem_Click); // // aboutMenuItem // this.aboutMenuItem.Name = "aboutMenuItem"; resources.ApplyResources(this.aboutMenuItem, "aboutMenuItem"); this.aboutMenuItem.Click += new System.EventHandler(this.OnAboutMenuItemClick); // // getHelpFromForumToolStripMenuItem // this.getHelpFromForumToolStripMenuItem.Name = "getHelpFromForumToolStripMenuItem"; resources.ApplyResources(this.getHelpFromForumToolStripMenuItem, "getHelpFromForumToolStripMenuItem"); this.getHelpFromForumToolStripMenuItem.Click += new System.EventHandler(this.getHelpFromForumToolStripMenuItem_Click); // // visitOpenCBScomToolStripMenuItem // this.visitOpenCBScomToolStripMenuItem.Name = "visitOpenCBScomToolStripMenuItem"; resources.ApplyResources(this.visitOpenCBScomToolStripMenuItem, "visitOpenCBScomToolStripMenuItem"); this.visitOpenCBScomToolStripMenuItem.Click += new System.EventHandler(this.visitOpenCBScomToolStripMenuItem_Click); // // mainMenu // this.mainMenu.BackColor = System.Drawing.SystemColors.Control; this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuSettings, this.mnuConfiguration, this.mnuSecurity, this.mnuProducts, this.mnuClients, this._viewItem, this._modulesMenuItem, this.mnuAccounting, this.reportsToolStripMenuItem, this.mnuWindow, this.mnuHelp }); resources.ApplyResources(this.mainMenu, "mainMenu"); this.mainMenu.MdiWindowListItem = this.mnuWindow; this.mainMenu.Name = "mainMenu"; // // mnuSettings // this.mnuSettings.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuItemSetting, this.menuItemDatabaseControlPanel, this.menuItemApplicationDate, this.languagesToolStripMenuItem }); this.mnuSettings.Name = "mnuSettings"; resources.ApplyResources(this.mnuSettings, "mnuSettings"); // // menuItemSetting // this.menuItemSetting.Image = global::OpenCBS.GUI.Properties.Resources.cog; resources.ApplyResources(this.menuItemSetting, "menuItemSetting"); this.menuItemSetting.Name = "menuItemSetting"; this.menuItemSetting.Click += new System.EventHandler(this.menuItemSetting_Click); // // menuItemDatabaseControlPanel // this.menuItemDatabaseControlPanel.Image = global::OpenCBS.GUI.Properties.Resources.database_gear; this.menuItemDatabaseControlPanel.Name = "menuItemDatabaseControlPanel"; resources.ApplyResources(this.menuItemDatabaseControlPanel, "menuItemDatabaseControlPanel"); this.menuItemDatabaseControlPanel.Click += new System.EventHandler(this.menuItemBackupData_Click); // // menuItemApplicationDate // this.menuItemApplicationDate.Image = global::OpenCBS.GUI.Properties.Resources.calendar; resources.ApplyResources(this.menuItemApplicationDate, "menuItemApplicationDate"); this.menuItemApplicationDate.Name = "menuItemApplicationDate"; this.menuItemApplicationDate.Click += new System.EventHandler(this.OnChangeApplicationDateClick); // // languagesToolStripMenuItem // this.languagesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.frenchToolStripMenuItem, this.englishToolStripMenuItem, this.russianToolStripMenuItem, this.spanishToolStripMenuItem, this.portugueseToolStripMenuItem }); this.languagesToolStripMenuItem.Name = "languagesToolStripMenuItem"; resources.ApplyResources(this.languagesToolStripMenuItem, "languagesToolStripMenuItem"); // // frenchToolStripMenuItem // this.frenchToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.fr; resources.ApplyResources(this.frenchToolStripMenuItem, "frenchToolStripMenuItem"); this.frenchToolStripMenuItem.Name = "frenchToolStripMenuItem"; this.frenchToolStripMenuItem.Tag = "fr"; this.frenchToolStripMenuItem.Click += new System.EventHandler(this.LanguageToolStripMenuItem_Click); // // englishToolStripMenuItem // this.englishToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.gb; resources.ApplyResources(this.englishToolStripMenuItem, "englishToolStripMenuItem"); this.englishToolStripMenuItem.Name = "englishToolStripMenuItem"; this.englishToolStripMenuItem.Tag = "en-US"; this.englishToolStripMenuItem.Click += new System.EventHandler(this.LanguageToolStripMenuItem_Click); // // russianToolStripMenuItem // this.russianToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.ru; resources.ApplyResources(this.russianToolStripMenuItem, "russianToolStripMenuItem"); this.russianToolStripMenuItem.Name = "russianToolStripMenuItem"; this.russianToolStripMenuItem.Tag = "ru-RU"; this.russianToolStripMenuItem.Click += new System.EventHandler(this.LanguageToolStripMenuItem_Click); // // spanishToolStripMenuItem // this.spanishToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.es; resources.ApplyResources(this.spanishToolStripMenuItem, "spanishToolStripMenuItem"); this.spanishToolStripMenuItem.Name = "spanishToolStripMenuItem"; this.spanishToolStripMenuItem.Tag = "es-ES"; this.spanishToolStripMenuItem.Click += new System.EventHandler(this.LanguageToolStripMenuItem_Click); // // portugueseToolStripMenuItem // this.portugueseToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.pt; resources.ApplyResources(this.portugueseToolStripMenuItem, "portugueseToolStripMenuItem"); this.portugueseToolStripMenuItem.Name = "portugueseToolStripMenuItem"; this.portugueseToolStripMenuItem.Click += new System.EventHandler(this.LanguageToolStripMenuItem_Click); // // mnuSecurity // this.mnuSecurity.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.rolesToolStripMenuItem, this.menuItemAddUser, this.miAuditTrail, this.changePasswordToolStripMenuItem }); this.mnuSecurity.Name = "mnuSecurity"; resources.ApplyResources(this.mnuSecurity, "mnuSecurity"); // // rolesToolStripMenuItem // this.rolesToolStripMenuItem.Name = "rolesToolStripMenuItem"; resources.ApplyResources(this.rolesToolStripMenuItem, "rolesToolStripMenuItem"); this.rolesToolStripMenuItem.Click += new System.EventHandler(this.rolesToolStripMenuItem_Click); // // menuItemAddUser // this.menuItemAddUser.Image = global::OpenCBS.GUI.Properties.Resources.group; resources.ApplyResources(this.menuItemAddUser, "menuItemAddUser"); this.menuItemAddUser.Name = "menuItemAddUser"; this.menuItemAddUser.Click += new System.EventHandler(this.menuItemAddUser_Click); // // miAuditTrail // this.miAuditTrail.Name = "miAuditTrail"; resources.ApplyResources(this.miAuditTrail, "miAuditTrail"); this.miAuditTrail.Click += new System.EventHandler(this.eventsToolStripMenuItem_Click); // // changePasswordToolStripMenuItem // this.changePasswordToolStripMenuItem.Name = "changePasswordToolStripMenuItem"; resources.ApplyResources(this.changePasswordToolStripMenuItem, "changePasswordToolStripMenuItem"); this.changePasswordToolStripMenuItem.Click += new System.EventHandler(this.changePasswordToolStripMenuItem_Click); // // mnuProducts // this.mnuProducts.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuPackages, this.savingProductsToolStripMenuItem }); this.mnuProducts.Name = "mnuProducts"; resources.ApplyResources(this.mnuProducts, "mnuProducts"); // // mnuPackages // this.mnuPackages.Image = global::OpenCBS.GUI.Properties.Resources.package; resources.ApplyResources(this.mnuPackages, "mnuPackages"); this.mnuPackages.Name = "mnuPackages"; this.mnuPackages.Click += new System.EventHandler(this.menuItemPackages_Click); // // savingProductsToolStripMenuItem // this.savingProductsToolStripMenuItem.Image = global::OpenCBS.GUI.Properties.Resources.package; this.savingProductsToolStripMenuItem.Name = "savingProductsToolStripMenuItem"; resources.ApplyResources(this.savingProductsToolStripMenuItem, "savingProductsToolStripMenuItem"); this.savingProductsToolStripMenuItem.Click += new System.EventHandler(this.savingProductsToolStripMenuItem_Click); // // _viewItem // this._viewItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._startPageItem, this._alertsItem, this._dashboardItem, this._searchItem }); this._viewItem.Name = "_viewItem"; resources.ApplyResources(this._viewItem, "_viewItem"); // // _startPageItem // this._startPageItem.Name = "_startPageItem"; resources.ApplyResources(this._startPageItem, "_startPageItem"); // // _alertsItem // this._alertsItem.Name = "_alertsItem"; resources.ApplyResources(this._alertsItem, "_alertsItem"); // // _dashboardItem // this._dashboardItem.Name = "_dashboardItem"; resources.ApplyResources(this._dashboardItem, "_dashboardItem"); // // _modulesMenuItem // this._modulesMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this._aboutModulesMenuItem }); this._modulesMenuItem.Name = "_modulesMenuItem"; resources.ApplyResources(this._modulesMenuItem, "_modulesMenuItem"); // // _aboutModulesMenuItem // this._aboutModulesMenuItem.Name = "_aboutModulesMenuItem"; resources.ApplyResources(this._aboutModulesMenuItem, "_aboutModulesMenuItem"); this._aboutModulesMenuItem.Click += new System.EventHandler(this._aboutModulesMenuItem_Click); // // reportsToolStripMenuItem // this.reportsToolStripMenuItem.Name = "reportsToolStripMenuItem"; resources.ApplyResources(this.reportsToolStripMenuItem, "reportsToolStripMenuItem"); // // mainStatusBar // resources.ApplyResources(this.mainStatusBar, "mainStatusBar"); this.mainStatusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mainStatusBarLblUpdateVersion, this.mainStatusBarLblUserName, this.mainStatusBarLblDate, this.toolStripStatusLblBranchCode, this.toolStripStatusLblDB }); this.mainStatusBar.Name = "mainStatusBar"; this.mainStatusBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.mainStatusBar.ShowItemToolTips = true; this.mainStatusBar.SizingGrip = false; // // mainStatusBarLblUpdateVersion // resources.ApplyResources(this.mainStatusBarLblUpdateVersion, "mainStatusBarLblUpdateVersion"); this.mainStatusBarLblUpdateVersion.Name = "mainStatusBarLblUpdateVersion"; this.mainStatusBarLblUpdateVersion.Spring = true; // // mainStatusBarLblUserName // this.mainStatusBarLblUserName.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.mainStatusBarLblUserName.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.mainStatusBarLblUserName.Image = global::OpenCBS.GUI.Properties.Resources.user_gray; this.mainStatusBarLblUserName.Name = "mainStatusBarLblUserName"; resources.ApplyResources(this.mainStatusBarLblUserName, "mainStatusBarLblUserName"); // // mainStatusBarLblDate // this.mainStatusBarLblDate.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.mainStatusBarLblDate.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.mainStatusBarLblDate.Image = global::OpenCBS.GUI.Properties.Resources.calendar; this.mainStatusBarLblDate.Name = "mainStatusBarLblDate"; resources.ApplyResources(this.mainStatusBarLblDate, "mainStatusBarLblDate"); // // toolStripStatusLblBranchCode // this.toolStripStatusLblBranchCode.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.toolStripStatusLblBranchCode.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.toolStripStatusLblBranchCode.Name = "toolStripStatusLblBranchCode"; resources.ApplyResources(this.toolStripStatusLblBranchCode, "toolStripStatusLblBranchCode"); // // toolStripStatusLblDB // this.toolStripStatusLblDB.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)((((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.toolStripStatusLblDB.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.toolStripStatusLblDB.Image = global::OpenCBS.GUI.Properties.Resources.database; this.toolStripStatusLblDB.Name = "toolStripStatusLblDB"; resources.ApplyResources(this.toolStripStatusLblDB, "toolStripStatusLblDB"); // // _searchItem // this._searchItem.Name = "_searchItem"; resources.ApplyResources(this._searchItem, "_searchItem"); // // MainView // resources.ApplyResources(this, "$this"); this.Controls.Add(this.mainStatusBar); this.Controls.Add(this.mainMenu); this.IsMdiContainer = true; this.MainMenuStrip = this.mainMenu; this.Name = "MainView"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LotrasmicMainWindowForm_FormClosing); this.Load += new System.EventHandler(this.LotrasmicMainWindowForm_Load); this.mainMenu.ResumeLayout(false); this.mainMenu.PerformLayout(); this.mainStatusBar.ResumeLayout(false); this.mainStatusBar.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public MainIDE(Splash splash) { BackColor = Color.FromArgb(255, 200, 200, 200); Icon = Icons.GetIcon("icons.logo", 32); Text = "OS Development Studio"; //once the form has loaded, send a signal to the //splash screen to close. Load += delegate(object sender, EventArgs e) { splash.Ready(); Focus(); }; //set the minimum size of the window to 75% of the current screen Size screenSize = Screen.FromPoint(Cursor.Position).WorkingArea.Size; MinimumSize = new Size( (int)(screenSize.Width * 0.75), (int)(screenSize.Height * 0.75)); //create the initial panels StatusStrip status = new StatusStrip(); p_WorkingArea = new Panel { Dock = DockStyle.Fill }; ToolStrip menu = new ToolStrip { GripStyle = ToolStripGripStyle.Hidden, Renderer = new ToolStripProfessionalRenderer() { RoundedEdges = false } }; //add the controls Controls.Add(menu); Controls.Add(status); Controls.Add(p_WorkingArea); p_WorkingArea.BringToFront(); /*Build the main menu items*/ ToolStripItem fileMenu = menu.Items.Add("File"); fileMenu.Click += delegate(object sender, EventArgs e) { buildSplitContainer( null, new Control() { BackColor = Color.Red }, p_SolutionExplorer); }; ToolStripItem editMenu = menu.Items.Add("Edit"); ToolStripItem buildMenu = menu.Items.Add("Build"); ToolStripItem helpMenu = menu.Items.Add("Help"); menu.Items.Add(new ToolStripSeparator()); ToolStripItem run = menu.Items.Add(Icons.GetBitmap("tools.run", 16)); run.ToolTipText = "Run"; /*Test code*/ Solution solution = new Solution("./testsolution/solution.ossln"); //initialize the components p_SolutionExplorer = new SolutionBrowserControl(); p_TextEditor = new TextEditor(); p_SolutionExplorer.AddSolution(solution); //create the components to seperate the different working area //components. buildSplitContainer(null, null, p_SolutionExplorer); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormView3d)); this.m_ts = new System.Windows.Forms.ToolStrip(); this.m_btn_translate = new System.Windows.Forms.ToolStripButton(); this.m_btn_rotate = new System.Windows.Forms.ToolStripButton(); this.m_btn_scale = new System.Windows.Forms.ToolStripButton(); this.m_ss = new System.Windows.Forms.StatusStrip(); this.m_status = new System.Windows.Forms.ToolStripStatusLabel(); this.m_ts.SuspendLayout(); this.m_ss.SuspendLayout(); this.SuspendLayout(); // // m_ts // this.m_ts.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_btn_translate, this.m_btn_rotate, this.m_btn_scale }); this.m_ts.Location = new System.Drawing.Point(0, 0); this.m_ts.Name = "m_ts"; this.m_ts.Size = new System.Drawing.Size(352, 25); this.m_ts.TabIndex = 0; this.m_ts.Text = "toolStrip1"; // // m_btn_translate // this.m_btn_translate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.m_btn_translate.Image = ((System.Drawing.Image)(resources.GetObject("m_btn_translate.Image"))); this.m_btn_translate.ImageTransparentColor = System.Drawing.Color.Magenta; this.m_btn_translate.Name = "m_btn_translate"; this.m_btn_translate.Size = new System.Drawing.Size(59, 22); this.m_btn_translate.Text = "Translate"; // // m_btn_rotate // this.m_btn_rotate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.m_btn_rotate.Image = ((System.Drawing.Image)(resources.GetObject("m_btn_rotate.Image"))); this.m_btn_rotate.ImageTransparentColor = System.Drawing.Color.Magenta; this.m_btn_rotate.Name = "m_btn_rotate"; this.m_btn_rotate.Size = new System.Drawing.Size(45, 22); this.m_btn_rotate.Text = "Rotate"; // // m_btn_scale // this.m_btn_scale.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.m_btn_scale.Image = ((System.Drawing.Image)(resources.GetObject("m_btn_scale.Image"))); this.m_btn_scale.ImageTransparentColor = System.Drawing.Color.Magenta; this.m_btn_scale.Name = "m_btn_scale"; this.m_btn_scale.Size = new System.Drawing.Size(38, 22); this.m_btn_scale.Text = "Scale"; // // m_ss // this.m_ss.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_status }); this.m_ss.Location = new System.Drawing.Point(0, 320); this.m_ss.Name = "m_ss"; this.m_ss.Size = new System.Drawing.Size(352, 22); this.m_ss.TabIndex = 1; this.m_ss.Text = "statusStrip1"; // // m_status // this.m_status.Name = "m_status"; this.m_status.Size = new System.Drawing.Size(56, 17); this.m_status.Text = "Stay Tuss"; // // FormView3d // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(352, 342); this.Controls.Add(this.m_ss); this.Controls.Add(this.m_ts); this.Name = "FormView3d"; this.Text = "FormView3d"; this.m_ts.ResumeLayout(false); this.m_ts.PerformLayout(); this.m_ss.ResumeLayout(false); this.m_ss.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public WebBrowserTabPage(WebKitBrowser browserControl, bool goHome) { InitializeComponent(); statusStrip = new StatusStrip(); statusStrip.Name = "statusStrip"; statusStrip.Visible = true; statusStrip.SizingGrip = false; container = new ToolStripContainer(); container.Name = "container"; container.Visible = true; container.Dock = DockStyle.Fill; statusLabel = new ToolStripLabel(); statusLabel.Name = "statusLabel"; statusLabel.Text = "Done"; statusLabel.Visible = true; iconLabel = new ToolStripLabel(); iconLabel.Name = "iconLabel"; iconLabel.Text = "No Icon"; iconLabel.Visible = true; progressBar = new ToolStripProgressBar(); progressBar.Name = "progressBar"; progressBar.Visible = true; statusStrip.Items.Add(statusLabel); statusStrip.Items.Add(iconLabel); statusStrip.Items.Add(progressBar); container.BottomToolStripPanel.Controls.Add(statusStrip); // create webbrowser control //IWebView wv = (IWebView)browserControl.GetWebView(); browser = browserControl; browser.Visible = true; browser.Dock = DockStyle.Fill; browser.Name = "browser"; browser.IsWebBrowserContextMenuEnabled = false; /* {@@} */ //browser.IsScriptingEnabled = false; container.ContentPanel.Controls.Add(browser); browser.ObjectForScripting = new TestClass(); // context menu this.Controls.Add(container); this.Text = "<New Tab>"; // events browser.DocumentTitleChanged += (s, e) => this.Text = browser.DocumentTitle; browser.Navigating += (s, e) => statusLabel.Text = "Loading..."; browser.Navigated += (s, e) => { statusLabel.Text = "Downloading..."; }; browser.DocumentCompleted += (s, e) => { statusLabel.Text = "Done"; }; browser.ProgressStarted += (s, e) => { progressBar.Visible = true; }; browser.ProgressChanged += (s, e) => { progressBar.Value = e.ProgressPercentage; }; browser.ProgressFinished += (s, e) => { progressBar.Visible = false; }; if (goHome) { string appPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase); string htmlPath = Path.Combine(appPath, "index.html"); browser.Navigate(Uri.EscapeUriString(new Uri(htmlPath).ToString())); } browser.ShowJavaScriptAlertPanel += (s, e) => MessageBox.Show(e.Message, "[JavaScript Alert]"); browser.ShowJavaScriptConfirmPanel += (s, e) => { e.ReturnValue = MessageBox.Show(e.Message, "[JavaScript Confirm]", MessageBoxButtons.YesNo) == DialogResult.Yes; }; browser.ShowJavaScriptPromptPanel += (s, e) => { var frm = new JSPromptForm(e.Message, e.DefaultValue); if (frm.ShowDialog() == DialogResult.OK) { e.ReturnValue = frm.Value; } }; /* {@@} */ if (!browser.IsWebBrowserContextMenuEnabled) { CreateContextMenu(); // ContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(ContextMenuStrip_Opening); browser.ContextMenuOpen += new EventHandler(ContextMenuStrip_Opening2); } /* {@@} */ }
//public static Worksheet GetWorksheetFromPath(string strEntireFileName = null) //{ //} #region ExportEvaluationToExcel for ResultPtLt /// <summary> /// 将指标值导出到Excel中 /// </summary> /// <param name="pParameterResultToExcel">指标结果信息</param> /// <param name="strSavePath">保存路径</param> /// <remarks>导出时,Excel显示的指标信息为到该点时的指标信息</remarks> public static void ExportEvaluationToExcel(CParameterResult pParameterResultToExcel, CParameterInitialize pParameterInitialize, string strSuffix) { ////为应付Excel的bug,加入以下两行代码 //System.Globalization.CultureInfo CurrentCI = System.Threading.Thread.CurrentThread.CurrentCulture; //System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); StatusStrip ststMain = pParameterInitialize.ststMain; ToolStripStatusLabel tsslTime = pParameterInitialize.tsslTime; ToolStripStatusLabel tsslMessage = pParameterInitialize.tsslMessage; ToolStripProgressBar tspbMain = pParameterInitialize.tspbMain; tsslMessage.Text = "正在将指标值导出到Excel..."; ststMain.Refresh(); long lngStartTime = System.Environment.TickCount; Excel.Application pExcelAPP = new Excel.Application(); pExcelAPP.Visible = false; Workbook pWorkBook = pExcelAPP.Workbooks.Add(true); Worksheet pWorksheet = pWorkBook.Worksheets[1] as Worksheet; string strSavePath = pParameterInitialize.strSavePath; string strfilename = System.IO.Path.GetFileNameWithoutExtension(strSavePath); switch (pParameterResultToExcel.strEvaluationMethod) { case "Integral": { ExportIntegralEvaluation(pParameterResultToExcel, ref pWorksheet, ref tspbMain); strfilename = strfilename + "Integral"; break; } case "Translation": { ExportTranslationEvaluation(pParameterResultToExcel, ref pWorksheet, ref tspbMain); strfilename = strfilename + "Translation"; break; } case "Deflection": { ExportTranslationEvaluation(pParameterResultToExcel, ref pWorksheet, ref tspbMain); strfilename = strfilename + "Deflection"; break; } default: throw new ArgumentException("调用的评价指标值导出方法不存在!"); } pWorksheet.Columns.AutoFit(); pExcelAPP.DisplayAlerts = false; pWorkBook.SaveAs(strSavePath + "\\" + strfilename + strSuffix, AccessMode: XlSaveAsAccessMode.xlNoChange); pExcelAPP.Quit(); long lngEndTime = System.Environment.TickCount; long lngTime = lngEndTime - lngStartTime; tsslTime.Text = "导出运行时间:" + Convert.ToString(lngTime) + "ms"; //显示运行时间 tsslMessage.Text = "详细信息已导出到Excel!"; }
private void InitializeComponent() { DataGridViewCellStyle style = new DataGridViewCellStyle(); DataGridViewCellStyle style2 = new DataGridViewCellStyle(); DataGridViewCellStyle style3 = new DataGridViewCellStyle(); ComponentResourceManager resources = new ComponentResourceManager(typeof(frmTTFFDisplay)); this._ttffViewGrid = new DataGridView(); this.CurveColorDialog = new ColorDialog(); this._updateTTFFBG = new BackgroundWorker(); this.statusStrip1 = new StatusStrip(); this.ttffDisplayToolStripStatusLabel = new ToolStripStatusLabel(); this.ttffDisplayToolStrip1 = new ToolStrip(); this.ttffDisplayToolbarPlotCDFBtn = new ToolStripButton(); this.ttffDisplayToolbarCurveTitleTxtBox = new ToolStripTextBox(); this.ttffDisplayToolbarAddCurveBtn = new ToolStripButton(); this.ttffDisplayToolbarCurveTypeComboBox = new ToolStripComboBox(); this.ttffDisplayToolbarCurveColorBtn = new ToolStripButton(); this.ttffDisplayToolbarCurveColorTxtBox = new ToolStripTextBox(); this.ttffDisplayToolbarSetRefPositionBtn = new ToolStripButton(); this.ttffDisplayToolbarDeleteBtn = new ToolStripButton(); this.ttffDisplayToolbarColumnDescriptionBtn = new ToolStripButton(); this.ttffDisplayToolbarBufferTxtBox = new ToolStripTextBox(); ((ISupportInitialize)this._ttffViewGrid).BeginInit(); this.statusStrip1.SuspendLayout(); this.ttffDisplayToolStrip1.SuspendLayout(); base.SuspendLayout(); this._ttffViewGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; style.Alignment = DataGridViewContentAlignment.MiddleLeft; style.BackColor = SystemColors.Control; style.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); style.ForeColor = SystemColors.WindowText; style.SelectionBackColor = SystemColors.Highlight; style.SelectionForeColor = SystemColors.HighlightText; style.WrapMode = DataGridViewTriState.True; this._ttffViewGrid.ColumnHeadersDefaultCellStyle = style; this._ttffViewGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; style2.Alignment = DataGridViewContentAlignment.MiddleLeft; style2.BackColor = SystemColors.Window; style2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); style2.ForeColor = SystemColors.ControlText; style2.SelectionBackColor = SystemColors.Highlight; style2.SelectionForeColor = SystemColors.HighlightText; style2.WrapMode = DataGridViewTriState.False; this._ttffViewGrid.DefaultCellStyle = style2; this._ttffViewGrid.Location = new Point(12, 0x1c); this._ttffViewGrid.Name = "_ttffViewGrid"; this._ttffViewGrid.ReadOnly = true; style3.Alignment = DataGridViewContentAlignment.MiddleLeft; style3.BackColor = SystemColors.Control; style3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); style3.ForeColor = SystemColors.WindowText; style3.SelectionBackColor = SystemColors.Highlight; style3.SelectionForeColor = SystemColors.HighlightText; style3.WrapMode = DataGridViewTriState.True; this._ttffViewGrid.RowHeadersDefaultCellStyle = style3; this._ttffViewGrid.Size = new Size(0x2c0, 0x15c); this._ttffViewGrid.TabIndex = 8; this.CurveColorDialog.AnyColor = true; this._updateTTFFBG.WorkerReportsProgress = true; this._updateTTFFBG.WorkerSupportsCancellation = true; this._updateTTFFBG.DoWork += new DoWorkEventHandler(this.updateTTFFBG_DoWork); this._updateTTFFBG.ProgressChanged += new ProgressChangedEventHandler(this.updateTTFFBG_ProgressChanged); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.ttffDisplayToolStripStatusLabel }); this.statusStrip1.Location = new Point(0, 0x17a); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(0x2d8, 0x16); this.statusStrip1.TabIndex = 0x1d; this.statusStrip1.Text = "Status"; this.ttffDisplayToolStripStatusLabel.DisplayStyle = ToolStripItemDisplayStyle.Text; this.ttffDisplayToolStripStatusLabel.Name = "ttffDisplayToolStripStatusLabel"; this.ttffDisplayToolStripStatusLabel.Size = new Size(0x26, 0x11); this.ttffDisplayToolStripStatusLabel.Text = "Status"; this.ttffDisplayToolStrip1.Items.AddRange(new ToolStripItem[] { this.ttffDisplayToolbarPlotCDFBtn, this.ttffDisplayToolbarCurveTitleTxtBox, this.ttffDisplayToolbarAddCurveBtn, this.ttffDisplayToolbarCurveTypeComboBox, this.ttffDisplayToolbarCurveColorBtn, this.ttffDisplayToolbarCurveColorTxtBox, this.ttffDisplayToolbarSetRefPositionBtn, this.ttffDisplayToolbarDeleteBtn, this.ttffDisplayToolbarColumnDescriptionBtn, this.ttffDisplayToolbarBufferTxtBox }); this.ttffDisplayToolStrip1.Location = new Point(0, 0); this.ttffDisplayToolStrip1.Name = "ttffDisplayToolStrip1"; this.ttffDisplayToolStrip1.Size = new Size(0x2d8, 0x19); this.ttffDisplayToolStrip1.TabIndex = 0x1f; this.ttffDisplayToolStrip1.Text = "TTFF Display Toolbar"; this.ttffDisplayToolbarPlotCDFBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarPlotCDFBtn.Image = Resources.ttff; this.ttffDisplayToolbarPlotCDFBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarPlotCDFBtn.Name = "ttffDisplayToolbarPlotCDFBtn"; this.ttffDisplayToolbarPlotCDFBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarPlotCDFBtn.Text = "Plot CDF"; this.ttffDisplayToolbarPlotCDFBtn.Click += new EventHandler(this.PlotCDFCurvesButton_Click); this.ttffDisplayToolbarCurveTitleTxtBox.Name = "ttffDisplayToolbarCurveTitleTxtBox"; this.ttffDisplayToolbarCurveTitleTxtBox.Size = new Size(150, 0x19); this.ttffDisplayToolbarCurveTitleTxtBox.Text = "Curve Label"; this.ttffDisplayToolbarCurveTitleTxtBox.ToolTipText = "Curve Label"; this.ttffDisplayToolbarAddCurveBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarAddCurveBtn.Image = Resources.addCurve; this.ttffDisplayToolbarAddCurveBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarAddCurveBtn.Name = "ttffDisplayToolbarAddCurveBtn"; this.ttffDisplayToolbarAddCurveBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarAddCurveBtn.Text = "Add Curve"; this.ttffDisplayToolbarAddCurveBtn.Click += new EventHandler(this.AddCurveToPlotButton_Click); this.ttffDisplayToolbarCurveTypeComboBox.Items.AddRange(new object[] { "TTFF Since Reset", "TTFF Since Aiding Received", "TTFF Since First Nav", "Horz. Error", "Vert. Error" }); this.ttffDisplayToolbarCurveTypeComboBox.Name = "ttffDisplayToolbarCurveTypeComboBox"; this.ttffDisplayToolbarCurveTypeComboBox.Size = new Size(0x9b, 0x19); this.ttffDisplayToolbarCurveTypeComboBox.Text = "Curve Data"; this.ttffDisplayToolbarCurveTypeComboBox.ToolTipText = "Curve Data"; this.ttffDisplayToolbarCurveColorBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarCurveColorBtn.Image = Resources.ColorHS; this.ttffDisplayToolbarCurveColorBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarCurveColorBtn.Name = "ttffDisplayToolbarCurveColorBtn"; this.ttffDisplayToolbarCurveColorBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarCurveColorBtn.Text = "Curve Color"; this.ttffDisplayToolbarCurveColorBtn.Click += new EventHandler(this.CurveColorButton_Click); this.ttffDisplayToolbarCurveColorTxtBox.Name = "ttffDisplayToolbarCurveColorTxtBox"; this.ttffDisplayToolbarCurveColorTxtBox.Size = new Size(100, 0x19); this.ttffDisplayToolbarCurveColorTxtBox.Text = "Curve Color"; this.ttffDisplayToolbarCurveColorTxtBox.ToolTipText = "Curve Color"; this.ttffDisplayToolbarSetRefPositionBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarSetRefPositionBtn.Image = Resources.RefLocation; this.ttffDisplayToolbarSetRefPositionBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarSetRefPositionBtn.Name = "ttffDisplayToolbarSetRefPositionBtn"; this.ttffDisplayToolbarSetRefPositionBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarSetRefPositionBtn.Text = "Set Reference Position"; this.ttffDisplayToolbarSetRefPositionBtn.Click += new EventHandler(this.setRefLocationBtn_Click); this.ttffDisplayToolbarDeleteBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarDeleteBtn.Image = Resources.clearTableHS; this.ttffDisplayToolbarDeleteBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarDeleteBtn.Name = "ttffDisplayToolbarDeleteBtn"; this.ttffDisplayToolbarDeleteBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarDeleteBtn.Text = "Clear"; this.ttffDisplayToolbarDeleteBtn.Click += new EventHandler(this.frmTTFFAndNavAccuracyClearBtn_Click); this.ttffDisplayToolbarColumnDescriptionBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ttffDisplayToolbarColumnDescriptionBtn.Image = Resources.ColumnDescription; this.ttffDisplayToolbarColumnDescriptionBtn.ImageTransparentColor = Color.Magenta; this.ttffDisplayToolbarColumnDescriptionBtn.Name = "ttffDisplayToolbarColumnDescriptionBtn"; this.ttffDisplayToolbarColumnDescriptionBtn.Size = new Size(0x17, 0x16); this.ttffDisplayToolbarColumnDescriptionBtn.Text = "Column Description"; this.ttffDisplayToolbarColumnDescriptionBtn.Click += new EventHandler(this.frmTTFFAndNavAccuracyColumnDescriptionBtn_Click); this.ttffDisplayToolbarBufferTxtBox.Name = "ttffDisplayToolbarBufferTxtBox"; this.ttffDisplayToolbarBufferTxtBox.Size = new Size(100, 0x19); this.ttffDisplayToolbarBufferTxtBox.Text = "500"; this.ttffDisplayToolbarBufferTxtBox.Visible = false; this.ttffDisplayToolbarBufferTxtBox.TextChanged += new EventHandler(this.frmTTFFDisplayBufferSizeTxtBox_TextChanged); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; this.BackColor = SystemColors.Control; base.ClientSize = new Size(0x2d8, 400); base.Controls.Add(this.ttffDisplayToolStrip1); base.Controls.Add(this.statusStrip1); base.Controls.Add(this._ttffViewGrid); base.Icon = (Icon)resources.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; this.MinimumSize = new Size(0xc2, 120); base.Name = "frmTTFFDisplay"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.Manual; this.Text = "TTFF/Nav Accuracy"; base.Load += new EventHandler(this.frmTTFFDisplay_Load); base.Resize += new EventHandler(this.frmTTFFDisplay_Resize); base.LocationChanged += new EventHandler(this.frmTTFFDisplay_LocationChanged); ((ISupportInitialize)this._ttffViewGrid).EndInit(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ttffDisplayToolStrip1.ResumeLayout(false); this.ttffDisplayToolStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainUI)); this.m_tsc = new pr.gui.ToolStripContainer(); this.m_ss = new System.Windows.Forms.StatusStrip(); this.m_status = new System.Windows.Forms.ToolStripStatusLabel(); this.m_dc = new pr.gui.DockContainer(); this.m_menu = new System.Windows.Forms.MenuStrip(); this.m_menu_file = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_file_exit = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_simulate = new System.Windows.Forms.ToolStripMenuItem(); this.m_timer = new System.Windows.Forms.Timer(this.components); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.m_menu_tools_req_acct_update = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_tools_req_trade_history = new System.Windows.Forms.ToolStripMenuItem(); this.m_tsc.BottomToolStripPanel.SuspendLayout(); this.m_tsc.ContentPanel.SuspendLayout(); this.m_tsc.TopToolStripPanel.SuspendLayout(); this.m_tsc.SuspendLayout(); this.m_ss.SuspendLayout(); this.m_menu.SuspendLayout(); this.SuspendLayout(); // // m_tsc // // // m_tsc.BottomToolStripPanel // this.m_tsc.BottomToolStripPanel.Controls.Add(this.m_ss); // // m_tsc.ContentPanel // this.m_tsc.ContentPanel.Controls.Add(this.m_dc); this.m_tsc.ContentPanel.Size = new System.Drawing.Size(906, 628); this.m_tsc.Dock = System.Windows.Forms.DockStyle.Fill; this.m_tsc.Location = new System.Drawing.Point(0, 0); this.m_tsc.Name = "m_tsc"; this.m_tsc.Size = new System.Drawing.Size(906, 674); this.m_tsc.TabIndex = 3; this.m_tsc.Text = "toolStripContainer1"; // // m_tsc.TopToolStripPanel // this.m_tsc.TopToolStripPanel.Controls.Add(this.m_menu); // // m_ss // this.m_ss.Dock = System.Windows.Forms.DockStyle.None; this.m_ss.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_status }); this.m_ss.Location = new System.Drawing.Point(0, 0); this.m_ss.Name = "m_ss"; this.m_ss.Size = new System.Drawing.Size(906, 22); this.m_ss.TabIndex = 0; // // m_status // this.m_status.Name = "m_status"; this.m_status.Size = new System.Drawing.Size(26, 17); this.m_status.Text = "Idle"; // // m_dc // this.m_dc.ActiveContent = null; this.m_dc.ActiveDockable = null; this.m_dc.ActivePane = null; this.m_dc.Dock = System.Windows.Forms.DockStyle.Fill; this.m_dc.Location = new System.Drawing.Point(0, 0); this.m_dc.Name = "m_dc"; this.m_dc.Size = new System.Drawing.Size(906, 628); this.m_dc.TabIndex = 2; this.m_dc.Text = "dockContainer1"; // // m_menu // this.m_menu.Dock = System.Windows.Forms.DockStyle.None; this.m_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_file, this.m_menu_tools }); this.m_menu.Location = new System.Drawing.Point(0, 0); this.m_menu.Name = "m_menu"; this.m_menu.Size = new System.Drawing.Size(906, 24); this.m_menu.TabIndex = 0; // // m_menu_file // this.m_menu_file.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_file_exit }); this.m_menu_file.Name = "m_menu_file"; this.m_menu_file.Size = new System.Drawing.Size(37, 20); this.m_menu_file.Text = "&File"; // // m_menu_file_exit // this.m_menu_file_exit.Name = "m_menu_file_exit"; this.m_menu_file_exit.Size = new System.Drawing.Size(152, 22); this.m_menu_file_exit.Text = "E&xit"; // // m_menu_tools // this.m_menu_tools.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_tools_simulate, this.toolStripSeparator1, this.m_menu_tools_req_acct_update, this.m_menu_tools_req_trade_history }); this.m_menu_tools.Name = "m_menu_tools"; this.m_menu_tools.Size = new System.Drawing.Size(47, 20); this.m_menu_tools.Text = "&Tools"; // // m_menu_tools_simulate // this.m_menu_tools_simulate.Name = "m_menu_tools_simulate"; this.m_menu_tools_simulate.Size = new System.Drawing.Size(205, 22); this.m_menu_tools_simulate.Text = "&Simulate"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(202, 6); // // m_menu_tools_req_acct_update // this.m_menu_tools_req_acct_update.Name = "m_menu_tools_req_acct_update"; this.m_menu_tools_req_acct_update.Size = new System.Drawing.Size(205, 22); this.m_menu_tools_req_acct_update.Text = "Request &Account Update"; // // m_menu_tools_req_trade_history // this.m_menu_tools_req_trade_history.Name = "m_menu_tools_req_trade_history"; this.m_menu_tools_req_trade_history.Size = new System.Drawing.Size(205, 22); this.m_menu_tools_req_trade_history.Text = "Request Trade &History"; // // MainUI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(906, 674); this.Controls.Add(this.m_tsc); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.m_menu; this.Name = "MainUI"; this.Text = "Tradee"; this.m_tsc.BottomToolStripPanel.ResumeLayout(false); this.m_tsc.BottomToolStripPanel.PerformLayout(); this.m_tsc.ContentPanel.ResumeLayout(false); this.m_tsc.TopToolStripPanel.ResumeLayout(false); this.m_tsc.TopToolStripPanel.PerformLayout(); this.m_tsc.ResumeLayout(false); this.m_tsc.PerformLayout(); this.m_ss.ResumeLayout(false); this.m_ss.PerformLayout(); this.m_menu.ResumeLayout(false); this.m_menu.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.save = new System.Windows.Forms.Button(); this.close = new System.Windows.Forms.Button(); this.nodes_list = new System.Windows.Forms.ListBox(); this.save_as = new System.Windows.Forms.Button(); this.open = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.add = new System.Windows.Forms.Button(); this.delete = new System.Windows.Forms.Button(); this.generate_code = new System.Windows.Forms.Button(); this.generate_visitor_template = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.generate_pcu_read_visitor = new System.Windows.Forms.Button(); this.generate_pcu_write_visitor = new System.Windows.Forms.Button(); this.panel3 = new System.Windows.Forms.Panel(); this.Down = new System.Windows.Forms.Button(); this.Up = new System.Windows.Forms.Button(); this.sorted_by_name = new System.Windows.Forms.CheckBox(); this.label7 = new System.Windows.Forms.Label(); this.edit = new System.Windows.Forms.Button(); this.file_name = new System.Windows.Forms.TextBox(); this.namespace_name = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.panel4 = new System.Windows.Forms.Panel(); this.tb_pcu_reader = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.tb_pcu_writer = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.visitor_interface_file_name = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.factory_name = new System.Windows.Forms.TextBox(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.StatusString = new System.Windows.Forms.StatusStrip(); this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); this.panel4.SuspendLayout(); this.StatusString.SuspendLayout(); this.SuspendLayout(); // // save // this.save.Location = new System.Drawing.Point(10, 46); this.save.Name = "save"; this.save.Size = new System.Drawing.Size(182, 27); this.save.TabIndex = 1; this.save.Text = "Сохранить"; this.save.Click += new System.EventHandler(this.save_Click); // // close // this.close.Location = new System.Drawing.Point(652, 378); this.close.Name = "close"; this.close.Size = new System.Drawing.Size(135, 37); this.close.TabIndex = 2; this.close.Text = "Выход"; this.close.Click += new System.EventHandler(this.close_Click); // // nodes_list // this.nodes_list.ItemHeight = 16; this.nodes_list.Location = new System.Drawing.Point(10, 25); this.nodes_list.Name = "nodes_list"; this.nodes_list.Size = new System.Drawing.Size(230, 372); this.nodes_list.TabIndex = 3; this.nodes_list.SelectedIndexChanged += new System.EventHandler(this.nodes_list_SelectedIndexChanged); this.nodes_list.DoubleClick += new System.EventHandler(this.edit_Click); // // save_as // this.save_as.Location = new System.Drawing.Point(10, 83); this.save_as.Name = "save_as"; this.save_as.Size = new System.Drawing.Size(182, 27); this.save_as.TabIndex = 4; this.save_as.Text = "Сохранить как"; this.save_as.Click += new System.EventHandler(this.save_as_Click); // // open // this.open.Location = new System.Drawing.Point(10, 9); this.open.Name = "open"; this.open.Size = new System.Drawing.Size(182, 27); this.open.TabIndex = 5; this.open.Text = "Открыть"; this.open.Click += new System.EventHandler(this.open_Click); // // openFileDialog1 // this.openFileDialog1.DefaultExt = "nin"; this.openFileDialog1.Filter = "Файлы синтаксического дерева (*.nin)|*.nin|Все файлы (*.*)|*.*"; // // add // this.add.Location = new System.Drawing.Point(246, 25); this.add.Name = "add"; this.add.Size = new System.Drawing.Size(117, 27); this.add.TabIndex = 6; this.add.Text = "Добавить"; this.add.Click += new System.EventHandler(this.add_Click); // // delete // this.delete.Location = new System.Drawing.Point(246, 62); this.delete.Name = "delete"; this.delete.Size = new System.Drawing.Size(117, 27); this.delete.TabIndex = 7; this.delete.Text = "Удалить"; this.delete.Click += new System.EventHandler(this.delete_Click); // // generate_code // this.generate_code.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.generate_code.Location = new System.Drawing.Point(10, 10); this.generate_code.Name = "generate_code"; this.generate_code.Size = new System.Drawing.Size(182, 35); this.generate_code.TabIndex = 8; this.generate_code.Text = "Сгенерировать код"; this.generate_code.Click += new System.EventHandler(this.generate_code_Click); // // generate_visitor_template // this.generate_visitor_template.Location = new System.Drawing.Point(10, 54); this.generate_visitor_template.Name = "generate_visitor_template"; this.generate_visitor_template.Size = new System.Drawing.Size(182, 47); this.generate_visitor_template.TabIndex = 9; this.generate_visitor_template.Text = "Генерировать шаблон визитора"; this.generate_visitor_template.Click += new System.EventHandler(this.generate_visitor_template_Click); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.open); this.panel1.Controls.Add(this.save_as); this.panel1.Controls.Add(this.save); this.panel1.Location = new System.Drawing.Point(618, 246); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(201, 120); this.panel1.TabIndex = 10; // // panel2 // this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.Controls.Add(this.generate_pcu_read_visitor); this.panel2.Controls.Add(this.generate_pcu_write_visitor); this.panel2.Controls.Add(this.generate_code); this.panel2.Controls.Add(this.generate_visitor_template); this.panel2.Location = new System.Drawing.Point(618, 9); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(201, 231); this.panel2.TabIndex = 11; // // generate_pcu_read_visitor // this.generate_pcu_read_visitor.Location = new System.Drawing.Point(10, 167); this.generate_pcu_read_visitor.Name = "generate_pcu_read_visitor"; this.generate_pcu_read_visitor.Size = new System.Drawing.Size(182, 50); this.generate_pcu_read_visitor.TabIndex = 11; this.generate_pcu_read_visitor.Text = "Генерировать pcu-десериализатор"; this.generate_pcu_read_visitor.UseVisualStyleBackColor = true; this.generate_pcu_read_visitor.Click += new System.EventHandler(this.generate_pcu_read_visitor_Click); // // generate_pcu_write_visitor // this.generate_pcu_write_visitor.Location = new System.Drawing.Point(10, 110); this.generate_pcu_write_visitor.Name = "generate_pcu_write_visitor"; this.generate_pcu_write_visitor.Size = new System.Drawing.Size(182, 48); this.generate_pcu_write_visitor.TabIndex = 10; this.generate_pcu_write_visitor.Text = "Генерировать pcu-сериализатор"; this.generate_pcu_write_visitor.UseVisualStyleBackColor = true; this.generate_pcu_write_visitor.Click += new System.EventHandler(this.generate_pcu_write_visitor_Click); // // panel3 // this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Controls.Add(this.Down); this.panel3.Controls.Add(this.Up); this.panel3.Controls.Add(this.sorted_by_name); this.panel3.Controls.Add(this.label7); this.panel3.Controls.Add(this.edit); this.panel3.Controls.Add(this.nodes_list); this.panel3.Controls.Add(this.add); this.panel3.Controls.Add(this.delete); this.panel3.Location = new System.Drawing.Point(10, 9); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(371, 406); this.panel3.TabIndex = 12; // // Down // this.Down.Location = new System.Drawing.Point(246, 226); this.Down.Name = "Down"; this.Down.Size = new System.Drawing.Size(117, 27); this.Down.TabIndex = 19; this.Down.Text = "Вниз"; this.Down.UseVisualStyleBackColor = true; this.Down.Click += new System.EventHandler(this.Down_Click); // // Up // this.Up.Location = new System.Drawing.Point(246, 188); this.Up.Name = "Up"; this.Up.Size = new System.Drawing.Size(117, 27); this.Up.TabIndex = 18; this.Up.Text = "Вверх"; this.Up.UseVisualStyleBackColor = true; this.Up.Click += new System.EventHandler(this.Up_Click); // // sorted_by_name // this.sorted_by_name.AutoSize = true; this.sorted_by_name.Location = new System.Drawing.Point(253, 149); this.sorted_by_name.Name = "sorted_by_name"; this.sorted_by_name.Size = new System.Drawing.Size(108, 21); this.sorted_by_name.TabIndex = 17; this.sorted_by_name.Text = "Сортировка"; this.sorted_by_name.UseVisualStyleBackColor = true; this.sorted_by_name.CheckStateChanged += new System.EventHandler(this.sorted_by_name_CheckStateChanged); // // label7 // this.label7.Location = new System.Drawing.Point(12, 6); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(210, 19); this.label7.TabIndex = 16; this.label7.Text = "Узлы синтаксического дерева"; // // edit // this.edit.Location = new System.Drawing.Point(246, 100); this.edit.Name = "edit"; this.edit.Size = new System.Drawing.Size(117, 27); this.edit.TabIndex = 8; this.edit.Text = "Редактировать"; this.edit.Click += new System.EventHandler(this.edit_Click); // // file_name // this.file_name.Location = new System.Drawing.Point(10, 28); this.file_name.Name = "file_name"; this.file_name.Size = new System.Drawing.Size(201, 22); this.file_name.TabIndex = 13; // // namespace_name // this.namespace_name.Location = new System.Drawing.Point(10, 83); this.namespace_name.Name = "namespace_name"; this.namespace_name.Size = new System.Drawing.Size(201, 22); this.namespace_name.TabIndex = 14; // // label1 // this.label1.Location = new System.Drawing.Point(10, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(210, 19); this.label1.TabIndex = 15; this.label1.Text = "Имя файла синтаксич. дерева"; // // label2 // this.label2.Location = new System.Drawing.Point(10, 65); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(192, 18); this.label2.TabIndex = 16; this.label2.Text = "Пространство имен"; // // panel4 // this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.Controls.Add(this.tb_pcu_reader); this.panel4.Controls.Add(this.label6); this.panel4.Controls.Add(this.tb_pcu_writer); this.panel4.Controls.Add(this.label5); this.panel4.Controls.Add(this.label4); this.panel4.Controls.Add(this.visitor_interface_file_name); this.panel4.Controls.Add(this.label3); this.panel4.Controls.Add(this.factory_name); this.panel4.Controls.Add(this.label1); this.panel4.Controls.Add(this.namespace_name); this.panel4.Controls.Add(this.file_name); this.panel4.Controls.Add(this.label2); this.panel4.Location = new System.Drawing.Point(387, 9); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(221, 357); this.panel4.TabIndex = 17; // // tb_pcu_reader // this.tb_pcu_reader.Location = new System.Drawing.Point(10, 313); this.tb_pcu_reader.Name = "tb_pcu_reader"; this.tb_pcu_reader.Size = new System.Drawing.Size(201, 22); this.tb_pcu_reader.TabIndex = 25; this.tb_pcu_reader.Text = "SyntaxTreeStreamReader"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(10, 293); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(192, 17); this.label6.TabIndex = 24; this.label6.Text = "Имя pcu - десериализатора"; // // tb_pcu_writer // this.tb_pcu_writer.Location = new System.Drawing.Point(10, 253); this.tb_pcu_writer.Name = "tb_pcu_writer"; this.tb_pcu_writer.Size = new System.Drawing.Size(201, 22); this.tb_pcu_writer.TabIndex = 23; this.tb_pcu_writer.Text = "SyntaxTreeStreamWriter"; // // label5 // this.label5.Location = new System.Drawing.Point(10, 231); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(192, 18); this.label5.TabIndex = 22; this.label5.Text = "Имя pcu - сериализатора"; // // label4 // this.label4.Location = new System.Drawing.Point(10, 120); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(210, 18); this.label4.TabIndex = 20; this.label4.Text = "Имя файла интерф. визитора"; // // visitor_interface_file_name // this.visitor_interface_file_name.Location = new System.Drawing.Point(10, 138); this.visitor_interface_file_name.Name = "visitor_interface_file_name"; this.visitor_interface_file_name.Size = new System.Drawing.Size(201, 22); this.visitor_interface_file_name.TabIndex = 19; // // label3 // this.label3.Location = new System.Drawing.Point(10, 175); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(124, 19); this.label3.TabIndex = 18; this.label3.Text = "Имя фабрики"; // // factory_name // this.factory_name.Location = new System.Drawing.Point(10, 194); this.factory_name.Name = "factory_name"; this.factory_name.Size = new System.Drawing.Size(201, 22); this.factory_name.TabIndex = 17; // // saveFileDialog1 // this.saveFileDialog1.DefaultExt = "nin"; this.saveFileDialog1.Filter = "Файлы синтаксического дерева (*.nin)|*.nin|Все файлы (*.*)|*.*"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(0, 17); // // StatusString // this.StatusString.Font = new System.Drawing.Font("Tahoma", 7.400001F); this.StatusString.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripDropDownButton1, this.toolStripStatusLabel1 }); this.StatusString.Location = new System.Drawing.Point(0, 423); this.StatusString.Name = "StatusString"; this.StatusString.Size = new System.Drawing.Size(833, 22); this.StatusString.TabIndex = 18; this.StatusString.Text = "statusStrip1"; // // toolStripDropDownButton1 // this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; this.toolStripDropDownButton1.Size = new System.Drawing.Size(29, 20); this.toolStripDropDownButton1.Text = "toolStripDropDownButton1"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(833, 445); this.Controls.Add(this.StatusString); this.Controls.Add(this.panel4); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Controls.Add(this.close); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "PascalABC.NET: syntax tree generator v1.5(с) Водолазов Н., Ткачук А.В., Иванов С" + ".О., 2007-10 "; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); this.Load += new System.EventHandler(this.Form1_Load); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); this.StatusString.ResumeLayout(false); this.StatusString.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void Given_MainFormInteractor() { program = CreateFakeProgram(); svcFactory = mr.StrictMock <IServiceFactory>(); archSvc = mr.StrictMock <IArchiveBrowserService>(); dlgFactory = mr.StrictMock <IDialogFactory>(); uiSvc = mr.StrictMock <IDecompilerShellUiService>(); memSvc = mr.StrictMock <ILowLevelViewService>(); disasmSvc = mr.StrictMock <IDisassemblyViewService>(); typeLibSvc = mr.StrictMock <ITypeLibraryLoaderService>(); brSvc = mr.Stub <IProjectBrowserService>(); uiPrefs = mr.StrictMock <IUiPreferencesService>(); fsSvc = mr.StrictMock <IFileSystemService>(); tcHostSvc = mr.StrictMock <ITabControlHostService>(); dcSvc = mr.StrictMock <IDecompilerService>(); srSvc = MockRepository.GenerateMock <ISearchResultService, IWindowPane>(); diagnosticSvc = MockRepository.GenerateMock <IDiagnosticsService, IWindowPane>(); resEditSvc = mr.StrictMock <IResourceEditorService>(); cgvSvc = mr.StrictMock <ICallGraphViewService>(); loader = mr.StrictMock <ILoader>(); svcFactory.Stub(s => s.CreateArchiveBrowserService()).Return(archSvc); svcFactory.Stub(s => s.CreateDecompilerConfiguration()).Return(new FakeDecompilerConfiguration()); svcFactory.Stub(s => s.CreateDiagnosticsService(Arg <ListView> .Is.Anything)).Return(diagnosticSvc); svcFactory.Stub(s => s.CreateDecompilerService()).Return(dcSvc); svcFactory.Stub(s => s.CreateDisassemblyViewService()).Return(disasmSvc); svcFactory.Stub(s => s.CreateMemoryViewService()).Return(memSvc); svcFactory.Stub(s => s.CreateDecompilerEventListener()).Return(new FakeDecompilerEventListener()); svcFactory.Stub(s => s.CreateInitialPageInteractor()).Return(new FakeInitialPageInteractor()); svcFactory.Stub(s => s.CreateLoadedPageInteractor()).Return(new FakeLoadedPageInteractor()); svcFactory.Stub(s => s.CreateTypeLibraryLoaderService()).Return(typeLibSvc); svcFactory.Stub(s => s.CreateProjectBrowserService(Arg <ITreeView> .Is.NotNull)).Return(brSvc); svcFactory.Stub(s => s.CreateUiPreferencesService()).Return(uiPrefs); svcFactory.Stub(s => s.CreateFileSystemService()).Return(fsSvc); svcFactory.Stub(s => s.CreateShellUiService(Arg <IMainForm> .Is.NotNull, Arg <DecompilerMenus> .Is.NotNull)).Return(uiSvc); svcFactory.Stub(s => s.CreateTabControlHost(Arg <TabControl> .Is.NotNull)).Return(tcHostSvc); svcFactory.Stub(s => s.CreateLoader()).Return(loader); svcFactory.Stub(s => s.CreateSearchResultService(Arg <ListView> .Is.NotNull)).Return(srSvc); svcFactory.Stub(s => s.CreateResourceEditorService()).Return(resEditSvc); svcFactory.Stub(s => s.CreateCallGraphViewService()).Return(cgvSvc); services.AddService(typeof(IDialogFactory), dlgFactory); services.AddService(typeof(IServiceFactory), svcFactory); brSvc.Stub(b => b.Clear()); form = mr.StrictMock <IMainForm>(); var listView = new ListView(); var imagelist = new ImageList(); var tabResults = new TabPage(); var tabDiagnostics = new TabPage(); var tabControl = new TabControl { TabPages = { tabResults, tabDiagnostics } }; var toolStrip = new ToolStrip { }; var statusStrip = new StatusStrip { Items = { new ToolStripLabel() } }; var brToolbar = new ToolStrip(); var projectBrowser = mr.Stub <ITreeView>(); form.Stub(f => f.DiagnosticsList).Return(listView); form.Stub(f => f.ImageList).Return(imagelist); form.Stub(f => f.Menu).SetPropertyAndIgnoreArgument(); form.Stub(f => f.AddToolbar(null)).IgnoreArguments(); form.Stub(f => f.AddProjectBrowserToolbar(null)).IgnoreArguments(); form.Stub(f => f.Dispose()); form.Stub(f => f.TabControl).Return(tabControl); form.Stub(f => f.FindResultsPage).Return(tabResults); form.Stub(f => f.DiagnosticsPage).Return(tabDiagnostics); form.Stub(f => f.FindResultsList).Return(listView); form.Stub(f => f.ToolBar).Return(toolStrip); form.Stub(f => f.ProjectBrowserToolbar).Return(toolStrip); form.Stub(f => f.ProjectBrowser).Return(projectBrowser); form.Stub(f => f.StatusStrip).Return(statusStrip); form.Stub(f => f.AddProjectBrowserToolbar(null)).IgnoreArguments(); form.Stub(f => f.ProjectBrowserToolbar).Return(brToolbar); form.Load += null; LastCall.IgnoreArguments(); form.Closed += null; LastCall.IgnoreArguments(); form.ProcessCommandKey += null; LastCall.IgnoreArguments(); dlgFactory.Stub(d => d.CreateMainForm()).Return(form); tcHostSvc.Stub(t => t.Attach(Arg <IWindowPane> .Is.NotNull, Arg <TabPage> .Is.NotNull)); tcHostSvc.Stub(t => t.QueryStatus( Arg <CommandID> .Is.Anything, Arg <CommandStatus> .Is.Anything, Arg <CommandText> .Is.Anything)).Return(false); tcHostSvc.Stub(t => t.Execute(Arg <CommandID> .Is.Anything)).Return(false); uiSvc.Stub(u => u.DocumentWindows).Return(new List <IWindowFrame>()); }
private void BTProceder_Click(object sender, EventArgs e) { if (Session.Turno == null) { MensajeAviso.Show(MessageType.WARNING, "Ud. no puede hacer operaciones porque no tiene turno o su turno esta inactivo"); return; } if (setItem()) { if (string.IsNullOrEmpty(monto1.TBMonto.Text.Trim())) { epValidarCampos.SetError(monto1.TBMonto, ""); epValidarCampos.SetError(monto1.TBMonto, "Debe ingresar un monto para el cambio."); return; } else { epValidarCampos.SetError(monto1.TBMonto, ""); } TipoMovimientoMethods movimiento = new TipoMovimientoMethods(); tipo = new TipodeCambioModel(); // VentanaPrincipal ventana =new VentanaPrincipal; if (rbtnVenta.Checked == true) { tipo.MonedaE = tipoMoneda2.CboMoneda.SelectedIndex.ToString(); monedaEntrada = Convert.ToInt16(tipo.MonedaE); tipo.MontoE = Convert.ToDecimal(txtConversion.Text); tipo.MontoS = Convert.ToDecimal(monto1.TBMonto.Text); tipo.Operacion = rbtnVenta.Text; tipo.MonedaS = tipoMoneda1.CboMoneda.SelectedIndex.ToString(); monedaSalida = Convert.ToInt16(tipo.MonedaS); } else { tipo.MonedaE = tipoMoneda1.CboMoneda.SelectedIndex.ToString(); monedaEntrada = Convert.ToInt16(tipo.MonedaE); tipo.MontoE = Convert.ToDecimal(monto1.TBMonto.Text); tipo.MontoS = Convert.ToDecimal(txtConversion.Text); tipo.Operacion = rbtnCompra.Text; tipo.MonedaS = tipoMoneda2.CboMoneda.SelectedIndex.ToString(); monedaSalida = Convert.ToInt16(tipo.MonedaS); } if (monedaEntrada == 0) { simboloMonedaEntrada = "S/"; } else { simboloMonedaEntrada = "$"; } if (monedaSalida == 1) { simboloMonedaSalida = "$"; } else { simboloMonedaSalida = "S/"; } simboloMoneda = "$"; //tipo.MonedaS = tipoMoneda2.CboMoneda.SelectedIndex.ToString(); if (rbtnCompra.Checked == true) { tipo.TipoCambio = Convert.ToDecimal(precios1.LbCompraDolares.Text); } else { tipo.TipoCambio = Convert.ToDecimal(precios1.LbVentaDolares.Text); } StatusStrip o = this.TopLevelControl.Controls.Find("stStatus", true).FirstOrDefault() as StatusStrip; //o.Items[1].Text; //Solucionar tipo.Usuario = Session.UserName; if (Session.Turno != null) { idUsuario = Session.Turno.IdTurUsu; } else { idUsuario = 0; } ////////////////////////// if (rbtnCompra.Checked == true) { if (tipoMoneda2.CboMoneda.SelectedIndex == 0) //Soles { if (Convert.ToDecimal(txtConversion.Text) <= Convert.ToDecimal(efectivoNetoCambioMoneda.txtEfectivoSoles.Text)) { RealizarCambioMoneda(); } else { MensajeAviso.Show(MessageType.WARNING, "No cuenta con suficiente dinero en caja para el cambio de moneda."); } } else if (tipoMoneda2.CboMoneda.SelectedIndex == 1) //Dolares { if (Convert.ToDecimal(txtConversion.Text) <= Convert.ToDecimal(efectivoNetoCambioMoneda.txtEfectivoDolares.Text)) { RealizarCambioMoneda(); } else { MensajeAviso.Show(MessageType.WARNING, "No cuenta con suficiente dinero en caja para el cambio de moneda."); } } } else if (rbtnVenta.Checked == true)//VENTA { if (tipoMoneda1.CboMoneda.SelectedIndex == 0) //Soles { if (Convert.ToDecimal(monto1.TBMonto.Text) <= Convert.ToDecimal(efectivoNetoCambioMoneda.txtEfectivoSoles.Text)) { RealizarCambioMoneda(); } else { MensajeAviso.Show(MessageType.WARNING, "No cuenta con suficiente dinero en caja para el cambio de moneda."); } } else if (tipoMoneda1.CboMoneda.SelectedIndex == 1) //Dolares { if (Convert.ToDecimal(monto1.TBMonto.Text) <= Convert.ToDecimal(efectivoNetoCambioMoneda.txtEfectivoDolares.Text)) { RealizarCambioMoneda(); } else { MensajeAviso.Show(MessageType.WARNING, "No cuenta con suficiente dinero en caja para el cambio de moneda."); } } } } else { MensajeAviso.Show(MessageType.WARNING, "El monto para el cambio no puede ser 0"); } }
public StatusBarService(StatusStrip statusStrip) { this.statusStrip = statusStrip; }
/// <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(FindDuplicateFilesUI)); this.m_tsc = new ToolStripContainer(); this.m_ss = new System.Windows.Forms.StatusStrip(); this.m_status = new System.Windows.Forms.ToolStripStatusLabel(); this.m_dock = new DockContainer(); this.m_menu = new System.Windows.Forms.MenuStrip(); this.m_menu_file = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_file_search_dirs = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_file_sep0 = new System.Windows.Forms.ToolStripSeparator(); this.m_menu_file_exit = new System.Windows.Forms.ToolStripMenuItem(); this.m_menu_window = new System.Windows.Forms.ToolStripMenuItem(); this.m_tsc.BottomToolStripPanel.SuspendLayout(); this.m_tsc.ContentPanel.SuspendLayout(); this.m_tsc.TopToolStripPanel.SuspendLayout(); this.m_tsc.SuspendLayout(); this.m_ss.SuspendLayout(); this.m_menu.SuspendLayout(); this.SuspendLayout(); // // m_tsc // // // m_tsc.BottomToolStripPanel // this.m_tsc.BottomToolStripPanel.Controls.Add(this.m_ss); // // m_tsc.ContentPanel // this.m_tsc.ContentPanel.Controls.Add(this.m_dock); this.m_tsc.ContentPanel.Size = new System.Drawing.Size(738, 596); this.m_tsc.Dock = System.Windows.Forms.DockStyle.Fill; this.m_tsc.Location = new System.Drawing.Point(0, 0); this.m_tsc.Margin = new System.Windows.Forms.Padding(0); this.m_tsc.Name = "m_tsc"; this.m_tsc.Size = new System.Drawing.Size(738, 642); this.m_tsc.TabIndex = 0; this.m_tsc.Text = "tsc"; // // m_tsc.TopToolStripPanel // this.m_tsc.TopToolStripPanel.Controls.Add(this.m_menu); // // m_ss // this.m_ss.Dock = System.Windows.Forms.DockStyle.None; this.m_ss.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_status }); this.m_ss.Location = new System.Drawing.Point(0, 0); this.m_ss.Name = "m_ss"; this.m_ss.Size = new System.Drawing.Size(738, 22); this.m_ss.TabIndex = 0; // // m_status // this.m_status.Name = "m_status"; this.m_status.Size = new System.Drawing.Size(26, 17); this.m_status.Text = "Idle"; // // m_dock // this.m_dock.Dock = System.Windows.Forms.DockStyle.Fill; this.m_dock.Location = new System.Drawing.Point(0, 0); this.m_dock.Margin = new System.Windows.Forms.Padding(0); this.m_dock.Name = "m_dock"; this.m_dock.Size = new System.Drawing.Size(738, 596); this.m_dock.TabIndex = 0; // // m_menu // this.m_menu.Dock = System.Windows.Forms.DockStyle.None; this.m_menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_file, this.m_menu_window }); this.m_menu.Location = new System.Drawing.Point(0, 0); this.m_menu.Name = "m_menu"; this.m_menu.Size = new System.Drawing.Size(738, 24); this.m_menu.TabIndex = 0; this.m_menu.Text = "menuStrip1"; // // m_menu_file // this.m_menu_file.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.m_menu_file_search_dirs, this.m_menu_file_sep0, this.m_menu_file_exit }); this.m_menu_file.Name = "m_menu_file"; this.m_menu_file.Size = new System.Drawing.Size(37, 20); this.m_menu_file.Text = "&File"; // // m_menu_file_search_dirs // this.m_menu_file_search_dirs.Name = "m_menu_file_search_dirs"; this.m_menu_file_search_dirs.Size = new System.Drawing.Size(168, 22); this.m_menu_file_search_dirs.Text = "Search Directories"; // // m_menu_file_sep0 // this.m_menu_file_sep0.Name = "m_menu_file_sep0"; this.m_menu_file_sep0.Size = new System.Drawing.Size(165, 6); // // m_menu_file_exit // this.m_menu_file_exit.Name = "m_menu_file_exit"; this.m_menu_file_exit.Size = new System.Drawing.Size(168, 22); this.m_menu_file_exit.Text = "E&xit"; // // m_menu_window // this.m_menu_window.Name = "m_menu_window"; this.m_menu_window.Size = new System.Drawing.Size(63, 20); this.m_menu_window.Text = "&Window"; // // FindDuplicateFilesUI // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(738, 642); this.Controls.Add(this.m_tsc); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.m_menu; this.Name = "FindDuplicateFilesUI"; this.Text = "Find Duplicate Files"; this.m_tsc.BottomToolStripPanel.ResumeLayout(false); this.m_tsc.BottomToolStripPanel.PerformLayout(); this.m_tsc.ContentPanel.ResumeLayout(false); this.m_tsc.TopToolStripPanel.ResumeLayout(false); this.m_tsc.TopToolStripPanel.PerformLayout(); this.m_tsc.ResumeLayout(false); this.m_tsc.PerformLayout(); this.m_ss.ResumeLayout(false); this.m_ss.PerformLayout(); this.m_menu.ResumeLayout(false); this.m_menu.PerformLayout(); this.ResumeLayout(false); }
public MainIDE(Splash splash) { BackColor = Color.FromArgb(255, 230, 230, 230); ForeColor = Color.Black; Icon = Icons.GetIcon("icons.logo", 32); Text = "OS Development Studio"; //trigger initialization of the text editor core TextEditor.Initialize(); //once the form has loaded, send a signal to the //splash screen to close. Load += delegate(object sender, EventArgs e) { splash.Ready(); Focus(); }; //load the size and location of the window the last time the application //was running. if (RuntimeState.ObjectExists("mainIDE.windowRect")) { RuntimeState.RECTANGLE rect = (RuntimeState.RECTANGLE)RuntimeState.GetObject( "mainIDE.windowRect", typeof(RuntimeState.RECTANGLE)); //StartPosition = FormStartPosition.Manual; Location = new Point(rect.X, rect.Y); Size = new Size(rect.Width, rect.Height); //restore the window state if (RuntimeState.ObjectExists("mainIDE.windowState")) { WindowState = (FormWindowState)(byte)RuntimeState.GetObject( "mainIDE.windowState", typeof(byte)); } } else { //set the initial size of the window to 75% of the current screen Size screenSize = Screen.FromPoint(Cursor.Position).WorkingArea.Size; Size = new Size( (int)(screenSize.Width * 0.75), (int)(screenSize.Height * 0.75)); StartPosition = FormStartPosition.CenterScreen; } #region Create the initial panels p_StatusStrip = new StatusStrip { BackColor = BackColor }; p_WorkingArea = new Panel { Dock = DockStyle.Fill }; ToolStrip menu = new ToolStrip { GripStyle = ToolStripGripStyle.Hidden, Renderer = new toolStripRenderer(), BackColor = BackColor, ForeColor = ForeColor }; p_Menu = menu; Controls.Add(menu); Controls.Add(p_StatusStrip); Controls.Add(p_WorkingArea); p_WorkingArea.BringToFront(); #endregion #region Menu /*Build the main menu items*/ menu.Items.Add(new ToolStripMenuItem("File", null, getFileMenuItems())); menu.Items.Add(new ToolStripMenuItem("Edit", null, getEditMenuItems())); menu.Items.Add(new ToolStripMenuItem("Build", null, getBuildMenuItems())); menu.Items.Add(new ToolStripMenuItem("Tools", null, getToolsMenuItems())); menu.Items.Add(new ToolStripMenuItem("Help", null, getHelpMenuItems())); /*Build shortcuts*/ menu.Items.Add(new ToolStripSeparator()); p_MenuStripRunButton = menu.Items.Add(null, Icons.GetBitmap("tools.run", 16), menu_build_run); menu.Items.Add(null, Icons.GetBitmap("tools.stop", 16), menu_build_stop); menu.Items.Add(new ToolStripSeparator()); menu.Items.Add(null, Icons.GetBitmap("tools.build", 16), menu_build_build); #endregion //initialize the components initializeComponentSkeleton(); initializeSolutionBrowser(); initializeFileEditor(); initializeOutputWindow(); initializeStatusStrip(); //create a UI update timer Timer updTimer = new Timer() { Interval = 30, Enabled = true }; updTimer.Tick += uiUpdate; //clean up p_WorkingArea.BringToFront(); p_SaveStateEnabled = true; }
private void ReadXML_Ex1() { // this is how you load an xml document object from a file like yours... XmlDocument doc = new XmlDocument(); doc.Load(@"d:\path\form.xml"); //获取根节点 XmlNode rootNode = doc.SelectSingleNode("controls"); //获取根节点的所有子节点,以列表形式存放 XmlNodeList subNode = rootNode.ChildNodes; foreach (XmlNode xNode in subNode) { XmlElement x = (XmlElement)xNode; switch (x.GetAttribute("type")) { case "MenuStrip": // 1.加载plugins目录下的所有的dll文件 //string plugins = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); // 1.1 搜索plugins目录下的所有的dll文件 //string[] dlls = Directory.GetFiles(plugins, "*.dll"); //label1.Text = "MenuStrip"; //MenuStrip menuStrip1 = new MenuStrip(); //获取MenuStrip的所有子节点,其中第一个子节点为MenuStrip的属性值,第二个节点为子节点subcontrol XmlNodeList subMenuStrip = x.ChildNodes; string dll = subMenuStrip[2].InnerText; //加载程序集(dll文件地址),使用Assembly类 Assembly assembly = Assembly.LoadFile(dll); //所有属性值,subMenuStrip[0]为属性值 string menuStripName = subMenuStrip[0].ChildNodes[0].Name; int x_location = Convert.ToInt32(subMenuStrip[0].ChildNodes[1].Attributes["x"].Value); int y_location = Convert.ToInt32(subMenuStrip[0].ChildNodes[1].Attributes["y"].Value); int x_size = Convert.ToInt32(subMenuStrip[0].ChildNodes[2].Attributes["x"].Value); int y_size = Convert.ToInt32(subMenuStrip[0].ChildNodes[2].Attributes["y"].Value); //获取MenuStrip的属性值 //添加菜单栏 MenuStrip menuStrip1; menuStrip1 = new System.Windows.Forms.MenuStrip(); menuStrip1.Name = menuStripName; menuStrip1.Size = new System.Drawing.Size(x_size, y_size); menuStrip1.Location = new System.Drawing.Point(x_location, y_location); //添加ToolStrip //subMenuStrip[1]为子节点subcontrol XmlNodeList subSubMenuStrip = subMenuStrip[1].ChildNodes; ToolStripMenuItem[] toolStripMenuItems = new ToolStripMenuItem[5]; int i = 0; //获取到每一个ToolStrip的content Type type; foreach (XmlNode x2 in subSubMenuStrip) { //[0]为name属性 string toolStripMenuItemsName = x2.ChildNodes[0].Name; int x_size_toolStrip = Convert.ToInt32(x2.ChildNodes[1].Attributes["height"].Value); int y_size_toolStrip = Convert.ToInt32(x2.ChildNodes[1].Attributes["width"].Value); string text_toolStripMenuItems = ""; //空间名+类名 string spaceClassName = x2.ChildNodes[3].InnerText; if (ch) { text_toolStripMenuItems = x2.ChildNodes[2].ChildNodes[0].InnerText; } else { text_toolStripMenuItems = x2.ChildNodes[2].ChildNodes[1].InnerText; } //声明变量 toolStripMenuItems[i] = new ToolStripMenuItem(); toolStripMenuItems[i].Name = toolStripMenuItemsName; toolStripMenuItems[i].Text = text_toolStripMenuItems; toolStripMenuItems[i].Size = new Size(x_size_toolStrip, y_size_toolStrip); type = assembly.GetType(spaceClassName); if (typeIMenu.IsAssignableFrom(type) && !type.IsAbstract) { IMenu editor = (IMenu)Activator.CreateInstance(type); menuStrip1.Items.Add(toolStripMenuItems[i]); toolStripMenuItems[i].Click += toolStripMenuItems_Click; toolStripMenuItems[i].Tag = editor; } ++i; } //【0】实现打开 //用反射实现!!!! //================================ //toolStripMenuItems[0].Click += fileToolStripMenuItem_Click; ////[1]实现示例查找 //toolStripMenuItems[1].Click += searchToolStripMenuItem_Click; //================================ //Type typeIMenu = typeof(IMenu); //获取类型,参数(名称空间+类) //Type type = assembly.GetType("assembly_name.assembly_class"); //if (typeIMenu.IsAssignableFrom(types[i]) && !types[i].IsAbstract) //{ // IMenu editor = (IMenu)Activator.CreateInstance(types[i]); // // 2.5 向菜单栏中动态添加一个菜单项 // ToolStripItem toolItem = 编辑ToolStripMenuItem.DropDownItems.Add(editor.PluginName); // // 2.6 为刚刚增加的菜单项注册一个单击事件 // toolItem.Click += new EventHandler(toolItem_Click); // toolItem.Tag = editor; //} Controls.Add(menuStrip1); this.MainMenuStrip = menuStrip1; break; case "TreeView": //label1.Text = "TreeView"; TreeView[] treeViews = new TreeView[2]; int j = 0; //获取TreeView的所有子节点 XmlNodeList subTreeView = x.ChildNodes; //每一个x3为一个treeView foreach (XmlNode x3 in subTreeView) { XmlNodeList subSubTreeView = x3.ChildNodes; //每一个treeView都有自己的ContextMenu但是,具体有多少项是在xml里面写的, //暂时不实现每一项的功能,仅作不同显示 this.components = new System.ComponentModel.Container(); ContextMenuStrip contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); //subSubTreeView[0]为properties string treeViewName = subSubTreeView[0].ChildNodes[0].InnerText; int x_location_treeView = Convert.ToInt32(subSubTreeView[0].ChildNodes[1].Attributes["x"].Value); int y_location_treeView = Convert.ToInt32(subSubTreeView[0].ChildNodes[1].Attributes["y"].Value); int x_size_treeView = Convert.ToInt32(subSubTreeView[0].ChildNodes[2].Attributes["height"].Value); int y_size_treeView = Convert.ToInt32(subSubTreeView[0].ChildNodes[2].Attributes["width"].Value); string rootNodeTreeView = subSubTreeView[0].ChildNodes[3].ChildNodes[0].InnerText; TreeNode rooTreeNode = new TreeNode(); rooTreeNode.Name = rootNodeTreeView; if (ch) { rooTreeNode.Text = subSubTreeView[0].ChildNodes[3].ChildNodes[1].ChildNodes[0].InnerText; } else { rooTreeNode.Text = subSubTreeView[0].ChildNodes[3].ChildNodes[1].ChildNodes[1].InnerText; } //实现rootNode的上下文菜单 rooTreeNode.ContextMenuStrip = contextMenuStrip1; //获取contextMenu的节点 XmlNode contextMenuNode = subSubTreeView[0].ChildNodes[3].ChildNodes[2]; XmlNodeList contextNodeLists = contextMenuNode.ChildNodes; //为每一项菜单赋值,设置属性 ToolStripMenuItem[] tool_StripMenuItem = new ToolStripMenuItem[2]; int m = 0; foreach (XmlNode itemContext in contextNodeLists) { tool_StripMenuItem[m] = new ToolStripMenuItem(); tool_StripMenuItem[m].Name = itemContext.ChildNodes[0].InnerText; int x_size_item = Convert.ToInt32(itemContext.ChildNodes[1].Attributes["height"].Value); int y_size_item = Convert.ToInt32(itemContext.ChildNodes[1].Attributes["width"].Value); tool_StripMenuItem[m].Size = new Size(x_size_item, y_size_item); if (ch) { tool_StripMenuItem[m].Text = itemContext.ChildNodes[2].FirstChild.InnerText; } else { tool_StripMenuItem[m].Text = itemContext.ChildNodes[2].LastChild.InnerText; } contextMenuStrip1.Items.Add(tool_StripMenuItem[m]); } //string treeViewName = x3.ChildNodes[0].InnerText; //int x_location_treeView = Convert.ToInt32(x3.ChildNodes[1].Attributes["x"].Value); //int y_location_treeView = Convert.ToInt32(x3.ChildNodes[1].Attributes["y"].Value); //int x_size_treeView = Convert.ToInt32(x3.ChildNodes[2].Attributes["height"].Value); //int y_size_treeView = Convert.ToInt32(x3.ChildNodes[2].Attributes["width"].Value); treeViews[j] = new TreeView(); treeViews[j].Name = treeViewName; treeViews[j].Location = new Point(x_location_treeView, y_location_treeView); treeViews[j].Size = new Size(x_size_treeView, y_size_treeView); Controls.Add(treeViews[j]); treeViews[j].Nodes.Add(rooTreeNode); TreeNode[] treeNodes = new TreeNode[3]; int p = 0; foreach (XmlNode x5 in subSubTreeView[1].ChildNodes) { treeNodes[p] = new TreeNode(); treeNodes[p].Name = x5.FirstChild.InnerText; if (ch) { treeNodes[p].Text = x5.LastChild.ChildNodes[0].InnerText; } else { treeNodes[p].Text = x5.LastChild.ChildNodes[1].InnerText; } rooTreeNode.Nodes.Add(treeNodes[p]); ++p; } ++j; } break; case "TextBox": //label1.Text = "TextBox"; //获取TextBox的所有子节点 XmlNodeList subTextBox = x.ChildNodes; string textBoxName = subTextBox[0].InnerText; bool isMultiline = Convert.ToBoolean(subTextBox[0].Attributes["multiline"].Value); int x_location_textBox = Convert.ToInt32(subTextBox[1].Attributes["x"].Value); int y_location_textBox = Convert.ToInt32(subTextBox[1].Attributes["y"].Value); int x_size_textBox = Convert.ToInt32(subTextBox[2].Attributes["height"].Value); int y_size_textBox = Convert.ToInt32(subTextBox[2].Attributes["width"].Value); TextBox textBox = new TextBox(); textBox.Multiline = isMultiline; textBox.Name = textBoxName; textBox.Location = new Point(x_location_textBox, y_location_textBox); textBox.Size = new Size(x_size_textBox, y_size_textBox); Controls.Add(textBox); break; case "StatusStrip": XmlNodeList subStatusStrip = x.ChildNodes; string statusStripName = subStatusStrip[0].InnerText; int x_size_statusStrip = Convert.ToInt32(subStatusStrip[1].Attributes["height"].Value); int y_size_statusStrip = Convert.ToInt32(subStatusStrip[1].Attributes["width"].Value); StatusStrip statusStrip = new StatusStrip(); statusStrip.Name = statusStripName; statusStrip.Size = new Size(x_size_statusStrip, y_size_statusStrip); Controls.Add(statusStrip); break; case "ToolStrip": XmlNodeList subToolStrip = x.ChildNodes; //subToolStrip[0]为属性值 string toolStrip_Name = subToolStrip[0].ChildNodes[0].InnerText; int x_location_toolStrip = Convert.ToInt32(subToolStrip[0].ChildNodes[1].Attributes["x"].Value); int y_location_toolStrip = Convert.ToInt32(subToolStrip[0].ChildNodes[1].Attributes["y"].Value); int xSize_toolStrip = Convert.ToInt32(subToolStrip[0].ChildNodes[2].Attributes["height"].Value); int ySize_toolStrip = Convert.ToInt32(subToolStrip[0].ChildNodes[2].Attributes["width"].Value); string toolStrip_Text = subToolStrip[0].ChildNodes[3].InnerText; ToolStrip toolStrip = new ToolStrip(); toolStrip.Name = toolStrip_Name; toolStrip.Location = new Point(x_location_toolStrip, y_location_toolStrip); toolStrip.Size = new Size(xSize_toolStrip, ySize_toolStrip); toolStrip.Text = toolStrip_Text; toolStrip.SuspendLayout(); toolStrip.ResumeLayout(false); toolStrip.PerformLayout(); Controls.Add(toolStrip); XmlNodeList subSubToolStrip = subToolStrip[1].ChildNodes; ToolStripButton[] toolStripButtons = new ToolStripButton[3]; int k = 0; foreach (XmlNode x4 in subSubToolStrip) { string toolStripButtonName = x4.ChildNodes[0].InnerText; int x_size_toolStripButton = Convert.ToInt32(x4.ChildNodes[1].Attributes["height"].Value); int y_size_toolStripButton = Convert.ToInt32(x4.ChildNodes[1].Attributes["width"].Value); string text_toolStripButton = ""; if (ch) { text_toolStripButton = x4.ChildNodes[2].ChildNodes[0].InnerText; } else { text_toolStripButton = x4.ChildNodes[2].ChildNodes[1].InnerText; } //string ImageTransparentColor = x4.ChildNodes[3].InnerText; //string Image = x4.ChildNodes[4].InnerText; toolStripButtons[k] = new ToolStripButton(); toolStripButtons[k].Name = toolStripButtonName; toolStripButtons[k].Size = new Size(x_size_toolStripButton, y_size_toolStripButton); toolStripButtons[k].Text = text_toolStripButton; //toolStripButtons[k].ImageTransparentColor = ImageTransparentColor; //toolStripButtons[k].Image = ((System.Drawing.Image)(resources.GetObject("Image"))); toolStripButtons[k].DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; toolStrip.Items.Add(toolStripButtons[k]); ++k; } break; } } }
public void setToolStripImage(StatusStrip in_me, ToolStripStatusLabel set_me, System.Drawing.Image to_me) { if(in_me.InvokeRequired) { in_me.BeginInvoke(new setToolStripImageDelegate(setToolStripImage), new Object[] { in_me, set_me, to_me}); } else { lock(in_me) { set_me.Image = to_me; } } }