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 MyForm() { statusstrip1 = new StatusStrip(); toolstripstatuslabel1 = new ToolStripStatusLabel(); btn = new Button(); btn2 = new Button(); InitializeComponent(); }
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 static void Initialize(ToolStripStatusLabel tsi) { tsi.BorderSides = ToolStripStatusLabelBorderSides.All; tsi.BorderStyle = Border3DStyle.Etched; tsi.MouseDown += StatusButton_MouseDown; tsi.MouseUp += StatusButton_MouseUp; tsi.MouseEnter += StatusButton_MouseEnter; tsi.MouseLeave += StatusButton_MouseLeave; }
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); }
public static void SetStatusOk(ToolStripStatusLabel label) { SetStatusLabel(label, "Status Ok", Color.Green); }
private void SetTCStatusLabel(ToolStripStatusLabel lbl, int state, string txt) { lbl.Text = txt; lbl.BackColor = state == 0 ? System.Drawing.Color.Green : System.Drawing.Color.Red; }
public static void SetStatusLabel(ToolStripStatusLabel label, string text, Color color) { label.Text = text; label.ForeColor = color; }
private void Form1_Load(object sender, EventArgs e) { // Disable Value text box. OKButton.Enabled = false; // Add label to status bar. label = new ToolStripStatusLabel(); ToolStripItem[] items = { label }; this.StatusBar.Items.AddRange(items); // Get localized strings for user interface. this.Text = rm.GetString("WindowCaption"); this.ValueLabel.Text = rm.GetString("ValueLabel"); this.FormatLabel.Text = rm.GetString("FormatLabel"); this.ResultLabel.Text = rm.GetString("ResultLabel"); this.CulturesLabel.Text = rm.GetString("CultureLabel"); this.NumberBox.Text = rm.GetString("NumberBoxText"); this.DateBox.Text = rm.GetString("DateBoxText"); this.OKButton.Text = rm.GetString("OKButtonText"); // Populate CultureNames list box with culture names CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures); // Define a string array so that we can sort and modify the names. List <String> names = new List <String>(); int currentIndex = 0; // Index of the current culture. foreach (var culture in cultures) { names.Add(culture.Name); } names.Sort(); // Change the name of the invariant culture so it is human readable. names[0] = rm.GetString("InvariantCultureName"); // Add the culture names to the list box. this.CultureNames.Items.AddRange(names.ToArray()); // Make the current culture the selected culture. for (int ctr = 0; ctr < names.Count; ctr++) { if (names[ctr] == CultureInfo.CurrentCulture.Name) { currentIndex = ctr; break; } } this.CultureNames.SelectedIndex = currentIndex; // Get decimal separator. decimalSeparator = NumberFormatInfo.CurrentInfo.NumberDecimalSeparator; // Get am, pm designators. amDesignator = DateTimeFormatInfo.CurrentInfo.AMDesignator; if (amDesignator.Length >= 1) { aDesignator = amDesignator.Substring(0, 1); } else { aDesignator = String.Empty; } pmDesignator = DateTimeFormatInfo.CurrentInfo.PMDesignator; if (pmDesignator.Length >= 1) { pDesignator = pmDesignator.Substring(0, 1); } else { pDesignator = String.Empty; } // For regex pattern for date and time components. pattern = @"^\s*\S+\s+\S+\s+\S+(\s+\S+)?(?<!" + amDesignator + "|" + aDesignator + "|" + pmDesignator + "|" + pDesignator + @")\s*$"; // Select NumberBox for numeric string and populate combo box. this.NumberBox.Checked = true; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the cdatraode editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.TabContainer = new System.Windows.Forms.TabControl(); this.ModsTab = new System.Windows.Forms.TabPage(); this.dataGridMods = new LoadOrderTool.UI.ModDataGrid(); this.ModActionPanel = new System.Windows.Forms.FlowLayoutPanel(); this.IncludeAllMods = new System.Windows.Forms.Button(); this.ExcludeAllMods = new System.Windows.Forms.Button(); this.EnableAllMods = new System.Windows.Forms.Button(); this.DisableAllMods = new System.Windows.Forms.Button(); this.tableLayoutPanelModFilters = new System.Windows.Forms.TableLayoutPanel(); this.ComboBoxIncluded = new System.Windows.Forms.ComboBox(); this.ComboBoxEnabled = new System.Windows.Forms.ComboBox(); this.ComboBoxWS = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.TextFilterMods = new System.Windows.Forms.TextBox(); this.AssetsTab = new System.Windows.Forms.TabPage(); this.dataGridAssets = new LoadOrderTool.UI.AssetDataGrid(); this.AssetsActionPanel = new System.Windows.Forms.FlowLayoutPanel(); this.IncludeAllAssets = new System.Windows.Forms.Button(); this.ExcludeAllAssets = new System.Windows.Forms.Button(); this.tableLayoutPanelAssetFilters = new System.Windows.Forms.TableLayoutPanel(); this.ComboBoxAssetIncluded = new System.Windows.Forms.ComboBox(); this.ComboBoxAssetWS = new System.Windows.Forms.ComboBox(); this.ComboBoxAssetTags = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.TextFilterAsset = new System.Windows.Forms.TextBox(); this.DLCTab = new System.Windows.Forms.TabPage(); this.DLCControl = new LoadOrderTool.UI.DLCControl(); this.LSMTab = new System.Windows.Forms.TabPage(); this.LSMControl = new LoadOrderTool.UI.LSMControl(); this.LaunchTab = new System.Windows.Forms.TabPage(); this.launchControl = new LoadOrderTool.UI.LaunchControl(); this.menuStrip = new LoadOrderTool.UI.LoadOrderWindowMenuStrip(); this.statusStrip = new System.Windows.Forms.StatusStrip(); ModProgressBar = new ProgressBar(); AssetProgressBar = new ProgressBar(); this.Icon = ResourceUtil.GetIcon("LoadOrder.ico"); this.TabContainer.SuspendLayout(); this.ModsTab.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridMods)).BeginInit(); this.ModActionPanel.SuspendLayout(); this.tableLayoutPanelModFilters.SuspendLayout(); this.AssetsTab.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridAssets)).BeginInit(); this.AssetsActionPanel.SuspendLayout(); this.tableLayoutPanelAssetFilters.SuspendLayout(); DLCTab.SuspendLayout(); LSMTab.SuspendLayout(); this.LaunchTab.SuspendLayout(); this.SuspendLayout(); ModProgressBar.SuspendLayout(); AssetProgressBar.SuspendLayout(); // // TabContainer // this.TabContainer.Controls.Add(this.ModsTab); this.TabContainer.Controls.Add(this.AssetsTab); this.TabContainer.Controls.Add(this.DLCTab); this.TabContainer.Controls.Add(this.LSMTab); this.TabContainer.Controls.Add(this.LaunchTab); this.TabContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.TabContainer.Location = new System.Drawing.Point(0, 24); this.TabContainer.Name = "TabContainer"; this.TabContainer.SelectedIndex = 0; this.TabContainer.Size = new System.Drawing.Size(956, 527); this.TabContainer.TabIndex = 0; // // ModsTab // this.ModsTab.BackColor = System.Drawing.SystemColors.Control; this.ModsTab.Controls.Add(ModProgressBar); this.ModsTab.Controls.Add(this.dataGridMods); this.ModsTab.Controls.Add(this.ModActionPanel); this.ModsTab.Controls.Add(this.tableLayoutPanelModFilters); this.ModsTab.Location = new System.Drawing.Point(4, 24); this.ModsTab.Name = "ModsTab"; this.ModsTab.Padding = new System.Windows.Forms.Padding(3); this.ModsTab.Size = new System.Drawing.Size(948, 499); this.ModsTab.TabIndex = 0; this.ModsTab.Text = "Mods"; // // dataGridMods // this.dataGridMods.AllowUserToAddRows = false; this.dataGridMods.AllowUserToDeleteRows = false; this.dataGridMods.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.Beige; this.dataGridMods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dataGridMods.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells; this.dataGridMods.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText; this.dataGridMods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridMods.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridMods.Location = new System.Drawing.Point(3, 32); this.dataGridMods.Name = "dataGridMods"; this.dataGridMods.RowHeadersVisible = false; this.dataGridMods.Size = new System.Drawing.Size(863, 464); this.dataGridMods.TabIndex = 1; // // ModActionPanel // this.ModActionPanel.AutoSize = true; this.ModActionPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ModActionPanel.Controls.Add(this.IncludeAllMods); this.ModActionPanel.Controls.Add(this.ExcludeAllMods); this.ModActionPanel.Controls.Add(this.EnableAllMods); this.ModActionPanel.Controls.Add(this.DisableAllMods); this.ModActionPanel.Dock = System.Windows.Forms.DockStyle.Right; this.ModActionPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.ModActionPanel.Location = new System.Drawing.Point(866, 32); this.ModActionPanel.Name = "ModActionPanel"; this.ModActionPanel.Size = new System.Drawing.Size(79, 464); this.ModActionPanel.TabIndex = 2; // // IncludeAllMods // this.IncludeAllMods.AutoSize = true; this.IncludeAllMods.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.IncludeAllMods.Location = new System.Drawing.Point(2, 2); this.IncludeAllMods.Margin = new System.Windows.Forms.Padding(2); this.IncludeAllMods.Name = "IncludeAllMods"; this.IncludeAllMods.Size = new System.Drawing.Size(73, 25); this.IncludeAllMods.TabIndex = 7; this.IncludeAllMods.Text = "Include All"; this.IncludeAllMods.UseVisualStyleBackColor = true; // // ExcludeAllMods // this.ExcludeAllMods.AutoSize = true; this.ExcludeAllMods.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ExcludeAllMods.Location = new System.Drawing.Point(2, 31); this.ExcludeAllMods.Margin = new System.Windows.Forms.Padding(2); this.ExcludeAllMods.Name = "ExcludeAllMods"; this.ExcludeAllMods.Size = new System.Drawing.Size(75, 25); this.ExcludeAllMods.TabIndex = 3; this.ExcludeAllMods.Text = "Exclude All"; this.ExcludeAllMods.UseVisualStyleBackColor = true; // // EnableAllMods // this.EnableAllMods.AutoSize = true; this.EnableAllMods.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.EnableAllMods.Location = new System.Drawing.Point(2, 60); this.EnableAllMods.Margin = new System.Windows.Forms.Padding(2); this.EnableAllMods.Name = "EnableAllMods"; this.EnableAllMods.Size = new System.Drawing.Size(69, 25); this.EnableAllMods.TabIndex = 4; this.EnableAllMods.Text = "Enable All"; this.EnableAllMods.UseVisualStyleBackColor = true; // // DisableAllMods // this.DisableAllMods.AutoSize = true; this.DisableAllMods.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.DisableAllMods.Location = new System.Drawing.Point(2, 89); this.DisableAllMods.Margin = new System.Windows.Forms.Padding(2); this.DisableAllMods.Name = "DisableAllMods"; this.DisableAllMods.Size = new System.Drawing.Size(72, 25); this.DisableAllMods.TabIndex = 6; this.DisableAllMods.Text = "Disable All"; this.DisableAllMods.UseVisualStyleBackColor = true; // // mod progress bar // ModProgressBar.Name = "modProgressBar"; ModProgressBar.Dock = System.Windows.Forms.DockStyle.Bottom; // // tableLayoutPanelModFilters // this.tableLayoutPanelModFilters.AutoSize = true; this.tableLayoutPanelModFilters.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanelModFilters.ColumnCount = 5; this.tableLayoutPanelModFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelModFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelModFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelModFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelModFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelModFilters.Controls.Add(this.ComboBoxIncluded); this.tableLayoutPanelModFilters.Controls.Add(this.ComboBoxEnabled); this.tableLayoutPanelModFilters.Controls.Add(this.ComboBoxWS); this.tableLayoutPanelModFilters.Controls.Add(this.label1); this.tableLayoutPanelModFilters.Controls.Add(this.TextFilterMods); this.tableLayoutPanelModFilters.Dock = System.Windows.Forms.DockStyle.Top; this.tableLayoutPanelModFilters.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.AddColumns; this.tableLayoutPanelModFilters.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanelModFilters.Name = "tableLayoutPanelModFilters"; this.tableLayoutPanelModFilters.RowCount = 1; this.tableLayoutPanelModFilters.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanelModFilters.Size = new System.Drawing.Size(942, 29); this.tableLayoutPanelModFilters.TabIndex = 0; // // ComboBoxIncluded // this.ComboBoxIncluded.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ComboBoxIncluded.FormattingEnabled = true; this.ComboBoxIncluded.Location = new System.Drawing.Point(3, 3); this.ComboBoxIncluded.Name = "ComboBoxIncluded"; this.ComboBoxIncluded.Size = new System.Drawing.Size(150, 23); this.ComboBoxIncluded.TabIndex = 0; // // ComboBoxEnabled // this.ComboBoxEnabled.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ComboBoxEnabled.FormattingEnabled = true; this.ComboBoxEnabled.Location = new System.Drawing.Point(159, 3); this.ComboBoxEnabled.Name = "ComboBoxEnabled"; this.ComboBoxEnabled.Size = new System.Drawing.Size(150, 23); this.ComboBoxEnabled.TabIndex = 1; // // ComboBoxWS // this.ComboBoxWS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ComboBoxWS.FormattingEnabled = true; this.ComboBoxWS.Location = new System.Drawing.Point(315, 3); this.ComboBoxWS.Name = "ComboBoxWS"; this.ComboBoxWS.Size = new System.Drawing.Size(150, 23); this.ComboBoxWS.TabIndex = 2; // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(471, 7); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 15); this.label1.TabIndex = 3; this.label1.Text = "Filter:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // TextFilterMods // this.TextFilterMods.Dock = System.Windows.Forms.DockStyle.Fill; this.TextFilterMods.Location = new System.Drawing.Point(513, 3); this.TextFilterMods.Name = "TextFilterMods"; this.TextFilterMods.Size = new System.Drawing.Size(426, 23); this.TextFilterMods.TabIndex = 4; // // AssetsTab // this.AssetsTab.BackColor = System.Drawing.SystemColors.Control; AssetsTab.Controls.Add(AssetProgressBar); this.AssetsTab.Controls.Add(this.dataGridAssets); this.AssetsTab.Controls.Add(this.AssetsActionPanel); this.AssetsTab.Controls.Add(this.tableLayoutPanelAssetFilters); this.AssetsTab.Location = new System.Drawing.Point(4, 24); this.AssetsTab.Name = "AssetsTab"; this.AssetsTab.Padding = new System.Windows.Forms.Padding(3); this.AssetsTab.Size = new System.Drawing.Size(948, 499); this.AssetsTab.TabIndex = 1; this.AssetsTab.Text = "Assets"; // // dataGridAssets // this.dataGridAssets.AllowUserToAddRows = false; this.dataGridAssets.AllowUserToDeleteRows = false; this.dataGridAssets.AllowUserToOrderColumns = true; this.dataGridAssets.AllowUserToResizeRows = false; dataGridViewCellStyle2.BackColor = System.Drawing.Color.Beige; this.dataGridAssets.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2; this.dataGridAssets.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells; this.dataGridAssets.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText; this.dataGridAssets.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridAssets.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridAssets.Location = new System.Drawing.Point(3, 32); this.dataGridAssets.Name = "dataGridAssets"; this.dataGridAssets.RowHeadersVisible = false; this.dataGridAssets.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.dataGridAssets.Size = new System.Drawing.Size(863, 464); this.dataGridAssets.TabIndex = 0; this.dataGridAssets.VirtualMode = true; // // asset progress bar // AssetProgressBar.Name = "AssetProgressBar"; AssetProgressBar.Dock = System.Windows.Forms.DockStyle.Bottom; // // AssetsActionPanel // this.AssetsActionPanel.AutoSize = true; this.AssetsActionPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.AssetsActionPanel.Controls.Add(this.IncludeAllAssets); this.AssetsActionPanel.Controls.Add(this.ExcludeAllAssets); this.AssetsActionPanel.Dock = System.Windows.Forms.DockStyle.Right; this.AssetsActionPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this.AssetsActionPanel.Location = new System.Drawing.Point(866, 32); this.AssetsActionPanel.Name = "AssetsActionPanel"; this.AssetsActionPanel.Size = new System.Drawing.Size(79, 464); this.AssetsActionPanel.TabIndex = 1; // // IncludeAllAssets // this.IncludeAllAssets.AutoSize = true; this.IncludeAllAssets.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.IncludeAllAssets.Location = new System.Drawing.Point(2, 2); this.IncludeAllAssets.Margin = new System.Windows.Forms.Padding(2); this.IncludeAllAssets.Name = "IncludeAllAssets"; this.IncludeAllAssets.Size = new System.Drawing.Size(73, 25); this.IncludeAllAssets.TabIndex = 1; this.IncludeAllAssets.Text = "Include All"; this.IncludeAllAssets.UseVisualStyleBackColor = true; // // ExcludeAllAssets // this.ExcludeAllAssets.AutoSize = true; this.ExcludeAllAssets.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ExcludeAllAssets.Location = new System.Drawing.Point(2, 31); this.ExcludeAllAssets.Margin = new System.Windows.Forms.Padding(2); this.ExcludeAllAssets.Name = "ExcludeAllAssets"; this.ExcludeAllAssets.Size = new System.Drawing.Size(75, 25); this.ExcludeAllAssets.TabIndex = 0; this.ExcludeAllAssets.Text = "Exclude All"; this.ExcludeAllAssets.UseVisualStyleBackColor = true; // // tableLayoutPanelAssetFilters // this.tableLayoutPanelAssetFilters.AutoSize = true; this.tableLayoutPanelAssetFilters.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanelAssetFilters.ColumnCount = 5; this.tableLayoutPanelAssetFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelAssetFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelAssetFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelAssetFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelAssetFilters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelAssetFilters.Controls.Add(this.ComboBoxAssetIncluded); this.tableLayoutPanelAssetFilters.Controls.Add(this.ComboBoxAssetWS); this.tableLayoutPanelAssetFilters.Controls.Add(this.ComboBoxAssetTags); this.tableLayoutPanelAssetFilters.Controls.Add(this.label2); this.tableLayoutPanelAssetFilters.Controls.Add(this.TextFilterAsset); this.tableLayoutPanelAssetFilters.Dock = System.Windows.Forms.DockStyle.Top; this.tableLayoutPanelAssetFilters.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.AddColumns; this.tableLayoutPanelAssetFilters.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanelAssetFilters.Name = "tableLayoutPanelAssetFilters"; this.tableLayoutPanelAssetFilters.RowCount = 1; this.tableLayoutPanelAssetFilters.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanelAssetFilters.Size = new System.Drawing.Size(942, 29); this.tableLayoutPanelAssetFilters.TabIndex = 0; // // ComboBoxAssetIncluded // this.ComboBoxAssetIncluded.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ComboBoxAssetIncluded.FormattingEnabled = true; this.ComboBoxAssetIncluded.Location = new System.Drawing.Point(3, 3); this.ComboBoxAssetIncluded.Name = "ComboBoxAssetIncluded"; this.ComboBoxAssetIncluded.Size = new System.Drawing.Size(150, 23); this.ComboBoxAssetIncluded.TabIndex = 0; // // ComboBoxAssetWS // this.ComboBoxAssetWS.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ComboBoxAssetWS.FormattingEnabled = true; this.ComboBoxAssetWS.Location = new System.Drawing.Point(159, 3); this.ComboBoxAssetWS.Name = "ComboBoxAssetWS"; this.ComboBoxAssetWS.Size = new System.Drawing.Size(150, 23); this.ComboBoxAssetWS.TabIndex = 1; // // ComboBoxAssetTags // this.ComboBoxAssetTags.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.ComboBoxAssetTags.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.ComboBoxAssetTags.FormattingEnabled = true; this.ComboBoxAssetTags.Location = new System.Drawing.Point(315, 3); this.ComboBoxAssetTags.Name = "ComboBoxAssetTags"; this.ComboBoxAssetTags.Size = new System.Drawing.Size(150, 23); this.ComboBoxAssetTags.TabIndex = 2; // // label2 // this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(471, 7); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(36, 15); this.label2.TabIndex = 3; this.label2.Text = "Filter:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // TextFilterAsset // this.TextFilterAsset.Dock = System.Windows.Forms.DockStyle.Fill; this.TextFilterAsset.Location = new System.Drawing.Point(513, 3); this.TextFilterAsset.Name = "TextFilterAsset"; this.TextFilterAsset.Size = new System.Drawing.Size(426, 23); this.TextFilterAsset.TabIndex = 4; // // DLCTab // this.DLCTab.BackColor = System.Drawing.Color.Transparent; this.DLCTab.Controls.Add(this.DLCControl); this.DLCTab.Location = new System.Drawing.Point(4, 24); this.DLCTab.Name = "DLCTab"; this.DLCTab.Padding = new System.Windows.Forms.Padding(3); this.DLCTab.Size = new System.Drawing.Size(948, 499); this.DLCTab.TabIndex = 2; this.DLCTab.Text = "DLC"; // // DLCControl // this.DLCControl.Dock = System.Windows.Forms.DockStyle.Fill; this.DLCControl.Name = "DLCControl"; //this.DLCControl.AutoSize = true; // // LSMTab // this.LSMTab.BackColor = System.Drawing.Color.Transparent; this.LSMTab.Location = new System.Drawing.Point(4, 24); this.LSMTab.Name = "LSMTab"; this.LSMTab.Padding = new System.Windows.Forms.Padding(3); this.LSMTab.Size = new System.Drawing.Size(948, 499); this.LSMTab.TabIndex = 2; this.LSMTab.Text = "LSM"; this.LSMTab.Controls.Add(this.LSMControl); // // LSMControl // this.LSMControl.Dock = System.Windows.Forms.DockStyle.Fill; this.LSMControl.Location = new System.Drawing.Point(3, 3); this.LSMControl.Name = "LSMControl"; this.LSMControl.Size = new System.Drawing.Size(942, 493); this.LSMControl.TabIndex = 0; // // LaunchTab // this.LaunchTab.BackColor = System.Drawing.Color.Transparent; this.LaunchTab.Controls.Add(this.launchControl); this.LaunchTab.Location = new System.Drawing.Point(4, 24); this.LaunchTab.Name = "LaunchTab"; this.LaunchTab.Padding = new System.Windows.Forms.Padding(3); this.LaunchTab.Size = new System.Drawing.Size(948, 499); this.LaunchTab.TabIndex = 2; this.LaunchTab.Text = "Launch"; // // launchControl // this.launchControl.Dock = System.Windows.Forms.DockStyle.Fill; this.launchControl.Location = new System.Drawing.Point(3, 3); this.launchControl.Name = "launchControl"; this.launchControl.Size = new System.Drawing.Size(942, 493); this.launchControl.TabIndex = 0; // // menuStrip // this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Name = "menuStrip"; this.menuStrip.Size = new System.Drawing.Size(956, 24); this.menuStrip.TabIndex = 2; this.menuStrip.Text = "menuStrip"; // // statusStrip // this.statusStrip.Location = new System.Drawing.Point(3, 474); this.statusStrip.Name = "statusStrip"; this.statusStrip.Size = new System.Drawing.Size(863, 22); this.statusStrip.TabIndex = 3; this.statusStrip.Text = "statusStrip1"; this.statusStrip.Visible = true; //until i find some use for it. this.statusStrip.ShowItemToolTips = true; DLCNoticeLabel = new ToolStripStatusLabel { BorderSides = ToolStripStatusLabelBorderSides.Left, BorderStyle = Border3DStyle.Etched, Visible = false, Text = "Assuming DLCs are enabled in steam", }; DownloadWarningLabel = new ToolStripStatusLabel { BorderSides = ToolStripStatusLabelBorderSides.Left, BorderStyle = Border3DStyle.Etched, Visible = true, ForeColor = Color.Red, Font = new Font(SystemFonts.DefaultFont, FontStyle.Bold), Text = "There are broken downloads!", }; ModCountLabel = new ToolStripStatusLabel { BorderSides = ToolStripStatusLabelBorderSides.Left, BorderStyle = Border3DStyle.Etched, Visible = false, }; AssetCountLabel = new ToolStripStatusLabel { BorderSides = ToolStripStatusLabelBorderSides.Left, BorderStyle = Border3DStyle.Etched, Visible = false, }; LastProfileLabel = new ToolStripStatusLabel { BorderSides = ToolStripStatusLabelBorderSides.Left, BorderStyle = Border3DStyle.Etched, Visible = true, }; statusStrip.Items.AddRange(new[] { DownloadWarningLabel, DLCNoticeLabel, ModCountLabel, AssetCountLabel, LastProfileLabel }); // // LoadOrderWindow // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(956, 551); this.Controls.Add(this.TabContainer); this.Controls.Add(this.statusStrip); this.Controls.Add(this.menuStrip); this.MainMenuStrip = this.menuStrip; this.MinimumSize = new System.Drawing.Size(524, 299); this.Name = "LoadOrderWindow"; this.Text = "Load Order Tool"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.LoadOrderWindow_FormClosing); this.TabContainer.ResumeLayout(false); this.ModsTab.ResumeLayout(false); this.ModsTab.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridMods)).EndInit(); this.ModActionPanel.ResumeLayout(false); this.ModActionPanel.PerformLayout(); this.tableLayoutPanelModFilters.ResumeLayout(false); this.tableLayoutPanelModFilters.PerformLayout(); this.AssetsTab.ResumeLayout(false); this.AssetsTab.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridAssets)).EndInit(); this.AssetsActionPanel.ResumeLayout(false); this.AssetsActionPanel.PerformLayout(); this.tableLayoutPanelAssetFilters.ResumeLayout(false); this.tableLayoutPanelAssetFilters.PerformLayout(); this.DLCTab.ResumeLayout(false); this.DLCTab.PerformLayout(); this.LSMTab.ResumeLayout(); this.LSMTab.PerformLayout(); this.LaunchTab.ResumeLayout(false); this.LaunchTab.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public StatusLabel(StatusStrip statusBar, ToolStripStatusLabel targetLabel) { this.statusBar = statusBar; this.targetLabel = targetLabel; }
public abstract void Initialize(MapPanel mapPanel, MapLayerFlag activeLayers, ToolStripStatusLabel toolStatusLabel, ToolTip mouseToolTip, IGamePlugin plugin, UndoRedoList <UndoRedoEventArgs> undoRedoList);
public static void SetStatusWarning(ToolStripStatusLabel label) { SetStatusLabel(label, "Warning", Color.Purple); }
public static List<byte[]> extractFileFromImage(Bitmap sourceImage, string password = "", ToolStripStatusLabel toolStripStatusLabel = null, bool stealthy = true, Stealthiness stealthValue = Stealthiness.Maximum) { try { // Extract jump value from first 3 pixels StringBuilder sb = new StringBuilder(); for (int x = 0; x < 9; x += 3) { Color pixel = sourceImage.GetPixel(x, 0); string r = Convert.ToString(pixel.R, 2).PadLeft(8, '0').Substring(7, 1); string g = Convert.ToString(pixel.G, 2).PadLeft(8, '0').Substring(7, 1); string b = Convert.ToString(pixel.B, 2).PadLeft(8, '0').Substring(7, 1); sb.Append(r + g + b); } int jump = Convert.ToInt32(sb.ToString(0, 9), 2); int imagewidth = sourceImage.Width - 1; int imageheight = sourceImage.Height - 1; StringBuilder sbfinal = new StringBuilder(); int pixelPos = 0; // Extract ALL lsb's from image using jump value for (int y = 1; y < imageheight - 1; y++) { for (int x = 1; x < imagewidth - 1; x++) { if (IsValidPixel(sourceImage, x, y, stealthy, stealthValue)) { if (pixelPos % jump == 0) { Color pixel = sourceImage.GetPixel(x, y); string r = Convert.ToString(pixel.R, 2).PadLeft(8, '0').Substring(7, 1); string g = Convert.ToString(pixel.G, 2).PadLeft(8, '0').Substring(7, 1); string b = Convert.ToString(pixel.B, 2).PadLeft(8, '0').Substring(7, 1); sbfinal.Append(r + g + b); } pixelPos++; } } } // Get filename length (in bytes) value from first 8 bits int filenamelength = Convert.ToInt32(sbfinal.ToString(0, 8), 2); // Get file data length (in bytes) value from next 24 bits int filesize = Convert.ToInt32(sbfinal.ToString(8, 24), 2); // Get filename byte[] filenamebytes = GetBytesFromBinaryString(sbfinal.ToString(32, filenamelength * 8)); // Decrypt filename (if necessary) if (!String.IsNullOrEmpty(password)) filenamebytes = decryptData(filenamebytes, password); // Check for valid filename if (!IsASCII(filenamebytes)) throw new SteganoException("Bad Decrypt"); // Extract remaining file data byte[] filebytes = GetBytesFromBinaryString(sbfinal.ToString(32 + (filenamelength * 8), filesize * 8)); // Decrypt file data (if necessary) if (!String.IsNullOrEmpty(password)) filebytes = decryptData(filebytes, password); List<byte[]> data = new List<byte[]>(); data.Add(filenamebytes); data.Add(filebytes); return data; } catch (SteganoException ex) { toolStripStatusLabel.Text = "Bad Decrypt. Wrong Password???"; throw new Exception(ex.Message); } catch { toolStripStatusLabel.Text = "Bad Decrypt. Wrong Password???"; throw new SteganoException("Bad Decrypt"); } }
private static void writeOut(ToolStripStatusLabel toolStripStatusLabel, string text) { if (toolStripStatusLabel != null) { toolStripStatusLabel.Text = text; Thread.Sleep(50); Application.DoEvents(); } }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); System.Windows.Forms.Label label42; this.tabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.showdebug = new System.Windows.Forms.CheckBox(); this.Compare_Settings = new System.Windows.Forms.Button(); this.RxD = new System.Windows.Forms.GroupBox(); this.static48 = new System.Windows.Forms.Label(); this.bytecounter = new System.Windows.Forms.Label(); this.textRxD = new System.Windows.Forms.TextBox(); this.clearRxD = new System.Windows.Forms.Button(); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.btnRefresh = new System.Windows.Forms.Button(); this.readsettings = new System.Windows.Forms.Button(); this.writesettings = new System.Windows.Forms.Button(); this.labelok = new System.Windows.Forms.Label(); this.writeall = new System.Windows.Forms.Button(); this.resetmC = new System.Windows.Forms.Button(); this.comport = new System.Windows.Forms.ComboBox(); this.connect = new System.Windows.Forms.Button(); this.searchlabel = new System.Windows.Forms.Label(); this.progressBar2 = new System.Windows.Forms.ProgressBar(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox14 = new System.Windows.Forms.GroupBox(); this.label34 = new System.Windows.Forms.Label(); this.label33 = new System.Windows.Forms.Label(); this.label32 = new System.Windows.Forms.Label(); this.label31 = new System.Windows.Forms.Label(); this.label30 = new System.Windows.Forms.Label(); this.label29 = new System.Windows.Forms.Label(); this.label28 = new System.Windows.Forms.Label(); this.label27 = new System.Windows.Forms.Label(); this.tbch8 = new XComponent.SliderBar.MACTrackBar(); this.tbch7 = new XComponent.SliderBar.MACTrackBar(); this.tbch6 = new XComponent.SliderBar.MACTrackBar(); this.tbch5 = new XComponent.SliderBar.MACTrackBar(); this.tbch4 = new XComponent.SliderBar.MACTrackBar(); this.tbch3 = new XComponent.SliderBar.MACTrackBar(); this.tbch2 = new XComponent.SliderBar.MACTrackBar(); this.tbch1 = new XComponent.SliderBar.MACTrackBar(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.switchbox = new System.Windows.Forms.ComboBox(); this.deactivatemotors = new System.Windows.Forms.CheckBox(); this.static67 = new System.Windows.Forms.Label(); this.static68 = new System.Windows.Forms.Label(); this.static66 = new System.Windows.Forms.Label(); this.static65 = new System.Windows.Forms.Label(); this.static64 = new System.Windows.Forms.Label(); this.static63 = new System.Windows.Forms.Label(); this.yawbox = new System.Windows.Forms.ComboBox(); this.rollbox = new System.Windows.Forms.ComboBox(); this.Nickbox = new System.Windows.Forms.ComboBox(); this.throttlebox = new System.Windows.Forms.ComboBox(); this.textBoxu = new System.Windows.Forms.TextBox(); this.labelu = new System.Windows.Forms.Label(); this.static40 = new System.Windows.Forms.Label(); this.textBoxS = new System.Windows.Forms.TextBox(); this.textBoxR = new System.Windows.Forms.TextBox(); this.textBoxQ = new System.Windows.Forms.TextBox(); this.checkBoxT = new System.Windows.Forms.CheckBox(); this.labels = new System.Windows.Forms.Label(); this.labelr = new System.Windows.Forms.Label(); this.labelq = new System.Windows.Forms.Label(); this.static15 = new System.Windows.Forms.Label(); this.static13 = new System.Windows.Forms.Label(); this.static14 = new System.Windows.Forms.Label(); this.static12 = new System.Windows.Forms.Label(); this.static11 = new System.Windows.Forms.Label(); this.checkBoxT2 = new System.Windows.Forms.CheckBox(); this.static9 = new System.Windows.Forms.Label(); this.static10 = new System.Windows.Forms.Label(); this.tabPage3 = new System.Windows.Forms.TabPage(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.textBoxx = new System.Windows.Forms.TextBox(); this.textBoxw = new System.Windows.Forms.TextBox(); this.labelx = new System.Windows.Forms.Label(); this.labelw = new System.Windows.Forms.Label(); this.static46 = new System.Windows.Forms.Label(); this.static45 = new System.Windows.Forms.Label(); this.textBoxp = new System.Windows.Forms.TextBox(); this.textBoxo = new System.Windows.Forms.TextBox(); this.textBoxn = new System.Windows.Forms.TextBox(); this.labelp = new System.Windows.Forms.Label(); this.labelo = new System.Windows.Forms.Label(); this.labeln = new System.Windows.Forms.Label(); this.static39 = new System.Windows.Forms.Label(); this.static38 = new System.Windows.Forms.Label(); this.static37 = new System.Windows.Forms.Label(); this.static36 = new System.Windows.Forms.Label(); this.static35 = new System.Windows.Forms.Label(); this.static34 = new System.Windows.Forms.Label(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.trackBar15 = new System.Windows.Forms.TrackBar(); this.checkBox3 = new System.Windows.Forms.CheckBox(); this.label14 = new System.Windows.Forms.Label(); this.label25 = new System.Windows.Forms.Label(); this.label26 = new System.Windows.Forms.Label(); this.textBoxm = new System.Windows.Forms.TextBox(); this.textBoxl = new System.Windows.Forms.TextBox(); this.labelm = new System.Windows.Forms.Label(); this.labell = new System.Windows.Forms.Label(); this.static33 = new System.Windows.Forms.Label(); this.static32 = new System.Windows.Forms.Label(); this.static29 = new System.Windows.Forms.Label(); this.static31 = new System.Windows.Forms.Label(); this.static30 = new System.Windows.Forms.Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.checkBoxf2 = new System.Windows.Forms.CheckBox(); this.checkBoxf = new System.Windows.Forms.CheckBox(); this.checkBoxe2 = new System.Windows.Forms.CheckBox(); this.checkBoxe = new System.Windows.Forms.CheckBox(); this.static28 = new System.Windows.Forms.Label(); this.static27 = new System.Windows.Forms.Label(); this.checkBoxD2 = new System.Windows.Forms.CheckBox(); this.checkBoxB2 = new System.Windows.Forms.CheckBox(); this.checkBoxC2 = new System.Windows.Forms.CheckBox(); this.checkBoxD = new System.Windows.Forms.CheckBox(); this.checkBoxC = new System.Windows.Forms.CheckBox(); this.checkBoxB = new System.Windows.Forms.CheckBox(); this.static26 = new System.Windows.Forms.Label(); this.static25 = new System.Windows.Forms.Label(); this.static24 = new System.Windows.Forms.Label(); this.static22 = new System.Windows.Forms.Label(); this.static23 = new System.Windows.Forms.Label(); this.static21 = new System.Windows.Forms.Label(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.trackBar14 = new System.Windows.Forms.TrackBar(); this.label24 = new System.Windows.Forms.Label(); this.textBoxy = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); this.textBoxH = new System.Windows.Forms.TextBox(); this.textBoxG = new System.Windows.Forms.TextBox(); this.labely = new System.Windows.Forms.Label(); this.labelH = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.labelG = new System.Windows.Forms.Label(); this.static17 = new System.Windows.Forms.Label(); this.label22 = new System.Windows.Forms.Label(); this.static16 = new System.Windows.Forms.Label(); this.static18 = new System.Windows.Forms.Label(); this.static20 = new System.Windows.Forms.Label(); this.static19 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.label21 = new System.Windows.Forms.Label(); this.label20 = new System.Windows.Forms.Label(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.trackBar13 = new System.Windows.Forms.TrackBar(); this.label18 = new System.Windows.Forms.Label(); this.static6 = new System.Windows.Forms.Label(); this.static5 = new System.Windows.Forms.Label(); this.static4 = new System.Windows.Forms.Label(); this.textBoxi = new System.Windows.Forms.TextBox(); this.label19 = new System.Windows.Forms.Label(); this.static3 = new System.Windows.Forms.Label(); this.labeli = new System.Windows.Forms.Label(); this.static7 = new System.Windows.Forms.Label(); this.static2 = new System.Windows.Forms.Label(); this.labelj = new System.Windows.Forms.Label(); this.textBoxz = new System.Windows.Forms.TextBox(); this.textBoxk = new System.Windows.Forms.TextBox(); this.labelz = new System.Windows.Forms.Label(); this.labelk = new System.Windows.Forms.Label(); this.textBoxj = new System.Windows.Forms.TextBox(); this.tabPage5 = new System.Windows.Forms.TabPage(); this.groupBox15 = new System.Windows.Forms.GroupBox(); this.label41 = new System.Windows.Forms.Label(); this.label40 = new System.Windows.Forms.Label(); this.labelled2 = new System.Windows.Forms.Label(); this.labelled1 = new System.Windows.Forms.Label(); this.label37 = new System.Windows.Forms.Label(); this.label38 = new System.Windows.Forms.Label(); this.label39 = new System.Windows.Forms.Label(); this.label36 = new System.Windows.Forms.Label(); this.label35 = new System.Windows.Forms.Label(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.errorlabel = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); this.static47 = new System.Windows.Forms.Label(); this.groupBox7 = new System.Windows.Forms.GroupBox(); this.voltagelevel = new System.Windows.Forms.Label(); this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.textBoxv = new System.Windows.Forms.TextBox(); this.labelv = new System.Windows.Forms.Label(); this.static44 = new System.Windows.Forms.Label(); this.static41 = new System.Windows.Forms.Label(); this.static43 = new System.Windows.Forms.Label(); this.static42 = new System.Windows.Forms.Label(); this.tabPage4 = new System.Windows.Forms.TabPage(); this.static99 = new System.Windows.Forms.Label(); this.Battery = new System.Windows.Forms.GroupBox(); this.labelvolts = new System.Windows.Forms.Label(); this.pbVoltage = new System.Windows.Forms.ProgressBar(); this.groupBox12 = new System.Windows.Forms.GroupBox(); this.TrackBar7 = new XComponent.SliderBar.MACTrackBar(); this.static58 = new System.Windows.Forms.Label(); this.static55 = new System.Windows.Forms.Label(); this.static61 = new System.Windows.Forms.Label(); this.groupBox11 = new System.Windows.Forms.GroupBox(); this.TrackBar12 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar11 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar10 = new XComponent.SliderBar.MACTrackBar(); this.panel2 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel(); this.panelRollCenter = new System.Windows.Forms.Panel(); this.label15 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.TrackBar9 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar8 = new XComponent.SliderBar.MACTrackBar(); this.groupBox10 = new System.Windows.Forms.GroupBox(); this.TrackBar6 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar5 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar4 = new XComponent.SliderBar.MACTrackBar(); this.static54 = new System.Windows.Forms.Label(); this.static53 = new System.Windows.Forms.Label(); this.staic59 = new System.Windows.Forms.Label(); this.static60 = new System.Windows.Forms.Label(); this.static52 = new System.Windows.Forms.Label(); this.groupBox9 = new System.Windows.Forms.GroupBox(); this.TrackBar3 = new XComponent.SliderBar.MACTrackBar(); this.TrackBar2 = new XComponent.SliderBar.MACTrackBar(); this.static51 = new System.Windows.Forms.Label(); this.TrackBar1 = new XComponent.SliderBar.MACTrackBar(); this.static49 = new System.Windows.Forms.Label(); this.static57 = new System.Windows.Forms.Label(); this.static50 = new System.Windows.Forms.Label(); this.static56 = new System.Windows.Forms.Label(); this.tabPage6 = new System.Windows.Forms.TabPage(); this.groupBox13 = new System.Windows.Forms.GroupBox(); this.label13 = new System.Windows.Forms.Label(); this.flash = new System.Windows.Forms.Button(); this.progressBar4 = new System.Windows.Forms.ProgressBar(); this.showavrout = new System.Windows.Forms.CheckBox(); this.avrdudeout = new System.Windows.Forms.TextBox(); this.serialPort = new System.IO.Ports.SerialPort(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.timersens = new System.Windows.Forms.Timer(this.components); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); this.pingshrediquette = new System.Windows.Forms.Timer(this.components); this.label11 = new System.Windows.Forms.Label(); this.startupdelay = new System.Windows.Forms.Timer(this.components); this.linkLabel2 = new System.Windows.Forms.LinkLabel(); this.label17 = new System.Windows.Forms.Label(); this.lbch1 = new System.Windows.Forms.Label(); this.lbch2 = new System.Windows.Forms.Label(); this.lbch3 = new System.Windows.Forms.Label(); this.lbch4 = new System.Windows.Forms.Label(); this.lbch5 = new System.Windows.Forms.Label(); this.lbch6 = new System.Windows.Forms.Label(); this.lbch7 = new System.Windows.Forms.Label(); this.lbch8 = new System.Windows.Forms.Label(); this.emergmask = new TriGUI_v11.BitMask(); this.led2mask = new TriGUI_v11.BitMask(); this.led1mask = new TriGUI_v11.BitMask(); label42 = new System.Windows.Forms.Label(); this.tabControl.SuspendLayout(); this.tabPage1.SuspendLayout(); this.RxD.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.tabPage2.SuspendLayout(); this.groupBox14.SuspendLayout(); this.groupBox2.SuspendLayout(); this.tabPage3.SuspendLayout(); this.groupBox6.SuspendLayout(); this.groupBox5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar15)).BeginInit(); this.groupBox4.SuspendLayout(); this.groupBox3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar14)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar13)).BeginInit(); this.tabPage5.SuspendLayout(); this.groupBox15.SuspendLayout(); this.groupBox8.SuspendLayout(); this.groupBox7.SuspendLayout(); this.tabPage4.SuspendLayout(); this.Battery.SuspendLayout(); this.groupBox12.SuspendLayout(); this.groupBox11.SuspendLayout(); this.groupBox10.SuspendLayout(); this.groupBox9.SuspendLayout(); this.tabPage6.SuspendLayout(); this.groupBox13.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // tabControl // this.tabControl.Controls.Add(this.tabPage1); this.tabControl.Controls.Add(this.tabPage2); this.tabControl.Controls.Add(this.tabPage3); this.tabControl.Controls.Add(this.tabPage5); this.tabControl.Controls.Add(this.tabPage4); this.tabControl.Controls.Add(this.tabPage6); this.tabControl.Location = new System.Drawing.Point(12, 60); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; this.tabControl.Size = new System.Drawing.Size(657, 392); this.tabControl.TabIndex = 0; this.tabControl.SelectedIndexChanged += new System.EventHandler(this.TabControl1SelectedIndexChanged); // // tabPage1 // this.tabPage1.Controls.Add(this.showdebug); this.tabPage1.Controls.Add(this.Compare_Settings); this.tabPage1.Controls.Add(this.RxD); this.tabPage1.Controls.Add(this.linkLabel1); this.tabPage1.Controls.Add(this.btnRefresh); this.tabPage1.Controls.Add(this.readsettings); this.tabPage1.Controls.Add(this.writesettings); this.tabPage1.Controls.Add(this.labelok); this.tabPage1.Controls.Add(this.writeall); this.tabPage1.Controls.Add(this.resetmC); this.tabPage1.Controls.Add(this.comport); this.tabPage1.Controls.Add(this.connect); this.tabPage1.Controls.Add(this.searchlabel); this.tabPage1.Controls.Add(this.progressBar2); this.tabPage1.Controls.Add(this.pictureBox2); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(649, 366); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Connection"; this.tabPage1.UseVisualStyleBackColor = true; // // showdebug // this.showdebug.Location = new System.Drawing.Point(21, 307); this.showdebug.Name = "showdebug"; this.showdebug.Size = new System.Drawing.Size(104, 24); this.showdebug.TabIndex = 11; this.showdebug.Text = "Show terminal"; this.toolTip1.SetToolTip(this.showdebug, "Shows a terminal windows showing which things are transferred from the tricopter"); this.showdebug.UseVisualStyleBackColor = true; this.showdebug.CheckedChanged += new System.EventHandler(this.ShowdebugCheckedChanged); // // Compare_Settings // this.Compare_Settings.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Compare_Settings.Location = new System.Drawing.Point(21, 278); this.Compare_Settings.Name = "Compare_Settings"; this.Compare_Settings.Size = new System.Drawing.Size(136, 23); this.Compare_Settings.TabIndex = 21; this.Compare_Settings.Text = "Compare settings (*.shr)"; this.Compare_Settings.UseVisualStyleBackColor = true; this.Compare_Settings.Click += new System.EventHandler(this.Button2Click); // // RxD // this.RxD.Controls.Add(this.static48); this.RxD.Controls.Add(this.bytecounter); this.RxD.Controls.Add(this.textRxD); this.RxD.Controls.Add(this.clearRxD); this.RxD.Location = new System.Drawing.Point(338, 14); this.RxD.Name = "RxD"; this.RxD.Size = new System.Drawing.Size(289, 297); this.RxD.TabIndex = 10; this.RxD.TabStop = false; this.RxD.Text = "RxD"; this.RxD.Visible = false; // // static48 // this.static48.Location = new System.Drawing.Point(39, 273); this.static48.Name = "static48"; this.static48.Size = new System.Drawing.Size(70, 18); this.static48.TabIndex = 16; this.static48.Text = "Dataset size:"; // // bytecounter // this.bytecounter.Location = new System.Drawing.Point(114, 273); this.bytecounter.Name = "bytecounter"; this.bytecounter.Size = new System.Drawing.Size(83, 18); this.bytecounter.TabIndex = 15; this.bytecounter.Text = "---"; // // textRxD // this.textRxD.Location = new System.Drawing.Point(6, 19); this.textRxD.Multiline = true; this.textRxD.Name = "textRxD"; this.textRxD.ReadOnly = true; this.textRxD.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textRxD.Size = new System.Drawing.Size(285, 224); this.textRxD.TabIndex = 3; // // clearRxD // this.clearRxD.Location = new System.Drawing.Point(207, 268); this.clearRxD.Name = "clearRxD"; this.clearRxD.Size = new System.Drawing.Size(75, 23); this.clearRxD.TabIndex = 5; this.clearRxD.Text = "clear"; this.toolTip1.SetToolTip(this.clearRxD, "Clears the content of the terminal window"); this.clearRxD.UseVisualStyleBackColor = true; this.clearRxD.Click += new System.EventHandler(this.ClearRxDClick); // // linkLabel1 // this.linkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.linkLabel1.Location = new System.Drawing.Point(366, 285); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(211, 23); this.linkLabel1.TabIndex = 20; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Watch the tutorial video!"; this.toolTip1.SetToolTip(this.linkLabel1, "http://www.villalachouette.de/william/krims/tricopter/TriGUI_tut.wmv"); this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1LinkClicked); // // btnRefresh // this.btnRefresh.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRefresh.Location = new System.Drawing.Point(163, 62); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(58, 21); this.btnRefresh.TabIndex = 19; this.btnRefresh.Text = "Refresh"; this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.Click += new System.EventHandler(this.Button1Click); // // readsettings // this.readsettings.Enabled = false; this.readsettings.Location = new System.Drawing.Point(21, 229); this.readsettings.Name = "readsettings"; this.readsettings.Size = new System.Drawing.Size(136, 23); this.readsettings.TabIndex = 16; this.readsettings.Text = "Load file and write to µC"; this.toolTip1.SetToolTip(this.readsettings, "Loads all parameters from a text file and writes them to the the µC"); this.readsettings.UseVisualStyleBackColor = true; this.readsettings.Click += new System.EventHandler(this.ReadsettingsClick); // // writesettings // this.writesettings.Enabled = false; this.writesettings.Location = new System.Drawing.Point(21, 200); this.writesettings.Name = "writesettings"; this.writesettings.Size = new System.Drawing.Size(136, 23); this.writesettings.TabIndex = 15; this.writesettings.Text = "Save all parameters to file"; this.toolTip1.SetToolTip(this.writesettings, "Saves the all parameters from the GUI to a text file"); this.writesettings.UseVisualStyleBackColor = true; this.writesettings.Click += new System.EventHandler(this.writesettingsClick); // // labelok // this.labelok.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelok.ForeColor = System.Drawing.Color.Lime; this.labelok.Location = new System.Drawing.Point(567, 314); this.labelok.Name = "labelok"; this.labelok.Size = new System.Drawing.Size(76, 23); this.labelok.TabIndex = 13; this.labelok.Text = "OK!"; this.labelok.TextAlign = System.Drawing.ContentAlignment.BottomRight; this.labelok.Visible = false; // // writeall // this.writeall.Enabled = false; this.writeall.Location = new System.Drawing.Point(21, 131); this.writeall.Name = "writeall"; this.writeall.Size = new System.Drawing.Size(136, 50); this.writeall.TabIndex = 6; this.writeall.Text = "Write all parameters to µC"; this.toolTip1.SetToolTip(this.writeall, "Writes all the parameters of all tabs and resets the tricopter. The new parameter" + "s are subsequently loaded again from the copter"); this.writeall.UseVisualStyleBackColor = true; this.writeall.Click += new System.EventHandler(this.WriteallClick); // // resetmC // this.resetmC.Enabled = false; this.resetmC.Location = new System.Drawing.Point(21, 89); this.resetmC.Name = "resetmC"; this.resetmC.Size = new System.Drawing.Size(136, 23); this.resetmC.TabIndex = 2; this.resetmC.Text = "Disconnect"; this.toolTip1.SetToolTip(this.resetmC, "Sends reset command to the tricopter and closes the serialport"); this.resetmC.UseVisualStyleBackColor = true; this.resetmC.Click += new System.EventHandler(this.resetmCClick); // // comport // this.comport.FormattingEnabled = true; this.comport.Items.AddRange(new object[] { "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "COM10", "COM11", "COM12", "COM13", "COM14", "COM15", "COM16", "COM17", "COM18", "COM19", "COM20", "COM21", "COM22", "COM23", "COM24", "COM25", "COM26", "COM27", "COM28", "COM29", "COM30"}); this.comport.Location = new System.Drawing.Point(163, 35); this.comport.Name = "comport"; this.comport.Size = new System.Drawing.Size(58, 21); this.comport.TabIndex = 1; this.comport.Text = "COM1"; this.toolTip1.SetToolTip(this.comport, "Select the COM port here.\r\nPlease note that avrdude doesn\'t seem to support high " + "COM port numbers..."); this.comport.SelectedIndexChanged += new System.EventHandler(this.ComportSelectedIndexChanged); // // connect // this.connect.Location = new System.Drawing.Point(21, 33); this.connect.Name = "connect"; this.connect.Size = new System.Drawing.Size(136, 50); this.connect.TabIndex = 0; this.connect.Text = "Connect + read out"; this.toolTip1.SetToolTip(this.connect, "Opens a serial connection and reads the current paramters from the tricopter"); this.connect.UseVisualStyleBackColor = true; this.connect.Click += new System.EventHandler(this.ConnectClick); // // searchlabel // this.searchlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.searchlabel.ForeColor = System.Drawing.Color.Lime; this.searchlabel.Location = new System.Drawing.Point(511, 314); this.searchlabel.Name = "searchlabel"; this.searchlabel.Size = new System.Drawing.Size(132, 23); this.searchlabel.TabIndex = 17; this.searchlabel.Text = "Searching..."; this.searchlabel.TextAlign = System.Drawing.ContentAlignment.BottomRight; this.searchlabel.Visible = false; // // progressBar2 // this.progressBar2.Location = new System.Drawing.Point(6, 337); this.progressBar2.MarqueeAnimationSpeed = 10; this.progressBar2.Maximum = 27; this.progressBar2.Name = "progressBar2"; this.progressBar2.Size = new System.Drawing.Size(637, 20); this.progressBar2.Step = 1; this.progressBar2.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar2.TabIndex = 12; // // pictureBox2 // this.pictureBox2.Location = new System.Drawing.Point(327, 14); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(300, 300); this.pictureBox2.TabIndex = 14; this.pictureBox2.TabStop = false; // // tabPage2 // this.tabPage2.Controls.Add(this.groupBox14); this.tabPage2.Controls.Add(this.groupBox2); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(649, 366); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Radio settings"; this.tabPage2.UseVisualStyleBackColor = true; // // groupBox14 // this.groupBox14.Controls.Add(label42); this.groupBox14.Controls.Add(this.lbch8); this.groupBox14.Controls.Add(this.lbch7); this.groupBox14.Controls.Add(this.lbch6); this.groupBox14.Controls.Add(this.lbch5); this.groupBox14.Controls.Add(this.lbch4); this.groupBox14.Controls.Add(this.lbch3); this.groupBox14.Controls.Add(this.lbch2); this.groupBox14.Controls.Add(this.lbch1); this.groupBox14.Controls.Add(this.label34); this.groupBox14.Controls.Add(this.label33); this.groupBox14.Controls.Add(this.label32); this.groupBox14.Controls.Add(this.label31); this.groupBox14.Controls.Add(this.label30); this.groupBox14.Controls.Add(this.label29); this.groupBox14.Controls.Add(this.label28); this.groupBox14.Controls.Add(this.label27); this.groupBox14.Controls.Add(this.tbch8); this.groupBox14.Controls.Add(this.tbch7); this.groupBox14.Controls.Add(this.tbch6); this.groupBox14.Controls.Add(this.tbch5); this.groupBox14.Controls.Add(this.tbch4); this.groupBox14.Controls.Add(this.tbch3); this.groupBox14.Controls.Add(this.tbch2); this.groupBox14.Controls.Add(this.tbch1); this.groupBox14.Location = new System.Drawing.Point(407, 20); this.groupBox14.Name = "groupBox14"; this.groupBox14.Size = new System.Drawing.Size(223, 329); this.groupBox14.TabIndex = 8; this.groupBox14.TabStop = false; this.groupBox14.Text = "RX Channels"; // // label34 // this.label34.AutoSize = true; this.label34.Location = new System.Drawing.Point(191, 141); this.label34.Name = "label34"; this.label34.Size = new System.Drawing.Size(13, 13); this.label34.TabIndex = 40; this.label34.Text = "8"; // // label33 // this.label33.AutoSize = true; this.label33.Location = new System.Drawing.Point(166, 141); this.label33.Name = "label33"; this.label33.Size = new System.Drawing.Size(13, 13); this.label33.TabIndex = 39; this.label33.Text = "7"; // // label32 // this.label32.AutoSize = true; this.label32.Location = new System.Drawing.Point(141, 141); this.label32.Name = "label32"; this.label32.Size = new System.Drawing.Size(13, 13); this.label32.TabIndex = 38; this.label32.Text = "6"; // // label31 // this.label31.AutoSize = true; this.label31.Location = new System.Drawing.Point(116, 141); this.label31.Name = "label31"; this.label31.Size = new System.Drawing.Size(13, 13); this.label31.TabIndex = 37; this.label31.Text = "5"; // // label30 // this.label30.AutoSize = true; this.label30.Location = new System.Drawing.Point(91, 141); this.label30.Name = "label30"; this.label30.Size = new System.Drawing.Size(13, 13); this.label30.TabIndex = 36; this.label30.Text = "4"; // // label29 // this.label29.AutoSize = true; this.label29.Location = new System.Drawing.Point(66, 141); this.label29.Name = "label29"; this.label29.Size = new System.Drawing.Size(13, 13); this.label29.TabIndex = 35; this.label29.Text = "3"; // // label28 // this.label28.AutoSize = true; this.label28.Location = new System.Drawing.Point(41, 141); this.label28.Name = "label28"; this.label28.Size = new System.Drawing.Size(13, 13); this.label28.TabIndex = 34; this.label28.Text = "2"; // // label27 // this.label27.AutoSize = true; this.label27.Location = new System.Drawing.Point(16, 141); this.label27.Name = "label27"; this.label27.Size = new System.Drawing.Size(13, 13); this.label27.TabIndex = 33; this.label27.Text = "1"; // // tbch8 // this.tbch8.BackColor = System.Drawing.Color.Transparent; this.tbch8.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch8.IndentHeight = 1; this.tbch8.IndentWidth = 1; this.tbch8.LargeChange = 100; this.tbch8.Location = new System.Drawing.Point(188, 35); this.tbch8.Maximum = 255; this.tbch8.Minimum = 0; this.tbch8.Name = "tbch8"; this.tbch8.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch8.Size = new System.Drawing.Size(19, 100); this.tbch8.SmallChange = 10; this.tbch8.TabIndex = 32; this.tbch8.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch8.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch8.TickFrequency = 64; this.tbch8.TickHeight = 1; this.tbch8.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch8.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch8.TrackerSize = new System.Drawing.Size(13, 13); this.tbch8.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch8.TrackLineHeight = 9; this.tbch8.Value = 9; // // tbch7 // this.tbch7.BackColor = System.Drawing.Color.Transparent; this.tbch7.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch7.IndentHeight = 1; this.tbch7.IndentWidth = 1; this.tbch7.LargeChange = 100; this.tbch7.Location = new System.Drawing.Point(163, 35); this.tbch7.Maximum = 255; this.tbch7.Minimum = 0; this.tbch7.Name = "tbch7"; this.tbch7.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch7.Size = new System.Drawing.Size(19, 100); this.tbch7.SmallChange = 10; this.tbch7.TabIndex = 31; this.tbch7.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch7.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch7.TickFrequency = 64; this.tbch7.TickHeight = 1; this.tbch7.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch7.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch7.TrackerSize = new System.Drawing.Size(13, 13); this.tbch7.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch7.TrackLineHeight = 9; this.tbch7.Value = 9; // // tbch6 // this.tbch6.BackColor = System.Drawing.Color.Transparent; this.tbch6.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch6.IndentHeight = 1; this.tbch6.IndentWidth = 1; this.tbch6.LargeChange = 100; this.tbch6.Location = new System.Drawing.Point(138, 35); this.tbch6.Maximum = 255; this.tbch6.Minimum = 0; this.tbch6.Name = "tbch6"; this.tbch6.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch6.Size = new System.Drawing.Size(19, 100); this.tbch6.SmallChange = 10; this.tbch6.TabIndex = 30; this.tbch6.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch6.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch6.TickFrequency = 64; this.tbch6.TickHeight = 1; this.tbch6.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch6.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch6.TrackerSize = new System.Drawing.Size(13, 13); this.tbch6.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch6.TrackLineHeight = 9; this.tbch6.Value = 9; // // tbch5 // this.tbch5.BackColor = System.Drawing.Color.Transparent; this.tbch5.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch5.IndentHeight = 1; this.tbch5.IndentWidth = 1; this.tbch5.LargeChange = 100; this.tbch5.Location = new System.Drawing.Point(113, 35); this.tbch5.Maximum = 255; this.tbch5.Minimum = 0; this.tbch5.Name = "tbch5"; this.tbch5.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch5.Size = new System.Drawing.Size(19, 100); this.tbch5.SmallChange = 10; this.tbch5.TabIndex = 29; this.tbch5.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch5.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch5.TickFrequency = 64; this.tbch5.TickHeight = 1; this.tbch5.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch5.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch5.TrackerSize = new System.Drawing.Size(13, 13); this.tbch5.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch5.TrackLineHeight = 9; this.tbch5.Value = 9; // // tbch4 // this.tbch4.BackColor = System.Drawing.Color.Transparent; this.tbch4.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch4.IndentHeight = 1; this.tbch4.IndentWidth = 1; this.tbch4.LargeChange = 100; this.tbch4.Location = new System.Drawing.Point(88, 35); this.tbch4.Maximum = 255; this.tbch4.Minimum = 0; this.tbch4.Name = "tbch4"; this.tbch4.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch4.Size = new System.Drawing.Size(19, 100); this.tbch4.SmallChange = 10; this.tbch4.TabIndex = 28; this.tbch4.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch4.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch4.TickFrequency = 64; this.tbch4.TickHeight = 1; this.tbch4.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch4.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch4.TrackerSize = new System.Drawing.Size(13, 13); this.tbch4.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch4.TrackLineHeight = 9; this.tbch4.Value = 9; // // tbch3 // this.tbch3.BackColor = System.Drawing.Color.Transparent; this.tbch3.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch3.IndentHeight = 1; this.tbch3.IndentWidth = 1; this.tbch3.LargeChange = 100; this.tbch3.Location = new System.Drawing.Point(63, 35); this.tbch3.Maximum = 255; this.tbch3.Minimum = 0; this.tbch3.Name = "tbch3"; this.tbch3.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch3.Size = new System.Drawing.Size(19, 100); this.tbch3.SmallChange = 10; this.tbch3.TabIndex = 27; this.tbch3.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch3.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch3.TickFrequency = 64; this.tbch3.TickHeight = 1; this.tbch3.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch3.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch3.TrackerSize = new System.Drawing.Size(13, 13); this.tbch3.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch3.TrackLineHeight = 9; this.tbch3.Value = 9; // // tbch2 // this.tbch2.BackColor = System.Drawing.Color.Transparent; this.tbch2.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch2.IndentHeight = 1; this.tbch2.IndentWidth = 1; this.tbch2.LargeChange = 100; this.tbch2.Location = new System.Drawing.Point(38, 35); this.tbch2.Maximum = 255; this.tbch2.Minimum = 0; this.tbch2.Name = "tbch2"; this.tbch2.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch2.Size = new System.Drawing.Size(19, 100); this.tbch2.SmallChange = 10; this.tbch2.TabIndex = 26; this.tbch2.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch2.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch2.TickFrequency = 64; this.tbch2.TickHeight = 1; this.tbch2.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch2.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch2.TrackerSize = new System.Drawing.Size(13, 13); this.tbch2.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch2.TrackLineHeight = 9; this.tbch2.Value = 9; // // tbch1 // this.tbch1.BackColor = System.Drawing.Color.Transparent; this.tbch1.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.tbch1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tbch1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.tbch1.IndentHeight = 1; this.tbch1.IndentWidth = 1; this.tbch1.LargeChange = 100; this.tbch1.Location = new System.Drawing.Point(13, 35); this.tbch1.Maximum = 255; this.tbch1.Minimum = 0; this.tbch1.Name = "tbch1"; this.tbch1.Orientation = System.Windows.Forms.Orientation.Vertical; this.tbch1.Size = new System.Drawing.Size(19, 100); this.tbch1.SmallChange = 10; this.tbch1.TabIndex = 25; this.tbch1.TextTickStyle = System.Windows.Forms.TickStyle.None; this.tbch1.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.tbch1.TickFrequency = 64; this.tbch1.TickHeight = 1; this.tbch1.TickStyle = System.Windows.Forms.TickStyle.Both; this.tbch1.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.tbch1.TrackerSize = new System.Drawing.Size(13, 13); this.tbch1.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.tbch1.TrackLineHeight = 9; this.tbch1.Value = 9; // // groupBox2 // this.groupBox2.Controls.Add(this.switchbox); this.groupBox2.Controls.Add(this.deactivatemotors); this.groupBox2.Controls.Add(this.static67); this.groupBox2.Controls.Add(this.static68); this.groupBox2.Controls.Add(this.static66); this.groupBox2.Controls.Add(this.static65); this.groupBox2.Controls.Add(this.static64); this.groupBox2.Controls.Add(this.static63); this.groupBox2.Controls.Add(this.yawbox); this.groupBox2.Controls.Add(this.rollbox); this.groupBox2.Controls.Add(this.Nickbox); this.groupBox2.Controls.Add(this.throttlebox); this.groupBox2.Controls.Add(this.textBoxu); this.groupBox2.Controls.Add(this.labelu); this.groupBox2.Controls.Add(this.static40); this.groupBox2.Controls.Add(this.textBoxS); this.groupBox2.Controls.Add(this.textBoxR); this.groupBox2.Controls.Add(this.textBoxQ); this.groupBox2.Controls.Add(this.checkBoxT); this.groupBox2.Controls.Add(this.labels); this.groupBox2.Controls.Add(this.labelr); this.groupBox2.Controls.Add(this.labelq); this.groupBox2.Controls.Add(this.static15); this.groupBox2.Controls.Add(this.static13); this.groupBox2.Controls.Add(this.static14); this.groupBox2.Controls.Add(this.static12); this.groupBox2.Controls.Add(this.static11); this.groupBox2.Controls.Add(this.checkBoxT2); this.groupBox2.Controls.Add(this.static9); this.groupBox2.Controls.Add(this.static10); this.groupBox2.Location = new System.Drawing.Point(18, 20); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(383, 329); this.groupBox2.TabIndex = 7; this.groupBox2.TabStop = false; this.groupBox2.Text = "Transmitter settings"; // // switchbox // this.switchbox.FormattingEnabled = true; this.switchbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.switchbox.Location = new System.Drawing.Point(267, 235); this.switchbox.Name = "switchbox"; this.switchbox.Size = new System.Drawing.Size(57, 21); this.switchbox.TabIndex = 28; this.toolTip1.SetToolTip(this.switchbox, "Select RC function here"); // // deactivatemotors // this.deactivatemotors.Checked = true; this.deactivatemotors.CheckState = System.Windows.Forms.CheckState.Checked; this.deactivatemotors.Location = new System.Drawing.Point(15, 286); this.deactivatemotors.Name = "deactivatemotors"; this.deactivatemotors.Size = new System.Drawing.Size(132, 24); this.deactivatemotors.TabIndex = 27; this.deactivatemotors.Text = "Deactivate motors"; this.toolTip1.SetToolTip(this.deactivatemotors, "Deactivate motors (for safety)"); this.deactivatemotors.UseVisualStyleBackColor = true; this.deactivatemotors.Click += new System.EventHandler(this.DeactivatemotorsClick); // // static67 // this.static67.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static67.Location = new System.Drawing.Point(15, 202); this.static67.Name = "static67"; this.static67.Size = new System.Drawing.Size(246, 15); this.static67.TabIndex = 26; this.static67.Text = "Controls (RX/TX channel assignment)"; // // static68 // this.static68.Location = new System.Drawing.Point(267, 204); this.static68.Name = "static68"; this.static68.Size = new System.Drawing.Size(87, 30); this.static68.TabIndex = 26; this.static68.Text = "Motor switch/ \r\nmode selection:"; // // static66 // this.static66.Location = new System.Drawing.Point(204, 217); this.static66.Name = "static66"; this.static66.Size = new System.Drawing.Size(57, 15); this.static66.TabIndex = 26; this.static66.Text = "Yaw:"; // // static65 // this.static65.Location = new System.Drawing.Point(141, 217); this.static65.Name = "static65"; this.static65.Size = new System.Drawing.Size(57, 15); this.static65.TabIndex = 26; this.static65.Text = "Roll:"; // // static64 // this.static64.Location = new System.Drawing.Point(78, 217); this.static64.Name = "static64"; this.static64.Size = new System.Drawing.Size(57, 15); this.static64.TabIndex = 26; this.static64.Text = "Nick:"; // // static63 // this.static63.Location = new System.Drawing.Point(15, 217); this.static63.Name = "static63"; this.static63.Size = new System.Drawing.Size(57, 15); this.static63.TabIndex = 26; this.static63.Text = "Throttle:"; // // yawbox // this.yawbox.FormattingEnabled = true; this.yawbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.yawbox.Location = new System.Drawing.Point(204, 235); this.yawbox.Name = "yawbox"; this.yawbox.Size = new System.Drawing.Size(57, 21); this.yawbox.TabIndex = 25; this.toolTip1.SetToolTip(this.yawbox, "Select RC function here"); // // rollbox // this.rollbox.FormattingEnabled = true; this.rollbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.rollbox.Location = new System.Drawing.Point(141, 235); this.rollbox.Name = "rollbox"; this.rollbox.Size = new System.Drawing.Size(57, 21); this.rollbox.TabIndex = 24; this.toolTip1.SetToolTip(this.rollbox, "Select RC function here"); // // Nickbox // this.Nickbox.FormattingEnabled = true; this.Nickbox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.Nickbox.Location = new System.Drawing.Point(78, 235); this.Nickbox.Name = "Nickbox"; this.Nickbox.Size = new System.Drawing.Size(57, 21); this.Nickbox.TabIndex = 23; this.toolTip1.SetToolTip(this.Nickbox, "Select RC function here"); // // throttlebox // this.throttlebox.FormattingEnabled = true; this.throttlebox.Items.AddRange(new object[] { "Ch. 1", "Ch. 2", "Ch. 3", "Ch. 4", "Ch. 5", "Ch. 6", "Ch. 7", "Ch. 8", "Ch. 9", "Ch. 10", "Ch. 11", "Ch. 12"}); this.throttlebox.Location = new System.Drawing.Point(15, 235); this.throttlebox.Name = "throttlebox"; this.throttlebox.Size = new System.Drawing.Size(57, 21); this.throttlebox.TabIndex = 22; this.toolTip1.SetToolTip(this.throttlebox, "Select RC function here"); // // textBoxu // this.textBoxu.Location = new System.Drawing.Point(290, 128); this.textBoxu.Name = "textBoxu"; this.textBoxu.Size = new System.Drawing.Size(50, 20); this.textBoxu.TabIndex = 21; this.toolTip1.SetToolTip(this.textBoxu, "Minimum throttle of the motors when they are turned on and the throttle stick is " + "at the bottom"); this.textBoxu.TextChanged += new System.EventHandler(this.TextBoxuTextChanged); // // labelu // this.labelu.Location = new System.Drawing.Point(225, 131); this.labelu.Name = "labelu"; this.labelu.Size = new System.Drawing.Size(50, 20); this.labelu.TabIndex = 20; this.labelu.Text = "---"; // // static40 // this.static40.Location = new System.Drawing.Point(15, 131); this.static40.Name = "static40"; this.static40.Size = new System.Drawing.Size(186, 23); this.static40.TabIndex = 19; this.static40.Text = "Minimum throttle (idle up) [15]"; // // textBoxS // this.textBoxS.Location = new System.Drawing.Point(290, 82); this.textBoxS.Name = "textBoxS"; this.textBoxS.Size = new System.Drawing.Size(50, 20); this.textBoxS.TabIndex = 17; this.toolTip1.SetToolTip(this.textBoxS, "Yaw sensitivity (for both hover and acro mode)"); this.textBoxS.TextChanged += new System.EventHandler(this.TextBoxSTextChanged); // // textBoxR // this.textBoxR.Location = new System.Drawing.Point(290, 59); this.textBoxR.Name = "textBoxR"; this.textBoxR.Size = new System.Drawing.Size(50, 20); this.textBoxR.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxR, "Agility in hover mode"); this.textBoxR.TextChanged += new System.EventHandler(this.TextBoxRTextChanged); // // textBoxQ // this.textBoxQ.Location = new System.Drawing.Point(290, 36); this.textBoxQ.Name = "textBoxQ"; this.textBoxQ.Size = new System.Drawing.Size(50, 20); this.textBoxQ.TabIndex = 15; this.toolTip1.SetToolTip(this.textBoxQ, "Agility in acro mode"); this.textBoxQ.TextChanged += new System.EventHandler(this.TextBoxQTextChanged); // // checkBoxT // this.checkBoxT.Checked = true; this.checkBoxT.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxT.Enabled = false; this.checkBoxT.Location = new System.Drawing.Point(225, 105); this.checkBoxT.Name = "checkBoxT"; this.checkBoxT.Size = new System.Drawing.Size(30, 20); this.checkBoxT.TabIndex = 14; this.checkBoxT.UseVisualStyleBackColor = true; // // labels // this.labels.Location = new System.Drawing.Point(225, 85); this.labels.Name = "labels"; this.labels.Size = new System.Drawing.Size(50, 20); this.labels.TabIndex = 13; this.labels.Text = "---"; // // labelr // this.labelr.Location = new System.Drawing.Point(225, 62); this.labelr.Name = "labelr"; this.labelr.Size = new System.Drawing.Size(50, 20); this.labelr.TabIndex = 12; this.labelr.Text = "---"; // // labelq // this.labelq.Location = new System.Drawing.Point(225, 39); this.labelq.Name = "labelq"; this.labelq.Size = new System.Drawing.Size(50, 20); this.labelq.TabIndex = 11; this.labelq.Text = "---"; // // static15 // this.static15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static15.Location = new System.Drawing.Point(290, 16); this.static15.Name = "static15"; this.static15.Size = new System.Drawing.Size(84, 23); this.static15.TabIndex = 10; this.static15.Text = "New values"; // // static13 // this.static13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static13.Location = new System.Drawing.Point(15, 16); this.static13.Name = "static13"; this.static13.Size = new System.Drawing.Size(115, 23); this.static13.TabIndex = 9; this.static13.Text = "Parameter [default]"; // // static14 // this.static14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static14.Location = new System.Drawing.Point(205, 16); this.static14.Name = "static14"; this.static14.Size = new System.Drawing.Size(79, 23); this.static14.TabIndex = 8; this.static14.Text = "Values in µC"; // // static12 // this.static12.Location = new System.Drawing.Point(15, 108); this.static12.Name = "static12"; this.static12.Size = new System.Drawing.Size(198, 23); this.static12.TabIndex = 5; this.static12.Text = "ACRO: Exponential agility boost [0]"; // // static11 // this.static11.Location = new System.Drawing.Point(15, 85); this.static11.Name = "static11"; this.static11.Size = new System.Drawing.Size(198, 23); this.static11.TabIndex = 4; this.static11.Text = "Yaw stick sensitivity [130]"; // // checkBoxT2 // this.checkBoxT2.Checked = true; this.checkBoxT2.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxT2.Location = new System.Drawing.Point(290, 105); this.checkBoxT2.Name = "checkBoxT2"; this.checkBoxT2.Size = new System.Drawing.Size(50, 20); this.checkBoxT2.TabIndex = 6; this.checkBoxT2.Text = "on"; this.toolTip1.SetToolTip(this.checkBoxT2, "Exponential increase in agility when roll or yaw sticks move out of the centre"); this.checkBoxT2.UseVisualStyleBackColor = true; // // static9 // this.static9.Location = new System.Drawing.Point(15, 39); this.static9.Name = "static9"; this.static9.Size = new System.Drawing.Size(198, 23); this.static9.TabIndex = 2; this.static9.Text = "ACRO: Stick sensitivity roll + nick [130]"; // // static10 // this.static10.Location = new System.Drawing.Point(15, 62); this.static10.Name = "static10"; this.static10.Size = new System.Drawing.Size(200, 23); this.static10.TabIndex = 3; this.static10.Text = "HOVER: Stick sensitivity roll + nick [70]"; // // tabPage3 // this.tabPage3.Controls.Add(this.groupBox6); this.tabPage3.Controls.Add(this.groupBox5); this.tabPage3.Controls.Add(this.groupBox4); this.tabPage3.Controls.Add(this.groupBox3); this.tabPage3.Controls.Add(this.groupBox1); this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Size = new System.Drawing.Size(649, 366); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "PID loop"; this.tabPage3.UseVisualStyleBackColor = true; // // groupBox6 // this.groupBox6.Controls.Add(this.textBoxx); this.groupBox6.Controls.Add(this.textBoxw); this.groupBox6.Controls.Add(this.labelx); this.groupBox6.Controls.Add(this.labelw); this.groupBox6.Controls.Add(this.static46); this.groupBox6.Controls.Add(this.static45); this.groupBox6.Controls.Add(this.textBoxp); this.groupBox6.Controls.Add(this.textBoxo); this.groupBox6.Controls.Add(this.textBoxn); this.groupBox6.Controls.Add(this.labelp); this.groupBox6.Controls.Add(this.labelo); this.groupBox6.Controls.Add(this.labeln); this.groupBox6.Controls.Add(this.static39); this.groupBox6.Controls.Add(this.static38); this.groupBox6.Controls.Add(this.static37); this.groupBox6.Controls.Add(this.static36); this.groupBox6.Controls.Add(this.static35); this.groupBox6.Controls.Add(this.static34); this.groupBox6.Location = new System.Drawing.Point(3, 180); this.groupBox6.Name = "groupBox6"; this.groupBox6.Size = new System.Drawing.Size(267, 182); this.groupBox6.TabIndex = 4; this.groupBox6.TabStop = false; this.groupBox6.Text = "ACC settings"; // // textBoxx // this.textBoxx.Location = new System.Drawing.Point(193, 130); this.textBoxx.Name = "textBoxx"; this.textBoxx.Size = new System.Drawing.Size(50, 20); this.textBoxx.TabIndex = 25; this.toolTip1.SetToolTip(this.textBoxx, "Y acc offset determines at which angle the acc thinks it is horizontal. If your c" + "opter doesn\'t stay in place, you need to tune this parameter."); this.textBoxx.TextChanged += new System.EventHandler(this.TextBoxxTextChanged); // // textBoxw // this.textBoxw.Location = new System.Drawing.Point(193, 107); this.textBoxw.Name = "textBoxw"; this.textBoxw.Size = new System.Drawing.Size(50, 20); this.textBoxw.TabIndex = 24; this.toolTip1.SetToolTip(this.textBoxw, "X acc offset determines at which angle the acc thinks it is horizontal. If your c" + "opter doesn\'t stay in place, you need to tune this parameter."); this.textBoxw.TextChanged += new System.EventHandler(this.TextBoxwTextChanged); // // labelx // this.labelx.Location = new System.Drawing.Point(126, 133); this.labelx.Name = "labelx"; this.labelx.Size = new System.Drawing.Size(50, 20); this.labelx.TabIndex = 23; this.labelx.Text = "---"; // // labelw // this.labelw.Location = new System.Drawing.Point(126, 110); this.labelw.Name = "labelw"; this.labelw.Size = new System.Drawing.Size(50, 20); this.labelw.TabIndex = 22; this.labelw.Text = "---"; // // static46 // this.static46.Location = new System.Drawing.Point(8, 133); this.static46.Name = "static46"; this.static46.Size = new System.Drawing.Size(100, 23); this.static46.TabIndex = 21; this.static46.Text = "Y acc offset [128]"; // // static45 // this.static45.Location = new System.Drawing.Point(8, 110); this.static45.Name = "static45"; this.static45.Size = new System.Drawing.Size(100, 23); this.static45.TabIndex = 20; this.static45.Text = "X acc offset [128]"; // // textBoxp // this.textBoxp.Location = new System.Drawing.Point(193, 84); this.textBoxp.Name = "textBoxp"; this.textBoxp.Size = new System.Drawing.Size(50, 20); this.textBoxp.TabIndex = 19; this.toolTip1.SetToolTip(this.textBoxp, "Scale factor of the acc, the acc has to have a similar amplitude as the gyro inte" + "gral"); this.textBoxp.TextChanged += new System.EventHandler(this.TextBoxpTextChanged); // // textBoxo // this.textBoxo.Location = new System.Drawing.Point(193, 61); this.textBoxo.Name = "textBoxo"; this.textBoxo.Size = new System.Drawing.Size(50, 20); this.textBoxo.TabIndex = 18; this.toolTip1.SetToolTip(this.textBoxo, "Scale factor of the acc, the acc has to have a similar amplitude as the gyro inte" + "gral"); this.textBoxo.TextChanged += new System.EventHandler(this.TextBoxoTextChanged); // // textBoxn // this.textBoxn.Location = new System.Drawing.Point(193, 38); this.textBoxn.Name = "textBoxn"; this.textBoxn.Size = new System.Drawing.Size(50, 20); this.textBoxn.TabIndex = 17; this.toolTip1.SetToolTip(this.textBoxn, "Determines how much the gyro integral is influenced by the acc"); this.textBoxn.TextChanged += new System.EventHandler(this.TextBoxnTextChanged); // // labelp // this.labelp.Location = new System.Drawing.Point(126, 87); this.labelp.Name = "labelp"; this.labelp.Size = new System.Drawing.Size(50, 20); this.labelp.TabIndex = 16; this.labelp.Text = "---"; // // labelo // this.labelo.Location = new System.Drawing.Point(126, 64); this.labelo.Name = "labelo"; this.labelo.Size = new System.Drawing.Size(50, 20); this.labelo.TabIndex = 15; this.labelo.Text = "---"; // // labeln // this.labeln.Location = new System.Drawing.Point(126, 41); this.labeln.Name = "labeln"; this.labeln.Size = new System.Drawing.Size(50, 20); this.labeln.TabIndex = 14; this.labeln.Text = "---"; // // static39 // this.static39.Location = new System.Drawing.Point(8, 87); this.static39.Name = "static39"; this.static39.Size = new System.Drawing.Size(100, 23); this.static39.TabIndex = 13; this.static39.Text = "Y acc scale [140]"; // // static38 // this.static38.Location = new System.Drawing.Point(8, 64); this.static38.Name = "static38"; this.static38.Size = new System.Drawing.Size(100, 23); this.static38.TabIndex = 12; this.static38.Text = "X acc scale [140]"; // // static37 // this.static37.Location = new System.Drawing.Point(8, 41); this.static37.Name = "static37"; this.static37.Size = new System.Drawing.Size(100, 23); this.static37.TabIndex = 11; this.static37.Text = "ACC influence [10]"; // // static36 // this.static36.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static36.Location = new System.Drawing.Point(193, 14); this.static36.Name = "static36"; this.static36.Size = new System.Drawing.Size(74, 23); this.static36.TabIndex = 10; this.static36.Text = "New values"; // // static35 // this.static35.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static35.Location = new System.Drawing.Point(113, 14); this.static35.Name = "static35"; this.static35.Size = new System.Drawing.Size(79, 23); this.static35.TabIndex = 8; this.static35.Text = "Values in µC"; // // static34 // this.static34.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static34.Location = new System.Drawing.Point(8, 14); this.static34.Name = "static34"; this.static34.Size = new System.Drawing.Size(115, 23); this.static34.TabIndex = 9; this.static34.Text = "Parameter [default]"; // // groupBox5 // this.groupBox5.Controls.Add(this.trackBar15); this.groupBox5.Controls.Add(this.checkBox3); this.groupBox5.Controls.Add(this.label14); this.groupBox5.Controls.Add(this.label25); this.groupBox5.Controls.Add(this.label26); this.groupBox5.Controls.Add(this.textBoxm); this.groupBox5.Controls.Add(this.textBoxl); this.groupBox5.Controls.Add(this.labelm); this.groupBox5.Controls.Add(this.labell); this.groupBox5.Controls.Add(this.static33); this.groupBox5.Controls.Add(this.static32); this.groupBox5.Controls.Add(this.static29); this.groupBox5.Controls.Add(this.static31); this.groupBox5.Controls.Add(this.static30); this.groupBox5.Location = new System.Drawing.Point(276, 267); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(370, 95); this.groupBox5.TabIndex = 3; this.groupBox5.TabStop = false; this.groupBox5.Text = "Yaw PI"; // // trackBar15 // this.trackBar15.BackColor = System.Drawing.SystemColors.Window; this.trackBar15.LargeChange = 2; this.trackBar15.Location = new System.Drawing.Point(325, 30); this.trackBar15.Margin = new System.Windows.Forms.Padding(1); this.trackBar15.Name = "trackBar15"; this.trackBar15.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar15.Size = new System.Drawing.Size(42, 61); this.trackBar15.TabIndex = 21; this.trackBar15.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar15.Value = 6; this.trackBar15.Scroll += new System.EventHandler(this.TrackBar15Scroll); // // checkBox3 // this.checkBox3.Location = new System.Drawing.Point(335, 10); this.checkBox3.Name = "checkBox3"; this.checkBox3.Size = new System.Drawing.Size(20, 24); this.checkBox3.TabIndex = 20; this.checkBox3.UseVisualStyleBackColor = true; this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged); // // label14 // this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label14.Location = new System.Drawing.Point(259, 34); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(63, 23); this.label14.TabIndex = 18; this.label14.Text = "high sens"; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label25 // this.label25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label25.Location = new System.Drawing.Point(259, 69); this.label25.Name = "label25"; this.label25.Size = new System.Drawing.Size(63, 23); this.label25.TabIndex = 19; this.label25.Text = "low sens"; this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label26 // this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label26.Location = new System.Drawing.Point(266, 16); this.label26.Name = "label26"; this.label26.Size = new System.Drawing.Size(63, 23); this.label26.TabIndex = 17; this.label26.Text = "Easy mode"; // // textBoxm // this.textBoxm.Location = new System.Drawing.Point(190, 53); this.textBoxm.Name = "textBoxm"; this.textBoxm.Size = new System.Drawing.Size(50, 20); this.textBoxm.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxm, "I of yaw: to sum of the errors in angular velocity"); this.textBoxm.TextChanged += new System.EventHandler(this.TextBoxmTextChanged); // // textBoxl // this.textBoxl.Location = new System.Drawing.Point(190, 30); this.textBoxl.Name = "textBoxl"; this.textBoxl.Size = new System.Drawing.Size(50, 20); this.textBoxl.TabIndex = 15; this.toolTip1.SetToolTip(this.textBoxl, "P of yaw: reacts to errors in yaw velocity"); this.textBoxl.TextChanged += new System.EventHandler(this.TextBoxlTextChanged); // // labelm // this.labelm.Location = new System.Drawing.Point(113, 56); this.labelm.Name = "labelm"; this.labelm.Size = new System.Drawing.Size(50, 20); this.labelm.TabIndex = 14; this.labelm.Text = "---"; // // labell // this.labell.Location = new System.Drawing.Point(113, 33); this.labell.Name = "labell"; this.labell.Size = new System.Drawing.Size(50, 20); this.labell.TabIndex = 13; this.labell.Text = "---"; // // static33 // this.static33.Location = new System.Drawing.Point(7, 56); this.static33.Name = "static33"; this.static33.Size = new System.Drawing.Size(100, 23); this.static33.TabIndex = 12; this.static33.Text = "I [70]"; // // static32 // this.static32.Location = new System.Drawing.Point(7, 33); this.static32.Name = "static32"; this.static32.Size = new System.Drawing.Size(100, 23); this.static32.TabIndex = 11; this.static32.Text = "P [100]"; // // static29 // this.static29.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static29.Location = new System.Drawing.Point(6, 16); this.static29.Name = "static29"; this.static29.Size = new System.Drawing.Size(107, 23); this.static29.TabIndex = 9; this.static29.Text = "Parameter [default]"; // // static31 // this.static31.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static31.Location = new System.Drawing.Point(188, 16); this.static31.Name = "static31"; this.static31.Size = new System.Drawing.Size(100, 23); this.static31.TabIndex = 10; this.static31.Text = "New values"; // // static30 // this.static30.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static30.Location = new System.Drawing.Point(113, 16); this.static30.Name = "static30"; this.static30.Size = new System.Drawing.Size(88, 23); this.static30.TabIndex = 8; this.static30.Text = "Values in µC"; // // groupBox4 // this.groupBox4.Controls.Add(this.checkBoxf2); this.groupBox4.Controls.Add(this.checkBoxf); this.groupBox4.Controls.Add(this.checkBoxe2); this.groupBox4.Controls.Add(this.checkBoxe); this.groupBox4.Controls.Add(this.static28); this.groupBox4.Controls.Add(this.static27); this.groupBox4.Controls.Add(this.checkBoxD2); this.groupBox4.Controls.Add(this.checkBoxB2); this.groupBox4.Controls.Add(this.checkBoxC2); this.groupBox4.Controls.Add(this.checkBoxD); this.groupBox4.Controls.Add(this.checkBoxC); this.groupBox4.Controls.Add(this.checkBoxB); this.groupBox4.Controls.Add(this.static26); this.groupBox4.Controls.Add(this.static25); this.groupBox4.Controls.Add(this.static24); this.groupBox4.Controls.Add(this.static22); this.groupBox4.Controls.Add(this.static23); this.groupBox4.Controls.Add(this.static21); this.groupBox4.Location = new System.Drawing.Point(3, 3); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(267, 171); this.groupBox4.TabIndex = 2; this.groupBox4.TabStop = false; this.groupBox4.Text = "Directions"; // // checkBoxf2 // this.checkBoxf2.Location = new System.Drawing.Point(199, 136); this.checkBoxf2.Name = "checkBoxf2"; this.checkBoxf2.Size = new System.Drawing.Size(50, 20); this.checkBoxf2.TabIndex = 21; this.toolTip1.SetToolTip(this.checkBoxf2, "Reverse Y acc"); this.checkBoxf2.UseVisualStyleBackColor = true; // // checkBoxf // this.checkBoxf.Enabled = false; this.checkBoxf.Location = new System.Drawing.Point(142, 136); this.checkBoxf.Name = "checkBoxf"; this.checkBoxf.Size = new System.Drawing.Size(20, 20); this.checkBoxf.TabIndex = 20; this.checkBoxf.UseVisualStyleBackColor = true; // // checkBoxe2 // this.checkBoxe2.Location = new System.Drawing.Point(199, 109); this.checkBoxe2.Name = "checkBoxe2"; this.checkBoxe2.Size = new System.Drawing.Size(50, 20); this.checkBoxe2.TabIndex = 19; this.toolTip1.SetToolTip(this.checkBoxe2, "Reverse X acc"); this.checkBoxe2.UseVisualStyleBackColor = true; // // checkBoxe // this.checkBoxe.Enabled = false; this.checkBoxe.Location = new System.Drawing.Point(142, 109); this.checkBoxe.Name = "checkBoxe"; this.checkBoxe.Size = new System.Drawing.Size(20, 20); this.checkBoxe.TabIndex = 18; this.checkBoxe.UseVisualStyleBackColor = true; // // static28 // this.static28.Location = new System.Drawing.Point(7, 139); this.static28.Name = "static28"; this.static28.Size = new System.Drawing.Size(100, 23); this.static28.TabIndex = 17; this.static28.Text = "Y acc reverse [0]"; // // static27 // this.static27.Location = new System.Drawing.Point(7, 112); this.static27.Name = "static27"; this.static27.Size = new System.Drawing.Size(100, 23); this.static27.TabIndex = 16; this.static27.Text = "X acc reverse [0]"; // // checkBoxD2 // this.checkBoxD2.Location = new System.Drawing.Point(199, 82); this.checkBoxD2.Name = "checkBoxD2"; this.checkBoxD2.Size = new System.Drawing.Size(50, 20); this.checkBoxD2.TabIndex = 15; this.toolTip1.SetToolTip(this.checkBoxD2, "Reverse yaw gyro"); this.checkBoxD2.UseVisualStyleBackColor = true; // // checkBoxB2 // this.checkBoxB2.Location = new System.Drawing.Point(199, 33); this.checkBoxB2.Name = "checkBoxB2"; this.checkBoxB2.Size = new System.Drawing.Size(50, 20); this.checkBoxB2.TabIndex = 14; this.toolTip1.SetToolTip(this.checkBoxB2, "Reverse roll gyro"); this.checkBoxB2.UseVisualStyleBackColor = true; // // checkBoxC2 // this.checkBoxC2.Location = new System.Drawing.Point(199, 59); this.checkBoxC2.Name = "checkBoxC2"; this.checkBoxC2.Size = new System.Drawing.Size(50, 20); this.checkBoxC2.TabIndex = 13; this.toolTip1.SetToolTip(this.checkBoxC2, "Reverse nick gyro"); this.checkBoxC2.UseVisualStyleBackColor = true; // // checkBoxD // this.checkBoxD.Enabled = false; this.checkBoxD.Location = new System.Drawing.Point(142, 83); this.checkBoxD.Name = "checkBoxD"; this.checkBoxD.Size = new System.Drawing.Size(20, 20); this.checkBoxD.TabIndex = 11; this.checkBoxD.UseVisualStyleBackColor = true; // // checkBoxC // this.checkBoxC.Enabled = false; this.checkBoxC.Location = new System.Drawing.Point(142, 59); this.checkBoxC.Name = "checkBoxC"; this.checkBoxC.Size = new System.Drawing.Size(20, 20); this.checkBoxC.TabIndex = 10; this.checkBoxC.UseVisualStyleBackColor = true; // // checkBoxB // this.checkBoxB.Enabled = false; this.checkBoxB.Location = new System.Drawing.Point(142, 33); this.checkBoxB.Name = "checkBoxB"; this.checkBoxB.Size = new System.Drawing.Size(20, 20); this.checkBoxB.TabIndex = 9; this.checkBoxB.UseVisualStyleBackColor = true; // // static26 // this.static26.Location = new System.Drawing.Point(7, 85); this.static26.Name = "static26"; this.static26.Size = new System.Drawing.Size(114, 23); this.static26.TabIndex = 8; this.static26.Text = "Yaw gyro reverse [0]"; // // static25 // this.static25.Location = new System.Drawing.Point(7, 61); this.static25.Name = "static25"; this.static25.Size = new System.Drawing.Size(114, 23); this.static25.TabIndex = 8; this.static25.Text = "Nick gyro reverse [0]"; // // static24 // this.static24.Location = new System.Drawing.Point(7, 36); this.static24.Name = "static24"; this.static24.Size = new System.Drawing.Size(114, 23); this.static24.TabIndex = 8; this.static24.Text = "Roll gyro reverse [0]"; // // static22 // this.static22.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static22.Location = new System.Drawing.Point(117, 16); this.static22.Name = "static22"; this.static22.Size = new System.Drawing.Size(75, 23); this.static22.TabIndex = 6; this.static22.Text = "Values in µC"; // // static23 // this.static23.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static23.Location = new System.Drawing.Point(193, 16); this.static23.Name = "static23"; this.static23.Size = new System.Drawing.Size(74, 23); this.static23.TabIndex = 7; this.static23.Text = "New values"; // // static21 // this.static21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static21.Location = new System.Drawing.Point(6, 16); this.static21.Name = "static21"; this.static21.Size = new System.Drawing.Size(115, 23); this.static21.TabIndex = 6; this.static21.Text = "Parameter [default]"; // // groupBox3 // this.groupBox3.Controls.Add(this.checkBox2); this.groupBox3.Controls.Add(this.trackBar14); this.groupBox3.Controls.Add(this.label24); this.groupBox3.Controls.Add(this.textBoxy); this.groupBox3.Controls.Add(this.label23); this.groupBox3.Controls.Add(this.textBoxH); this.groupBox3.Controls.Add(this.textBoxG); this.groupBox3.Controls.Add(this.labely); this.groupBox3.Controls.Add(this.labelH); this.groupBox3.Controls.Add(this.label16); this.groupBox3.Controls.Add(this.labelG); this.groupBox3.Controls.Add(this.static17); this.groupBox3.Controls.Add(this.label22); this.groupBox3.Controls.Add(this.static16); this.groupBox3.Controls.Add(this.static18); this.groupBox3.Controls.Add(this.static20); this.groupBox3.Controls.Add(this.static19); this.groupBox3.Location = new System.Drawing.Point(276, 145); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(370, 116); this.groupBox3.TabIndex = 1; this.groupBox3.TabStop = false; this.groupBox3.Text = "ACRO Mode PID"; // // checkBox2 // this.checkBox2.Location = new System.Drawing.Point(335, 10); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(20, 24); this.checkBox2.TabIndex = 12; this.checkBox2.UseVisualStyleBackColor = true; this.checkBox2.CheckedChanged += new System.EventHandler(this.CheckBox2CheckedChanged); // // trackBar14 // this.trackBar14.BackColor = System.Drawing.SystemColors.Window; this.trackBar14.LargeChange = 2; this.trackBar14.Location = new System.Drawing.Point(325, 36); this.trackBar14.Margin = new System.Windows.Forms.Padding(0); this.trackBar14.Name = "trackBar14"; this.trackBar14.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar14.Size = new System.Drawing.Size(42, 77); this.trackBar14.TabIndex = 11; this.trackBar14.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar14.Value = 5; this.trackBar14.Scroll += new System.EventHandler(this.TrackBar14Scroll); // // label24 // this.label24.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label24.Location = new System.Drawing.Point(259, 39); this.label24.Name = "label24"; this.label24.Size = new System.Drawing.Size(63, 23); this.label24.TabIndex = 10; this.label24.Text = "high sens"; this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBoxy // this.textBoxy.Location = new System.Drawing.Point(190, 83); this.textBoxy.Name = "textBoxy"; this.textBoxy.Size = new System.Drawing.Size(50, 20); this.textBoxy.TabIndex = 10; this.toolTip1.SetToolTip(this.textBoxy, "D in acro mode: reacts to changes in angular acceleration"); this.textBoxy.TextChanged += new System.EventHandler(this.TextBoxHTextChanged); // // label23 // this.label23.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label23.Location = new System.Drawing.Point(259, 89); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(63, 23); this.label23.TabIndex = 10; this.label23.Text = "low sens"; this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBoxH // this.textBoxH.Location = new System.Drawing.Point(190, 59); this.textBoxH.Name = "textBoxH"; this.textBoxH.Size = new System.Drawing.Size(50, 20); this.textBoxH.TabIndex = 10; this.toolTip1.SetToolTip(this.textBoxH, "I in acro mode: The sum of the errors in angular velocity"); this.textBoxH.TextChanged += new System.EventHandler(this.TextBoxHTextChanged); // // textBoxG // this.textBoxG.Location = new System.Drawing.Point(190, 36); this.textBoxG.Name = "textBoxG"; this.textBoxG.Size = new System.Drawing.Size(50, 20); this.textBoxG.TabIndex = 9; this.toolTip1.SetToolTip(this.textBoxG, "P in acro mode: Reacts to errors in angular velocity"); this.textBoxG.TextChanged += new System.EventHandler(this.TextBoxGTextChanged); // // labely // this.labely.Location = new System.Drawing.Point(113, 86); this.labely.Name = "labely"; this.labely.Size = new System.Drawing.Size(50, 20); this.labely.TabIndex = 8; this.labely.Text = "---"; // // labelH // this.labelH.Location = new System.Drawing.Point(113, 62); this.labelH.Name = "labelH"; this.labelH.Size = new System.Drawing.Size(50, 20); this.labelH.TabIndex = 8; this.labelH.Text = "---"; // // label16 // this.label16.Location = new System.Drawing.Point(8, 86); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(51, 23); this.label16.TabIndex = 1; this.label16.Text = "D [15]"; // // labelG // this.labelG.Location = new System.Drawing.Point(113, 39); this.labelG.Name = "labelG"; this.labelG.Size = new System.Drawing.Size(50, 20); this.labelG.TabIndex = 2; this.labelG.Text = "---"; // // static17 // this.static17.Location = new System.Drawing.Point(8, 62); this.static17.Name = "static17"; this.static17.Size = new System.Drawing.Size(51, 23); this.static17.TabIndex = 1; this.static17.Text = "I [30]"; // // label22 // this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label22.Location = new System.Drawing.Point(266, 16); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(63, 23); this.label22.TabIndex = 7; this.label22.Text = "Easy mode"; // // static16 // this.static16.Location = new System.Drawing.Point(8, 39); this.static16.Name = "static16"; this.static16.Size = new System.Drawing.Size(51, 23); this.static16.TabIndex = 0; this.static16.Text = "P [130]"; // // static18 // this.static18.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static18.Location = new System.Drawing.Point(8, 16); this.static18.Name = "static18"; this.static18.Size = new System.Drawing.Size(107, 23); this.static18.TabIndex = 6; this.static18.Text = "Parameter [default]"; // // static20 // this.static20.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static20.Location = new System.Drawing.Point(190, 16); this.static20.Name = "static20"; this.static20.Size = new System.Drawing.Size(74, 23); this.static20.TabIndex = 7; this.static20.Text = "New values"; // // static19 // this.static19.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static19.Location = new System.Drawing.Point(113, 16); this.static19.Name = "static19"; this.static19.Size = new System.Drawing.Size(79, 23); this.static19.TabIndex = 6; this.static19.Text = "Values in µC"; // // groupBox1 // this.groupBox1.BackColor = System.Drawing.Color.Transparent; this.groupBox1.Controls.Add(this.label21); this.groupBox1.Controls.Add(this.label20); this.groupBox1.Controls.Add(this.checkBox1); this.groupBox1.Controls.Add(this.trackBar13); this.groupBox1.Controls.Add(this.label18); this.groupBox1.Controls.Add(this.static6); this.groupBox1.Controls.Add(this.static5); this.groupBox1.Controls.Add(this.static4); this.groupBox1.Controls.Add(this.textBoxi); this.groupBox1.Controls.Add(this.label19); this.groupBox1.Controls.Add(this.static3); this.groupBox1.Controls.Add(this.labeli); this.groupBox1.Controls.Add(this.static7); this.groupBox1.Controls.Add(this.static2); this.groupBox1.Controls.Add(this.labelj); this.groupBox1.Controls.Add(this.textBoxz); this.groupBox1.Controls.Add(this.textBoxk); this.groupBox1.Controls.Add(this.labelz); this.groupBox1.Controls.Add(this.labelk); this.groupBox1.Controls.Add(this.textBoxj); this.groupBox1.Location = new System.Drawing.Point(276, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(370, 136); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "HOVER Mode PIDD²"; // // label21 // this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label21.Location = new System.Drawing.Point(259, 38); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(63, 23); this.label21.TabIndex = 10; this.label21.Text = "high sens"; this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label20 // this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label20.Location = new System.Drawing.Point(259, 105); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(63, 23); this.label20.TabIndex = 10; this.label20.Text = "low sens"; this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(335, 12); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(20, 20); this.checkBox1.TabIndex = 9; this.toolTip1.SetToolTip(this.checkBox1, "Easy mode gives you less options in changing the parameters."); this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged); // // trackBar13 // this.trackBar13.BackColor = System.Drawing.SystemColors.Window; this.trackBar13.LargeChange = 2; this.trackBar13.Location = new System.Drawing.Point(325, 38); this.trackBar13.Margin = new System.Windows.Forms.Padding(0); this.trackBar13.Name = "trackBar13"; this.trackBar13.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar13.Size = new System.Drawing.Size(42, 90); this.trackBar13.TabIndex = 9; this.trackBar13.TickStyle = System.Windows.Forms.TickStyle.TopLeft; this.trackBar13.Value = 6; this.trackBar13.Scroll += new System.EventHandler(this.TrackBar13Scroll); // // label18 // this.label18.Location = new System.Drawing.Point(8, 109); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(51, 23); this.label18.TabIndex = 8; this.label18.Text = "D² [10]"; // // static6 // this.static6.Location = new System.Drawing.Point(8, 85); this.static6.Name = "static6"; this.static6.Size = new System.Drawing.Size(51, 23); this.static6.TabIndex = 8; this.static6.Text = "D [80]"; // // static5 // this.static5.Location = new System.Drawing.Point(8, 62); this.static5.Name = "static5"; this.static5.Size = new System.Drawing.Size(51, 23); this.static5.TabIndex = 8; this.static5.Text = "I [190]"; // // static4 // this.static4.Location = new System.Drawing.Point(8, 39); this.static4.Name = "static4"; this.static4.Size = new System.Drawing.Size(51, 23); this.static4.TabIndex = 8; this.static4.Text = "P [130]"; // // textBoxi // this.textBoxi.Location = new System.Drawing.Point(190, 36); this.textBoxi.Name = "textBoxi"; this.textBoxi.Size = new System.Drawing.Size(50, 20); this.textBoxi.TabIndex = 3; this.toolTip1.SetToolTip(this.textBoxi, "P in hover mode: reacts to errors in angle"); this.textBoxi.TextChanged += new System.EventHandler(this.TextBoxiTextChanged); // // label19 // this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label19.Location = new System.Drawing.Point(266, 16); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(63, 23); this.label19.TabIndex = 7; this.label19.Text = "Easy mode"; // // static3 // this.static3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static3.Location = new System.Drawing.Point(190, 16); this.static3.Name = "static3"; this.static3.Size = new System.Drawing.Size(74, 23); this.static3.TabIndex = 7; this.static3.Text = "New values"; // // labeli // this.labeli.Location = new System.Drawing.Point(113, 39); this.labeli.Name = "labeli"; this.labeli.Size = new System.Drawing.Size(50, 20); this.labeli.TabIndex = 0; this.labeli.Text = "---"; // // static7 // this.static7.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static7.Location = new System.Drawing.Point(8, 16); this.static7.Name = "static7"; this.static7.Size = new System.Drawing.Size(107, 23); this.static7.TabIndex = 6; this.static7.Text = "Parameter [default]"; // // static2 // this.static2.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static2.Location = new System.Drawing.Point(113, 16); this.static2.Name = "static2"; this.static2.Size = new System.Drawing.Size(79, 23); this.static2.TabIndex = 6; this.static2.Text = "Values in µC"; // // labelj // this.labelj.Location = new System.Drawing.Point(113, 62); this.labelj.Name = "labelj"; this.labelj.Size = new System.Drawing.Size(50, 20); this.labelj.TabIndex = 1; this.labelj.Text = "---"; // // textBoxz // this.textBoxz.Location = new System.Drawing.Point(190, 106); this.textBoxz.Name = "textBoxz"; this.textBoxz.Size = new System.Drawing.Size(50, 20); this.textBoxz.TabIndex = 5; this.toolTip1.SetToolTip(this.textBoxz, "D² in hover mode: reacts to errors in angular acceleration"); this.textBoxz.TextChanged += new System.EventHandler(this.TextBoxkTextChanged); // // textBoxk // this.textBoxk.Location = new System.Drawing.Point(190, 82); this.textBoxk.Name = "textBoxk"; this.textBoxk.Size = new System.Drawing.Size(50, 20); this.textBoxk.TabIndex = 5; this.toolTip1.SetToolTip(this.textBoxk, "D in hover mode: reacts to errors in angular velocity"); this.textBoxk.TextChanged += new System.EventHandler(this.TextBoxkTextChanged); // // labelz // this.labelz.Location = new System.Drawing.Point(113, 109); this.labelz.Name = "labelz"; this.labelz.Size = new System.Drawing.Size(50, 20); this.labelz.TabIndex = 2; this.labelz.Text = "---"; // // labelk // this.labelk.Location = new System.Drawing.Point(113, 85); this.labelk.Name = "labelk"; this.labelk.Size = new System.Drawing.Size(50, 20); this.labelk.TabIndex = 2; this.labelk.Text = "---"; // // textBoxj // this.textBoxj.Location = new System.Drawing.Point(190, 59); this.textBoxj.Name = "textBoxj"; this.textBoxj.Size = new System.Drawing.Size(50, 20); this.textBoxj.TabIndex = 4; this.toolTip1.SetToolTip(this.textBoxj, "I in hover mode: the sum of the error of the angle"); this.textBoxj.TextChanged += new System.EventHandler(this.TextBoxjTextChanged); // // tabPage5 // this.tabPage5.Controls.Add(this.groupBox15); this.tabPage5.Controls.Add(this.groupBox8); this.tabPage5.Controls.Add(this.groupBox7); this.tabPage5.Location = new System.Drawing.Point(4, 22); this.tabPage5.Name = "tabPage5"; this.tabPage5.Size = new System.Drawing.Size(649, 366); this.tabPage5.TabIndex = 4; this.tabPage5.Text = "Miscellaneous"; this.tabPage5.UseVisualStyleBackColor = true; // // groupBox15 // this.groupBox15.Controls.Add(this.emergmask); this.groupBox15.Controls.Add(this.label41); this.groupBox15.Controls.Add(this.label40); this.groupBox15.Controls.Add(this.labelled2); this.groupBox15.Controls.Add(this.labelled1); this.groupBox15.Controls.Add(this.label37); this.groupBox15.Controls.Add(this.label38); this.groupBox15.Controls.Add(this.label39); this.groupBox15.Controls.Add(this.label36); this.groupBox15.Controls.Add(this.label35); this.groupBox15.Controls.Add(this.led2mask); this.groupBox15.Controls.Add(this.led1mask); this.groupBox15.Location = new System.Drawing.Point(15, 106); this.groupBox15.Name = "groupBox15"; this.groupBox15.Size = new System.Drawing.Size(531, 188); this.groupBox15.TabIndex = 2; this.groupBox15.TabStop = false; this.groupBox15.Text = "Output LED Timing"; // // label41 // this.label41.Location = new System.Drawing.Point(152, 100); this.label41.Name = "label41"; this.label41.Size = new System.Drawing.Size(50, 20); this.label41.TabIndex = 20; this.label41.Text = "---"; // // label40 // this.label40.AutoSize = true; this.label40.Location = new System.Drawing.Point(17, 100); this.label40.Name = "label40"; this.label40.Size = new System.Drawing.Size(124, 13); this.label40.TabIndex = 19; this.label40.Text = "Emergency Pattern [170]"; // // labelled2 // this.labelled2.Location = new System.Drawing.Point(152, 74); this.labelled2.Name = "labelled2"; this.labelled2.Size = new System.Drawing.Size(50, 20); this.labelled2.TabIndex = 18; this.labelled2.Text = "---"; // // labelled1 // this.labelled1.Location = new System.Drawing.Point(152, 48); this.labelled1.Name = "labelled1"; this.labelled1.Size = new System.Drawing.Size(50, 20); this.labelled1.TabIndex = 17; this.labelled1.Text = "---"; // // label37 // this.label37.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label37.Location = new System.Drawing.Point(17, 25); this.label37.Name = "label37"; this.label37.Size = new System.Drawing.Size(115, 13); this.label37.TabIndex = 15; this.label37.Text = "Parameter [default]"; // // label38 // this.label38.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label38.Location = new System.Drawing.Point(226, 25); this.label38.Name = "label38"; this.label38.Size = new System.Drawing.Size(82, 13); this.label38.TabIndex = 16; this.label38.Text = "New values"; // // label39 // this.label39.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label39.Location = new System.Drawing.Point(138, 25); this.label39.Name = "label39"; this.label39.Size = new System.Drawing.Size(82, 13); this.label39.TabIndex = 14; this.label39.Text = "Values in µC"; // // label36 // this.label36.AutoSize = true; this.label36.Location = new System.Drawing.Point(17, 74); this.label36.Name = "label36"; this.label36.Size = new System.Drawing.Size(98, 13); this.label36.TabIndex = 3; this.label36.Text = "LED2 Pattern [207]"; // // label35 // this.label35.AutoSize = true; this.label35.Location = new System.Drawing.Point(17, 48); this.label35.Name = "label35"; this.label35.Size = new System.Drawing.Size(98, 13); this.label35.TabIndex = 2; this.label35.Text = "LED1 Pattern [243]"; // // groupBox8 // this.groupBox8.Controls.Add(this.errorlabel); this.groupBox8.Controls.Add(this.label12); this.groupBox8.Controls.Add(this.static47); this.groupBox8.Location = new System.Drawing.Point(15, 300); this.groupBox8.Name = "groupBox8"; this.groupBox8.Size = new System.Drawing.Size(531, 50); this.groupBox8.TabIndex = 1; this.groupBox8.TabStop = false; this.groupBox8.Text = "RC transmission"; // // errorlabel // this.errorlabel.Location = new System.Drawing.Point(138, 20); this.errorlabel.Name = "errorlabel"; this.errorlabel.Size = new System.Drawing.Size(47, 23); this.errorlabel.TabIndex = 1; this.errorlabel.Text = "0"; // // label12 // this.label12.ForeColor = System.Drawing.SystemColors.ControlDark; this.label12.Location = new System.Drawing.Point(191, 16); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(340, 27); this.label12.TabIndex = 0; this.label12.Text = "Every tiny RX jitter will appear here. \r\nNo need to worry if the number stays bel" + "ow 50."; // // static47 // this.static47.Location = new System.Drawing.Point(7, 20); this.static47.Name = "static47"; this.static47.Size = new System.Drawing.Size(125, 23); this.static47.TabIndex = 0; this.static47.Text = "Nr. of receiver problems:"; // // groupBox7 // this.groupBox7.Controls.Add(this.voltagelevel); this.groupBox7.Controls.Add(this.progressBar1); this.groupBox7.Controls.Add(this.textBoxv); this.groupBox7.Controls.Add(this.labelv); this.groupBox7.Controls.Add(this.static44); this.groupBox7.Controls.Add(this.static41); this.groupBox7.Controls.Add(this.static43); this.groupBox7.Controls.Add(this.static42); this.groupBox7.Location = new System.Drawing.Point(15, 18); this.groupBox7.Name = "groupBox7"; this.groupBox7.Size = new System.Drawing.Size(531, 82); this.groupBox7.TabIndex = 0; this.groupBox7.TabStop = false; this.groupBox7.Text = "Per-cell Voltage Warning"; // // voltagelevel // this.voltagelevel.Location = new System.Drawing.Point(282, 52); this.voltagelevel.Name = "voltagelevel"; this.voltagelevel.Size = new System.Drawing.Size(79, 20); this.voltagelevel.TabIndex = 18; this.voltagelevel.Text = "= 3.3 Volts"; this.toolTip1.SetToolTip(this.voltagelevel, "Voltage in real units"); // // progressBar1 // this.progressBar1.Location = new System.Drawing.Point(367, 49); this.progressBar1.Maximum = 44; this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(102, 20); this.progressBar1.Step = 1; this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar1.TabIndex = 17; this.toolTip1.SetToolTip(this.progressBar1, "Voltage in real units"); // // textBoxv // this.textBoxv.Location = new System.Drawing.Point(226, 49); this.textBoxv.Name = "textBoxv"; this.textBoxv.Size = new System.Drawing.Size(50, 20); this.textBoxv.TabIndex = 16; this.toolTip1.SetToolTip(this.textBoxv, "LEDs will start blinking very fast when the voltage drops below a threshold"); this.textBoxv.TextChanged += new System.EventHandler(this.TextBoxvTextChanged); // // labelv // this.labelv.Location = new System.Drawing.Point(152, 52); this.labelv.Name = "labelv"; this.labelv.Size = new System.Drawing.Size(50, 20); this.labelv.TabIndex = 15; this.labelv.Text = "---"; // // static44 // this.static44.Location = new System.Drawing.Point(17, 52); this.static44.Name = "static44"; this.static44.Size = new System.Drawing.Size(115, 23); this.static44.TabIndex = 14; this.static44.Text = "Voltage warning [33]"; // // static41 // this.static41.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static41.Location = new System.Drawing.Point(17, 25); this.static41.Name = "static41"; this.static41.Size = new System.Drawing.Size(115, 23); this.static41.TabIndex = 12; this.static41.Text = "Parameter [default]"; // // static43 // this.static43.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static43.Location = new System.Drawing.Point(226, 25); this.static43.Name = "static43"; this.static43.Size = new System.Drawing.Size(82, 23); this.static43.TabIndex = 13; this.static43.Text = "New values"; // // static42 // this.static42.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.static42.Location = new System.Drawing.Point(138, 25); this.static42.Name = "static42"; this.static42.Size = new System.Drawing.Size(82, 23); this.static42.TabIndex = 11; this.static42.Text = "Values in µC"; // // tabPage4 // this.tabPage4.Controls.Add(this.static99); this.tabPage4.Controls.Add(this.Battery); this.tabPage4.Controls.Add(this.groupBox12); this.tabPage4.Controls.Add(this.groupBox11); this.tabPage4.Controls.Add(this.groupBox10); this.tabPage4.Controls.Add(this.groupBox9); this.tabPage4.Location = new System.Drawing.Point(4, 22); this.tabPage4.Name = "tabPage4"; this.tabPage4.Padding = new System.Windows.Forms.Padding(3); this.tabPage4.Size = new System.Drawing.Size(649, 366); this.tabPage4.TabIndex = 5; this.tabPage4.Text = "Realtime data"; this.tabPage4.UseVisualStyleBackColor = true; // // static99 // this.static99.Location = new System.Drawing.Point(56, 7); this.static99.Name = "static99"; this.static99.Size = new System.Drawing.Size(468, 47); this.static99.TabIndex = 21; this.static99.Text = resources.GetString("static99.Text"); // // Battery // this.Battery.Controls.Add(this.labelvolts); this.Battery.Controls.Add(this.pbVoltage); this.Battery.Location = new System.Drawing.Point(435, 216); this.Battery.Name = "Battery"; this.Battery.Size = new System.Drawing.Size(134, 146); this.Battery.TabIndex = 20; this.Battery.TabStop = false; this.Battery.Text = "Battery voltage"; // // labelvolts // this.labelvolts.Location = new System.Drawing.Point(6, 84); this.labelvolts.Name = "labelvolts"; this.labelvolts.Size = new System.Drawing.Size(111, 23); this.labelvolts.TabIndex = 18; this.labelvolts.Text = "---"; // // pbVoltage // this.pbVoltage.Location = new System.Drawing.Point(6, 58); this.pbVoltage.Maximum = 255; this.pbVoltage.Name = "pbVoltage"; this.pbVoltage.Size = new System.Drawing.Size(122, 23); this.pbVoltage.Step = 1; this.pbVoltage.TabIndex = 16; // // groupBox12 // this.groupBox12.Controls.Add(this.TrackBar7); this.groupBox12.Controls.Add(this.static58); this.groupBox12.Controls.Add(this.static55); this.groupBox12.Controls.Add(this.static61); this.groupBox12.Location = new System.Drawing.Point(435, 57); this.groupBox12.Name = "groupBox12"; this.groupBox12.Size = new System.Drawing.Size(134, 153); this.groupBox12.TabIndex = 19; this.groupBox12.TabStop = false; this.groupBox12.Text = "Yaw"; // // TrackBar7 // this.TrackBar7.BackColor = System.Drawing.Color.Transparent; this.TrackBar7.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar7.IndentHeight = 1; this.TrackBar7.IndentWidth = 1; this.TrackBar7.Location = new System.Drawing.Point(16, 66); this.TrackBar7.Maximum = 255; this.TrackBar7.Minimum = 0; this.TrackBar7.Name = "TrackBar7"; this.TrackBar7.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar7.Size = new System.Drawing.Size(100, 19); this.TrackBar7.TabIndex = 23; this.TrackBar7.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar7.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar7.TickFrequency = 128; this.TrackBar7.TickHeight = 1; this.TrackBar7.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar7.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar7.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar7.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar7.TrackLineHeight = 9; this.TrackBar7.Value = 126; // // static58 // this.static58.Location = new System.Drawing.Point(20, 38); this.static58.Name = "static58"; this.static58.Size = new System.Drawing.Size(55, 15); this.static58.TabIndex = 11; this.static58.Text = "left"; // // static55 // this.static55.Location = new System.Drawing.Point(20, 92); this.static55.Name = "static55"; this.static55.Size = new System.Drawing.Size(93, 20); this.static55.TabIndex = 8; this.static55.Text = "Gyro yaw velocity"; // // static61 // this.static61.Location = new System.Drawing.Point(85, 38); this.static61.Name = "static61"; this.static61.Size = new System.Drawing.Size(36, 15); this.static61.TabIndex = 11; this.static61.Text = "right"; // // groupBox11 // this.groupBox11.Controls.Add(this.TrackBar12); this.groupBox11.Controls.Add(this.TrackBar11); this.groupBox11.Controls.Add(this.TrackBar10); this.groupBox11.Controls.Add(this.panel2); this.groupBox11.Controls.Add(this.panel4); this.groupBox11.Controls.Add(this.panelRollCenter); this.groupBox11.Controls.Add(this.label15); this.groupBox11.Controls.Add(this.panel1); this.groupBox11.Controls.Add(this.label10); this.groupBox11.Controls.Add(this.label9); this.groupBox11.Controls.Add(this.label8); this.groupBox11.Controls.Add(this.label6); this.groupBox11.Controls.Add(this.label7); this.groupBox11.Controls.Add(this.label5); this.groupBox11.Controls.Add(this.label4); this.groupBox11.Controls.Add(this.label3); this.groupBox11.Controls.Add(this.label2); this.groupBox11.Controls.Add(this.label1); this.groupBox11.Controls.Add(this.TrackBar9); this.groupBox11.Controls.Add(this.TrackBar8); this.groupBox11.Location = new System.Drawing.Point(56, 216); this.groupBox11.Name = "groupBox11"; this.groupBox11.Size = new System.Drawing.Size(350, 146); this.groupBox11.TabIndex = 17; this.groupBox11.TabStop = false; this.groupBox11.Text = "Transmitter"; // // TrackBar12 // this.TrackBar12.BackColor = System.Drawing.Color.Transparent; this.TrackBar12.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar12.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar12.IndentHeight = 1; this.TrackBar12.IndentWidth = 1; this.TrackBar12.Location = new System.Drawing.Point(285, 39); this.TrackBar12.Maximum = 255; this.TrackBar12.Minimum = 0; this.TrackBar12.Name = "TrackBar12"; this.TrackBar12.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar12.Size = new System.Drawing.Size(19, 80); this.TrackBar12.TabIndex = 28; this.TrackBar12.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar12.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar12.TickFrequency = 128; this.TrackBar12.TickHeight = 1; this.TrackBar12.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar12.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar12.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar12.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar12.TrackLineHeight = 9; this.TrackBar12.Value = 0; // // TrackBar11 // this.TrackBar11.BackColor = System.Drawing.Color.Transparent; this.TrackBar11.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar11.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar11.IndentHeight = 1; this.TrackBar11.IndentWidth = 1; this.TrackBar11.Location = new System.Drawing.Point(96, 39); this.TrackBar11.Maximum = 255; this.TrackBar11.Minimum = 0; this.TrackBar11.Name = "TrackBar11"; this.TrackBar11.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar11.Size = new System.Drawing.Size(19, 80); this.TrackBar11.TabIndex = 27; this.TrackBar11.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar11.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar11.TickFrequency = 128; this.TrackBar11.TickHeight = 1; this.TrackBar11.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar11.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar11.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar11.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar11.TrackLineHeight = 9; this.TrackBar11.Value = 126; // // TrackBar10 // this.TrackBar10.BackColor = System.Drawing.Color.Transparent; this.TrackBar10.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar10.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar10.IndentHeight = 1; this.TrackBar10.IndentWidth = 1; this.TrackBar10.Location = new System.Drawing.Point(22, 37); this.TrackBar10.Maximum = 255; this.TrackBar10.Minimum = 0; this.TrackBar10.Name = "TrackBar10"; this.TrackBar10.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar10.Size = new System.Drawing.Size(19, 80); this.TrackBar10.TabIndex = 26; this.TrackBar10.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar10.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar10.TickFrequency = 128; this.TrackBar10.TickHeight = 1; this.TrackBar10.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar10.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar10.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar10.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar10.TrackLineHeight = 9; this.TrackBar10.Value = 0; // // panel2 // this.panel2.BackColor = System.Drawing.Color.Green; this.panel2.Location = new System.Drawing.Point(43, 105); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(10, 10); this.panel2.TabIndex = 23; // // panel4 // this.panel4.BackColor = System.Drawing.Color.Green; this.panel4.Location = new System.Drawing.Point(192, 92); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(10, 10); this.panel4.TabIndex = 23; // // panelRollCenter // this.panelRollCenter.BackColor = System.Drawing.Color.Green; this.panelRollCenter.Location = new System.Drawing.Point(192, 56); this.panelRollCenter.Name = "panelRollCenter"; this.panelRollCenter.Size = new System.Drawing.Size(10, 10); this.panelRollCenter.TabIndex = 23; // // label15 // this.label15.Location = new System.Drawing.Point(277, 21); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(40, 18); this.label15.TabIndex = 24; this.label15.Text = "Hover"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.Green; this.panel1.Location = new System.Drawing.Point(85, 74); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(10, 10); this.panel1.TabIndex = 22; // // label10 // this.label10.Location = new System.Drawing.Point(274, 123); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(50, 15); this.label10.TabIndex = 12; this.label10.Text = "Mot. off"; // // label9 // this.label9.Location = new System.Drawing.Point(306, 72); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(32, 18); this.label9.TabIndex = 12; this.label9.Text = "-Acro"; // // label8 // this.label8.Location = new System.Drawing.Point(200, 123); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(55, 15); this.label8.TabIndex = 11; this.label8.Text = "Yaw right"; // // label6 // this.label6.Location = new System.Drawing.Point(203, 21); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(50, 15); this.label6.TabIndex = 11; this.label6.Text = "Roll right"; // // label7 // this.label7.Location = new System.Drawing.Point(144, 123); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(50, 15); this.label7.TabIndex = 10; this.label7.Text = "Yaw left"; // // label5 // this.label5.Location = new System.Drawing.Point(144, 21); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(50, 15); this.label5.TabIndex = 10; this.label5.Text = "Roll left"; // // label4 // this.label4.Location = new System.Drawing.Point(60, 123); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 15); this.label4.TabIndex = 9; this.label4.Text = "Nick backward"; // // label3 // this.label3.Location = new System.Drawing.Point(66, 21); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(70, 15); this.label3.TabIndex = 9; this.label3.Text = "Nick forward"; // // label2 // this.label2.Location = new System.Drawing.Point(18, 123); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(34, 15); this.label2.TabIndex = 8; this.label2.Text = "Idle"; // // label1 // this.label1.Location = new System.Drawing.Point(4, 21); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(65, 15); this.label1.TabIndex = 7; this.label1.Text = "Full throttle"; // // TrackBar9 // this.TrackBar9.BackColor = System.Drawing.Color.Transparent; this.TrackBar9.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar9.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar9.IndentHeight = 1; this.TrackBar9.IndentWidth = 1; this.TrackBar9.Location = new System.Drawing.Point(146, 101); this.TrackBar9.Maximum = 255; this.TrackBar9.Minimum = 0; this.TrackBar9.Name = "TrackBar9"; this.TrackBar9.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar9.Size = new System.Drawing.Size(100, 19); this.TrackBar9.TabIndex = 25; this.TrackBar9.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar9.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar9.TickFrequency = 128; this.TrackBar9.TickHeight = 1; this.TrackBar9.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar9.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar9.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar9.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar9.TrackLineHeight = 9; this.TrackBar9.Value = 126; // // TrackBar8 // this.TrackBar8.BackColor = System.Drawing.Color.Transparent; this.TrackBar8.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar8.IndentHeight = 1; this.TrackBar8.IndentWidth = 1; this.TrackBar8.Location = new System.Drawing.Point(146, 38); this.TrackBar8.Maximum = 255; this.TrackBar8.Minimum = 0; this.TrackBar8.Name = "TrackBar8"; this.TrackBar8.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar8.Size = new System.Drawing.Size(100, 19); this.TrackBar8.TabIndex = 25; this.TrackBar8.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar8.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar8.TickFrequency = 128; this.TrackBar8.TickHeight = 1; this.TrackBar8.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar8.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar8.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar8.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar8.TrackLineHeight = 9; this.TrackBar8.Value = 126; // // groupBox10 // this.groupBox10.Controls.Add(this.TrackBar6); this.groupBox10.Controls.Add(this.TrackBar5); this.groupBox10.Controls.Add(this.TrackBar4); this.groupBox10.Controls.Add(this.static54); this.groupBox10.Controls.Add(this.static53); this.groupBox10.Controls.Add(this.staic59); this.groupBox10.Controls.Add(this.static60); this.groupBox10.Controls.Add(this.static52); this.groupBox10.Location = new System.Drawing.Point(271, 57); this.groupBox10.Name = "groupBox10"; this.groupBox10.Size = new System.Drawing.Size(135, 153); this.groupBox10.TabIndex = 10; this.groupBox10.TabStop = false; this.groupBox10.Text = "Nick"; // // TrackBar6 // this.TrackBar6.BackColor = System.Drawing.Color.Transparent; this.TrackBar6.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar6.IndentHeight = 1; this.TrackBar6.IndentWidth = 1; this.TrackBar6.Location = new System.Drawing.Point(54, 19); this.TrackBar6.Maximum = 255; this.TrackBar6.Minimum = 0; this.TrackBar6.Name = "TrackBar6"; this.TrackBar6.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar6.Size = new System.Drawing.Size(19, 100); this.TrackBar6.TabIndex = 26; this.TrackBar6.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar6.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar6.TickFrequency = 128; this.TrackBar6.TickHeight = 1; this.TrackBar6.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar6.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar6.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar6.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar6.TrackLineHeight = 9; this.TrackBar6.Value = 126; // // TrackBar5 // this.TrackBar5.BackColor = System.Drawing.Color.Transparent; this.TrackBar5.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar5.IndentHeight = 1; this.TrackBar5.IndentWidth = 1; this.TrackBar5.Location = new System.Drawing.Point(30, 19); this.TrackBar5.Maximum = 255; this.TrackBar5.Minimum = 0; this.TrackBar5.Name = "TrackBar5"; this.TrackBar5.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar5.Size = new System.Drawing.Size(19, 100); this.TrackBar5.TabIndex = 25; this.TrackBar5.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar5.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar5.TickFrequency = 128; this.TrackBar5.TickHeight = 1; this.TrackBar5.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar5.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar5.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar5.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar5.TrackLineHeight = 9; this.TrackBar5.Value = 126; // // TrackBar4 // this.TrackBar4.BackColor = System.Drawing.Color.Transparent; this.TrackBar4.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar4.IndentHeight = 1; this.TrackBar4.IndentWidth = 1; this.TrackBar4.Location = new System.Drawing.Point(6, 19); this.TrackBar4.Maximum = 255; this.TrackBar4.Minimum = 0; this.TrackBar4.Name = "TrackBar4"; this.TrackBar4.Orientation = System.Windows.Forms.Orientation.Vertical; this.TrackBar4.Size = new System.Drawing.Size(19, 100); this.TrackBar4.TabIndex = 24; this.TrackBar4.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar4.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar4.TickFrequency = 128; this.TrackBar4.TickHeight = 1; this.TrackBar4.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar4.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar4.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar4.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar4.TrackLineHeight = 9; this.TrackBar4.Value = 126; // // static54 // this.static54.Location = new System.Drawing.Point(58, 123); this.static54.Name = "static54"; this.static54.Size = new System.Drawing.Size(41, 20); this.static54.TabIndex = 8; this.static54.Text = "Acc(a)"; // // static53 // this.static53.Location = new System.Drawing.Point(29, 123); this.static53.Name = "static53"; this.static53.Size = new System.Drawing.Size(36, 20); this.static53.TabIndex = 8; this.static53.Text = "Gy(a)"; // // staic59 // this.staic59.Location = new System.Drawing.Point(74, 99); this.staic59.Name = "staic59"; this.staic59.Size = new System.Drawing.Size(55, 15); this.staic59.TabIndex = 11; this.staic59.Text = "backward"; // // static60 // this.static60.Location = new System.Drawing.Point(74, 23); this.static60.Name = "static60"; this.static60.Size = new System.Drawing.Size(55, 15); this.static60.TabIndex = 11; this.static60.Text = "forward"; // // static52 // this.static52.Location = new System.Drawing.Point(0, 123); this.static52.Name = "static52"; this.static52.Size = new System.Drawing.Size(34, 23); this.static52.TabIndex = 8; this.static52.Text = "Gy(v)"; // // groupBox9 // this.groupBox9.Controls.Add(this.TrackBar3); this.groupBox9.Controls.Add(this.TrackBar2); this.groupBox9.Controls.Add(this.static51); this.groupBox9.Controls.Add(this.TrackBar1); this.groupBox9.Controls.Add(this.static49); this.groupBox9.Controls.Add(this.static57); this.groupBox9.Controls.Add(this.static50); this.groupBox9.Controls.Add(this.static56); this.groupBox9.Location = new System.Drawing.Point(56, 57); this.groupBox9.Name = "groupBox9"; this.groupBox9.Size = new System.Drawing.Size(187, 153); this.groupBox9.TabIndex = 9; this.groupBox9.TabStop = false; this.groupBox9.Text = "Roll"; // // TrackBar3 // this.TrackBar3.BackColor = System.Drawing.Color.Transparent; this.TrackBar3.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar3.IndentHeight = 1; this.TrackBar3.IndentWidth = 1; this.TrackBar3.Location = new System.Drawing.Point(6, 93); this.TrackBar3.Maximum = 255; this.TrackBar3.Minimum = 0; this.TrackBar3.Name = "TrackBar3"; this.TrackBar3.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar3.Size = new System.Drawing.Size(100, 19); this.TrackBar3.TabIndex = 23; this.TrackBar3.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar3.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar3.TickFrequency = 128; this.TrackBar3.TickHeight = 1; this.TrackBar3.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar3.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar3.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar3.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar3.TrackLineHeight = 9; this.TrackBar3.Value = 126; // // TrackBar2 // this.TrackBar2.BackColor = System.Drawing.Color.Transparent; this.TrackBar2.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar2.IndentHeight = 1; this.TrackBar2.IndentWidth = 1; this.TrackBar2.Location = new System.Drawing.Point(6, 66); this.TrackBar2.Maximum = 255; this.TrackBar2.Minimum = 0; this.TrackBar2.Name = "TrackBar2"; this.TrackBar2.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar2.Size = new System.Drawing.Size(100, 19); this.TrackBar2.TabIndex = 22; this.TrackBar2.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar2.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar2.TickFrequency = 128; this.TrackBar2.TickHeight = 1; this.TrackBar2.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar2.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar2.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar2.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar2.TrackLineHeight = 9; this.TrackBar2.Value = 126; // // static51 // this.static51.Location = new System.Drawing.Point(112, 96); this.static51.Name = "static51"; this.static51.Size = new System.Drawing.Size(68, 20); this.static51.TabIndex = 8; this.static51.Text = "Acc angle"; // // TrackBar1 // this.TrackBar1.BackColor = System.Drawing.Color.Transparent; this.TrackBar1.BorderColor = System.Drawing.SystemColors.ActiveBorder; this.TrackBar1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TrackBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(123)))), ((int)(((byte)(125)))), ((int)(((byte)(123))))); this.TrackBar1.IndentHeight = 1; this.TrackBar1.IndentWidth = 1; this.TrackBar1.Location = new System.Drawing.Point(6, 39); this.TrackBar1.Maximum = 255; this.TrackBar1.Minimum = 0; this.TrackBar1.Name = "TrackBar1"; this.TrackBar1.Orientation = System.Windows.Forms.Orientation.Horizontal; this.TrackBar1.Size = new System.Drawing.Size(100, 19); this.TrackBar1.TabIndex = 22; this.TrackBar1.TextTickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar1.TickColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(146)))), ((int)(((byte)(148))))); this.TrackBar1.TickFrequency = 128; this.TrackBar1.TickHeight = 1; this.TrackBar1.TickStyle = System.Windows.Forms.TickStyle.Both; this.TrackBar1.TrackerColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.TrackBar1.TrackerSize = new System.Drawing.Size(13, 13); this.TrackBar1.TrackLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(93)))), ((int)(((byte)(90))))); this.TrackBar1.TrackLineHeight = 9; this.TrackBar1.Value = 126; // // static49 // this.static49.Location = new System.Drawing.Point(112, 42); this.static49.Name = "static49"; this.static49.Size = new System.Drawing.Size(68, 20); this.static49.TabIndex = 8; this.static49.Text = "Gyro velocity"; // // static57 // this.static57.Location = new System.Drawing.Point(79, 21); this.static57.Name = "static57"; this.static57.Size = new System.Drawing.Size(55, 15); this.static57.TabIndex = 11; this.static57.Text = "right"; // // static50 // this.static50.Location = new System.Drawing.Point(112, 69); this.static50.Name = "static50"; this.static50.Size = new System.Drawing.Size(68, 20); this.static50.TabIndex = 8; this.static50.Text = "Gyro angle"; // // static56 // this.static56.Location = new System.Drawing.Point(6, 21); this.static56.Name = "static56"; this.static56.Size = new System.Drawing.Size(55, 15); this.static56.TabIndex = 11; this.static56.Text = "left"; // // tabPage6 // this.tabPage6.Controls.Add(this.groupBox13); this.tabPage6.Controls.Add(this.avrdudeout); this.tabPage6.Location = new System.Drawing.Point(4, 22); this.tabPage6.Name = "tabPage6"; this.tabPage6.Size = new System.Drawing.Size(649, 366); this.tabPage6.TabIndex = 6; this.tabPage6.Text = "Firmware update"; this.tabPage6.UseVisualStyleBackColor = true; // // groupBox13 // this.groupBox13.Controls.Add(this.label13); this.groupBox13.Controls.Add(this.flash); this.groupBox13.Controls.Add(this.progressBar4); this.groupBox13.Controls.Add(this.showavrout); this.groupBox13.Location = new System.Drawing.Point(12, 30); this.groupBox13.Name = "groupBox13"; this.groupBox13.Size = new System.Drawing.Size(623, 107); this.groupBox13.TabIndex = 4; this.groupBox13.TabStop = false; this.groupBox13.Text = "Update firmware"; // // label13 // this.label13.Location = new System.Drawing.Point(491, 36); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(100, 15); this.label13.TabIndex = 4; this.label13.Text = "---"; this.label13.TextAlign = System.Drawing.ContentAlignment.BottomRight; // // flash // this.flash.Location = new System.Drawing.Point(26, 32); this.flash.Name = "flash"; this.flash.Size = new System.Drawing.Size(137, 23); this.flash.TabIndex = 0; this.flash.Text = "Flash new firmware"; this.flash.UseVisualStyleBackColor = true; this.flash.Click += new System.EventHandler(this.FlashClick); // // progressBar4 // this.progressBar4.Location = new System.Drawing.Point(26, 61); this.progressBar4.Maximum = 5; this.progressBar4.Name = "progressBar4"; this.progressBar4.Size = new System.Drawing.Size(565, 23); this.progressBar4.Step = 1; this.progressBar4.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.progressBar4.TabIndex = 2; // // showavrout // this.showavrout.Location = new System.Drawing.Point(169, 32); this.showavrout.Name = "showavrout"; this.showavrout.Size = new System.Drawing.Size(104, 24); this.showavrout.TabIndex = 3; this.showavrout.Text = "Show output"; this.showavrout.UseVisualStyleBackColor = true; this.showavrout.CheckedChanged += new System.EventHandler(this.ShowavroutCheckedChanged); // // avrdudeout // this.avrdudeout.Location = new System.Drawing.Point(12, 161); this.avrdudeout.Multiline = true; this.avrdudeout.Name = "avrdudeout"; this.avrdudeout.ReadOnly = true; this.avrdudeout.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.avrdudeout.Size = new System.Drawing.Size(623, 202); this.avrdudeout.TabIndex = 1; this.avrdudeout.Visible = false; // // serialPort // this.serialPort.BaudRate = 38400; this.serialPort.PortName = "COM5"; this.serialPort.ReadTimeout = 1000; // // timer1 // this.timer1.Interval = 50; this.timer1.Tick += new System.EventHandler(this.Timer1Tick); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.Transparent; this.pictureBox1.ErrorImage = null; this.pictureBox1.InitialImage = null; this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(681, 50); this.pictureBox1.TabIndex = 6; this.pictureBox1.TabStop = false; // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStatusLabel}); this.statusStrip1.Location = new System.Drawing.Point(0, 480); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(681, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 7; this.statusStrip1.Text = "statusStrip1"; // // toolStatusLabel // this.toolStatusLabel.Name = "toolStatusLabel"; this.toolStatusLabel.Size = new System.Drawing.Size(77, 17); this.toolStatusLabel.Text = "Not connected"; // // timersens // this.timersens.Interval = 75; this.timersens.Tick += new System.EventHandler(this.TimersensTick); // // openFileDialog1 // this.openFileDialog1.DefaultExt = "shr"; this.openFileDialog1.Filter = "Shrediquette configurations|*.shr"; this.openFileDialog1.Title = "Load settings from file and transfer to µC"; // // saveFileDialog1 // this.saveFileDialog1.DefaultExt = "shr"; this.saveFileDialog1.Filter = "Shrediquette configurations|*.shr"; this.saveFileDialog1.Title = "Save Shrediquette configuration file"; // // pingshrediquette // this.pingshrediquette.Interval = 550; this.pingshrediquette.Tick += new System.EventHandler(this.PingshrediquetteTick); // // label11 // this.label11.Font = new System.Drawing.Font("Courier New", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label11.Location = new System.Drawing.Point(536, 53); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(96, 26); this.label11.TabIndex = 8; this.label11.Text = "v 1.2"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // startupdelay // this.startupdelay.Interval = 500; this.startupdelay.Tick += new System.EventHandler(this.startupdelayTick); // // linkLabel2 // this.linkLabel2.Location = new System.Drawing.Point(474, 454); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new System.Drawing.Size(195, 25); this.linkLabel2.TabIndex = 9; this.linkLabel2.TabStop = true; this.linkLabel2.Text = "http://shrediquette.blogspot.com"; this.linkLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.linkLabel2.VisitedLinkColor = System.Drawing.Color.Navy; this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel2LinkClicked); // // label17 // this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label17.Location = new System.Drawing.Point(12, 456); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(432, 23); this.label17.TabIndex = 10; this.label17.Text = "Any change has to be written to the tricopter manually (click \"Write all paramete" + "rs to µC\")"; this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbch1 // this.lbch1.AutoSize = true; this.lbch1.Location = new System.Drawing.Point(10, 160); this.lbch1.Name = "lbch1"; this.lbch1.Size = new System.Drawing.Size(25, 13); this.lbch1.TabIndex = 41; this.lbch1.Text = "000"; this.lbch1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch2 // this.lbch2.AutoSize = true; this.lbch2.Location = new System.Drawing.Point(35, 160); this.lbch2.Name = "lbch2"; this.lbch2.Size = new System.Drawing.Size(25, 13); this.lbch2.TabIndex = 42; this.lbch2.Text = "000"; this.lbch2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch3 // this.lbch3.AutoSize = true; this.lbch3.Location = new System.Drawing.Point(60, 160); this.lbch3.Name = "lbch3"; this.lbch3.Size = new System.Drawing.Size(25, 13); this.lbch3.TabIndex = 43; this.lbch3.Text = "000"; this.lbch3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch4 // this.lbch4.AutoSize = true; this.lbch4.Location = new System.Drawing.Point(85, 160); this.lbch4.Name = "lbch4"; this.lbch4.Size = new System.Drawing.Size(25, 13); this.lbch4.TabIndex = 44; this.lbch4.Text = "000"; this.lbch4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch5 // this.lbch5.AutoSize = true; this.lbch5.Location = new System.Drawing.Point(110, 160); this.lbch5.Name = "lbch5"; this.lbch5.Size = new System.Drawing.Size(25, 13); this.lbch5.TabIndex = 45; this.lbch5.Text = "000"; this.lbch5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch6 // this.lbch6.AutoSize = true; this.lbch6.Location = new System.Drawing.Point(135, 160); this.lbch6.Name = "lbch6"; this.lbch6.Size = new System.Drawing.Size(25, 13); this.lbch6.TabIndex = 46; this.lbch6.Text = "000"; this.lbch6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch7 // this.lbch7.AutoSize = true; this.lbch7.Location = new System.Drawing.Point(160, 160); this.lbch7.Name = "lbch7"; this.lbch7.Size = new System.Drawing.Size(25, 13); this.lbch7.TabIndex = 47; this.lbch7.Text = "000"; this.lbch7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lbch8 // this.lbch8.AutoSize = true; this.lbch8.Location = new System.Drawing.Point(185, 160); this.lbch8.Name = "lbch8"; this.lbch8.Size = new System.Drawing.Size(25, 13); this.lbch8.TabIndex = 48; this.lbch8.Text = "000"; this.lbch8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label42 // label42.Location = new System.Drawing.Point(10, 186); label42.Name = "label42"; label42.Size = new System.Drawing.Size(200, 58); label42.TabIndex = 49; label42.Text = "Use trim function on your transmitter to make sure all channels that are centered" + " show as \"0\" for their value, as well as reverse any channels if needed."; // // emergmask // this.emergmask.Location = new System.Drawing.Point(226, 100); this.emergmask.Name = "emergmask"; this.emergmask.Size = new System.Drawing.Size(175, 20); this.emergmask.TabIndex = 21; this.emergmask.Value = ((byte)(0)); // // led2mask // this.led2mask.Location = new System.Drawing.Point(226, 74); this.led2mask.Name = "led2mask"; this.led2mask.Size = new System.Drawing.Size(175, 20); this.led2mask.TabIndex = 1; this.led2mask.Value = ((byte)(0)); // // led1mask // this.led1mask.Location = new System.Drawing.Point(226, 48); this.led1mask.Name = "led1mask"; this.led1mask.Size = new System.Drawing.Size(175, 20); this.led1mask.TabIndex = 0; this.led1mask.Value = ((byte)(0)); this.led1mask.OnChange += new TriGUI_v11.BitMask.Changed(this.OnLedMaskChange); // // MainForm // this.ClientSize = new System.Drawing.Size(681, 502); this.Controls.Add(this.label17); this.Controls.Add(this.linkLabel2); this.Controls.Add(this.label11); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.tabControl); this.Controls.Add(this.pictureBox1); this.MaximizeBox = false; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "TriGUI v1.2 by William Thielicke ([email protected])"; this.Shown += new System.EventHandler(this.FormShown); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.schliessen); this.tabControl.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.RxD.ResumeLayout(false); this.RxD.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.tabPage2.ResumeLayout(false); this.groupBox14.ResumeLayout(false); this.groupBox14.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.tabPage3.ResumeLayout(false); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar15)).EndInit(); this.groupBox4.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar14)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar13)).EndInit(); this.tabPage5.ResumeLayout(false); this.groupBox15.ResumeLayout(false); this.groupBox15.PerformLayout(); this.groupBox8.ResumeLayout(false); this.groupBox7.ResumeLayout(false); this.groupBox7.PerformLayout(); this.tabPage4.ResumeLayout(false); this.Battery.ResumeLayout(false); this.groupBox12.ResumeLayout(false); this.groupBox11.ResumeLayout(false); this.groupBox10.ResumeLayout(false); this.groupBox9.ResumeLayout(false); this.tabPage6.ResumeLayout(false); this.tabPage6.PerformLayout(); this.groupBox13.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public static Bitmap embedFileIntoImage(Bitmap bitmapImage, List<byte[]> filedata, int capacity = -1, string password = "", ToolStripStatusLabel toolStripStatusLabel = null, bool stealthy = true, Stealthiness stealthValue = Stealthiness.Maximum) { try { int imagewidth = bitmapImage.Width - 1; int imageheight = bitmapImage.Height - 1; byte[] filebytes = filedata[1]; string filehash = ""; writeOut(toolStripStatusLabel, "Encoding file into image - Please wait..."); // Calculate pre-encoded SHA1 Hash of File Data using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) filehash = Convert.ToBase64String(sha1.ComputeHash(filebytes)); // Encrypt File Data (bytes) if (!String.IsNullOrEmpty(password)) filebytes = encryptData(filebytes, password); // Encrypt Filename (bytes) byte[] filenamebytes = filedata[0]; if (!String.IsNullOrEmpty(password)) filenamebytes = encryptData(filenamebytes, password); // Convert Filename to binary string filename = string.Empty; foreach (byte b in filenamebytes) filename += Convert.ToString(b, 2).PadLeft(8, '0'); // Convert length of filename (in bytes) into binary string filenamelength = Convert.ToString(filename.Length / 8, 2).PadLeft(8, '0'); // Convert length of File Data (in bytes) into binary string filelength = Convert.ToString(filebytes.Length, 2).PadLeft(24, '0'); // Build binary string StringBuilder sfinal = new StringBuilder(); sfinal.Append(filenamelength); sfinal.Append(filelength); sfinal.Append(filename); foreach (byte b in filebytes) sfinal.Append(Convert.ToString(b, 2).PadLeft(8, '0')); sfinal.Append("000");//buffer // Check binary data will fit int msgLen = (sfinal.Length + 16) / 8; int pixCnt = capacity; if(capacity < 0) pixCnt = (int)Math.Floor((double)((GetImageCapacity(bitmapImage, stealthy, stealthValue) * 3) / 8)); // Calculate bit distribution throughout image (jump value) //if(pixCnt) int jmp = 0; if (pixCnt > msgLen) jmp = (int)Math.Floor((double)(pixCnt / msgLen)); if (jmp > 500) jmp = 500; if (jmp == 0) jmp = 1; string jump = Convert.ToString(jmp, 2).PadLeft(9, '0'); // Insert 'jump' value into first three pixels for (int x = 0; x < 9; x+=3) { Color pixel = bitmapImage.GetPixel(x, 0); string r = Convert.ToString(pixel.R, 2).PadLeft(8, '0').Substring(0, 7) + jump[x]; string g = Convert.ToString(pixel.G, 2).PadLeft(8, '0').Substring(0, 7) + jump[x+1]; string b = Convert.ToString(pixel.B, 2).PadLeft(8, '0').Substring(0, 7) + jump[x+2]; bitmapImage.SetPixel(x, 0, Color.FromArgb(Convert.ToInt32(r, 2), Convert.ToInt32(g, 2), Convert.ToInt32(b, 2))); } int streamPos = 0; int pixelPos = 0; // Insert all binary data into image if (pixCnt > msgLen) { for (int y = 1; y < imageheight - 1; y++) { for (int x = 1; x < imagewidth - 1; x ++) { if (streamPos < sfinal.Length - 3) { if (IsValidPixel(bitmapImage, x, y, stealthy, stealthValue)) { if (pixelPos % jmp == 0) { Color pixel = bitmapImage.GetPixel(x, y); string r = Convert.ToString(pixel.R, 2).PadLeft(8, '0').Substring(0, 7) + sfinal[streamPos]; string g = Convert.ToString(pixel.G, 2).PadLeft(8, '0').Substring(0, 7) + sfinal[streamPos + 1]; string b = Convert.ToString(pixel.B, 2).PadLeft(8, '0').Substring(0, 7) + sfinal[streamPos + 2]; bitmapImage.SetPixel(x, y, Color.FromArgb(Convert.ToInt32(r, 2), Convert.ToInt32(g, 2), Convert.ToInt32(b, 2))); streamPos += 3; } pixelPos++; } } } Application.DoEvents(); } writeOut(toolStripStatusLabel, "Encoding Complete."); } else { writeOut(toolStripStatusLabel, "Image is too small to hold the specified file!"); throw new SteganoException("Image is too small to hold the specified file!"); } writeOut(toolStripStatusLabel, "Checking integrity of embedded file - Please wait..."); // Extract data from image (and decrypt if necessary) List<byte[]> checkdata = extractFileFromImage(bitmapImage, password, toolStripStatusLabel, stealthy, stealthValue); string checkhash = ""; // Calculate SHA1 hash of extracted data if (checkdata != null && checkdata.Count == 2) using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) checkhash = Convert.ToBase64String(sha1.ComputeHash(checkdata[1])); // Check extracted SHA1 hash with pre-encoded SHA1 hash if (checkhash == filehash && checkhash != "" && filehash != "") { writeOut(toolStripStatusLabel, "Integrity check PASSED."); return bitmapImage; } else { writeOut(toolStripStatusLabel, "Integrity check FAILED!"); throw new SteganoException("Failed integrity check!"); } } catch (SteganoException ex) { throw new Exception(ex.Message); } catch (Exception ex) { throw new SteganoException("Stegano: " + ex.Message); } }
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 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; } } }
private void InitializeComponent() { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmViewList)); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.statusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.statusLabel2 = new System.Windows.Forms.ToolStripStatusLabel(); this.DBGrid = new LXMS.RowMergeView(); this.statusStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.DBGrid)).BeginInit(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusLabel1, this.statusLabel2 }); this.statusStrip1.Location = new System.Drawing.Point(0, 402); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(629, 22); this.statusStrip1.TabIndex = 6; this.statusStrip1.Text = "statusStrip1"; // // statusLabel1 // this.statusLabel1.AutoSize = false; this.statusLabel1.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.statusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.statusLabel1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.statusLabel1.Name = "statusLabel1"; this.statusLabel1.Size = new System.Drawing.Size(129, 17); this.statusLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // statusLabel2 // this.statusLabel2.AutoSize = false; this.statusLabel2.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.statusLabel2.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenOuter; this.statusLabel2.Name = "statusLabel2"; this.statusLabel2.Size = new System.Drawing.Size(120, 17); this.statusLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // DBGrid // this.DBGrid.AllowUserToAddRows = false; this.DBGrid.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(241)))), ((int)(((byte)(251))))); this.DBGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.DBGrid.BackgroundColor = System.Drawing.Color.White; this.DBGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.DBGrid.Dock = System.Windows.Forms.DockStyle.Fill; this.DBGrid.Location = new System.Drawing.Point(0, 0); this.DBGrid.MergeColumnHeaderBackColor = System.Drawing.SystemColors.Control; this.DBGrid.MergeColumnNames = ((System.Collections.Generic.List <string>)(resources.GetObject("DBGrid.MergeColumnNames"))); this.DBGrid.MultiSelect = false; this.DBGrid.Name = "DBGrid"; this.DBGrid.ReadOnly = true; this.DBGrid.RowChanged = false; this.DBGrid.RowTemplate.Height = 23; this.DBGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.DBGrid.Size = new System.Drawing.Size(629, 402); this.DBGrid.TabIndex = 9; this.DBGrid.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.DBGrid_CellLeave); this.DBGrid.DoubleClick += new System.EventHandler(this.DBGrid_DoubleClick); // // frmViewList // this.ClientSize = new System.Drawing.Size(629, 424); this.Controls.Add(this.DBGrid); this.Controls.Add(this.statusStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmViewList"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Load += new System.EventHandler(this.frmViewList_Load); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.DBGrid)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
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 componentResourceManager = new ComponentResourceManager(typeof(EncyclopediaEntryForm)); this.OKBtn = new Button(); this.CancelBtn = new Button(); this.TitleLbl = new Label(); this.TitleBox = new TextBox(); this.DetailsBox = new DefaultTextBox(); this.Pages = new TabControl(); this.DetailsPage = new TabPage(); this.PlayerStatusbar = new StatusStrip(); this.toolStripStatusLabel1 = new ToolStripStatusLabel(); this.DMPage = new TabPage(); this.DMBox = new DefaultTextBox(); this.DMStatusBar = new StatusStrip(); this.toolStripStatusLabel2 = new ToolStripStatusLabel(); this.LinksPage = new TabPage(); this.EntryList = new ListView(); this.EntryHdr = new ColumnHeader(); this.ImagesTab = new TabPage(); this.PictureList = new ListView(); this.PictureToolbar = new ToolStrip(); this.AddBtn = new ToolStripButton(); this.RemoveBtn = new ToolStripButton(); this.EditBtn = new ToolStripButton(); this.CatLbl = new Label(); this.CatBox = new ComboBox(); this.Pages.SuspendLayout(); this.DetailsPage.SuspendLayout(); this.PlayerStatusbar.SuspendLayout(); this.DMPage.SuspendLayout(); this.DMStatusBar.SuspendLayout(); this.LinksPage.SuspendLayout(); this.ImagesTab.SuspendLayout(); this.PictureToolbar.SuspendLayout(); base.SuspendLayout(); this.OKBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.OKBtn.DialogResult = System.Windows.Forms.DialogResult.OK; this.OKBtn.Location = new Point(438, 359); this.OKBtn.Name = "OKBtn"; this.OKBtn.Size = new System.Drawing.Size(75, 23); this.OKBtn.TabIndex = 5; this.OKBtn.Text = "OK"; this.OKBtn.UseVisualStyleBackColor = true; this.OKBtn.Click += new EventHandler(this.OKBtn_Click); this.CancelBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CancelBtn.Location = new Point(519, 359); this.CancelBtn.Name = "CancelBtn"; this.CancelBtn.Size = new System.Drawing.Size(75, 23); this.CancelBtn.TabIndex = 6; this.CancelBtn.Text = "Cancel"; this.CancelBtn.UseVisualStyleBackColor = true; this.TitleLbl.AutoSize = true; this.TitleLbl.Location = new Point(12, 15); this.TitleLbl.Name = "TitleLbl"; this.TitleLbl.Size = new System.Drawing.Size(30, 13); this.TitleLbl.TabIndex = 0; this.TitleLbl.Text = "Title:"; this.TitleBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.TitleBox.Location = new Point(70, 12); this.TitleBox.Name = "TitleBox"; this.TitleBox.Size = new System.Drawing.Size(524, 20); this.TitleBox.TabIndex = 1; this.DetailsBox.AcceptsReturn = true; this.DetailsBox.AcceptsTab = true; this.DetailsBox.DefaultText = "(enter details here)"; this.DetailsBox.Dock = DockStyle.Fill; this.DetailsBox.Location = new Point(3, 25); this.DetailsBox.Multiline = true; this.DetailsBox.Name = "DetailsBox"; this.DetailsBox.ScrollBars = ScrollBars.Vertical; this.DetailsBox.Size = new System.Drawing.Size(568, 234); this.DetailsBox.TabIndex = 1; this.DetailsBox.Text = "(enter details here)"; this.Pages.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.Pages.Controls.Add(this.DetailsPage); this.Pages.Controls.Add(this.DMPage); this.Pages.Controls.Add(this.LinksPage); this.Pages.Controls.Add(this.ImagesTab); this.Pages.Location = new Point(12, 65); this.Pages.Name = "Pages"; this.Pages.SelectedIndex = 0; this.Pages.Size = new System.Drawing.Size(582, 288); this.Pages.TabIndex = 4; this.DetailsPage.Controls.Add(this.DetailsBox); this.DetailsPage.Controls.Add(this.PlayerStatusbar); this.DetailsPage.Location = new Point(4, 22); this.DetailsPage.Name = "DetailsPage"; this.DetailsPage.Padding = new System.Windows.Forms.Padding(3); this.DetailsPage.Size = new System.Drawing.Size(574, 262); this.DetailsPage.TabIndex = 0; this.DetailsPage.Text = "Public Information"; this.DetailsPage.UseVisualStyleBackColor = true; this.PlayerStatusbar.Dock = DockStyle.Top; this.PlayerStatusbar.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel1 }); this.PlayerStatusbar.Location = new Point(3, 3); this.PlayerStatusbar.Name = "PlayerStatusbar"; this.PlayerStatusbar.Size = new System.Drawing.Size(568, 22); this.PlayerStatusbar.SizingGrip = false; this.PlayerStatusbar.TabIndex = 0; this.PlayerStatusbar.Text = "statusStrip1"; this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(202, 17); this.toolStripStatusLabel1.Text = "Note: HTML tags are supported here."; this.DMPage.Controls.Add(this.DMBox); this.DMPage.Controls.Add(this.DMStatusBar); this.DMPage.Location = new Point(4, 22); this.DMPage.Name = "DMPage"; this.DMPage.Padding = new System.Windows.Forms.Padding(3); this.DMPage.Size = new System.Drawing.Size(503, 211); this.DMPage.TabIndex = 2; this.DMPage.Text = "DM Information"; this.DMPage.UseVisualStyleBackColor = true; this.DMBox.AcceptsReturn = true; this.DMBox.AcceptsTab = true; this.DMBox.DefaultText = "(enter details here)"; this.DMBox.Dock = DockStyle.Fill; this.DMBox.Location = new Point(3, 25); this.DMBox.Multiline = true; this.DMBox.Name = "DMBox"; this.DMBox.ScrollBars = ScrollBars.Vertical; this.DMBox.Size = new System.Drawing.Size(497, 183); this.DMBox.TabIndex = 3; this.DMBox.Text = "(enter details here)"; this.DMStatusBar.Dock = DockStyle.Top; this.DMStatusBar.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel2 }); this.DMStatusBar.Location = new Point(3, 3); this.DMStatusBar.Name = "DMStatusBar"; this.DMStatusBar.Size = new System.Drawing.Size(497, 22); this.DMStatusBar.SizingGrip = false; this.DMStatusBar.TabIndex = 2; this.DMStatusBar.Text = "statusStrip1"; this.toolStripStatusLabel2.Name = "toolStripStatusLabel2"; this.toolStripStatusLabel2.Size = new System.Drawing.Size(202, 17); this.toolStripStatusLabel2.Text = "Note: HTML tags are supported here."; this.LinksPage.Controls.Add(this.EntryList); this.LinksPage.Location = new Point(4, 22); this.LinksPage.Name = "LinksPage"; this.LinksPage.Padding = new System.Windows.Forms.Padding(3); this.LinksPage.Size = new System.Drawing.Size(503, 211); this.LinksPage.TabIndex = 1; this.LinksPage.Text = "See Also"; this.LinksPage.UseVisualStyleBackColor = true; this.EntryList.CheckBoxes = true; this.EntryList.Columns.AddRange(new ColumnHeader[] { this.EntryHdr }); this.EntryList.Dock = DockStyle.Fill; this.EntryList.FullRowSelect = true; this.EntryList.HeaderStyle = ColumnHeaderStyle.Nonclickable; this.EntryList.HideSelection = false; this.EntryList.Location = new Point(3, 3); this.EntryList.MultiSelect = false; this.EntryList.Name = "EntryList"; this.EntryList.Size = new System.Drawing.Size(497, 205); this.EntryList.Sorting = SortOrder.Ascending; this.EntryList.TabIndex = 0; this.EntryList.UseCompatibleStateImageBehavior = false; this.EntryList.View = View.Details; this.EntryHdr.Text = "Entry"; this.EntryHdr.Width = 300; this.ImagesTab.Controls.Add(this.PictureList); this.ImagesTab.Controls.Add(this.PictureToolbar); this.ImagesTab.Location = new Point(4, 22); this.ImagesTab.Name = "ImagesTab"; this.ImagesTab.Padding = new System.Windows.Forms.Padding(3); this.ImagesTab.Size = new System.Drawing.Size(503, 211); this.ImagesTab.TabIndex = 3; this.ImagesTab.Text = "Pictures"; this.ImagesTab.UseVisualStyleBackColor = true; this.PictureList.Dock = DockStyle.Fill; this.PictureList.Location = new Point(3, 28); this.PictureList.Name = "PictureList"; this.PictureList.Size = new System.Drawing.Size(497, 180); this.PictureList.TabIndex = 1; this.PictureList.UseCompatibleStateImageBehavior = false; this.PictureList.DoubleClick += new EventHandler(this.EditBtn_Click); ToolStripItemCollection items = this.PictureToolbar.Items; ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn }; items.AddRange(addBtn); this.PictureToolbar.Location = new Point(3, 3); this.PictureToolbar.Name = "PictureToolbar"; this.PictureToolbar.Size = new System.Drawing.Size(497, 25); this.PictureToolbar.TabIndex = 0; this.PictureToolbar.Text = "toolStrip1"; this.AddBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.AddBtn.Image = (Image)componentResourceManager.GetObject("AddBtn.Image"); this.AddBtn.ImageTransparentColor = Color.Magenta; this.AddBtn.Name = "AddBtn"; this.AddBtn.Size = new System.Drawing.Size(33, 22); this.AddBtn.Text = "Add"; this.AddBtn.Click += new EventHandler(this.AddBtn_Click); this.RemoveBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.RemoveBtn.Image = (Image)componentResourceManager.GetObject("RemoveBtn.Image"); this.RemoveBtn.ImageTransparentColor = Color.Magenta; this.RemoveBtn.Name = "RemoveBtn"; this.RemoveBtn.Size = new System.Drawing.Size(54, 22); this.RemoveBtn.Text = "Remove"; this.RemoveBtn.Click += new EventHandler(this.RemoveBtn_Click); this.EditBtn.DisplayStyle = ToolStripItemDisplayStyle.Text; this.EditBtn.Image = (Image)componentResourceManager.GetObject("EditBtn.Image"); this.EditBtn.ImageTransparentColor = Color.Magenta; this.EditBtn.Name = "EditBtn"; this.EditBtn.Size = new System.Drawing.Size(31, 22); this.EditBtn.Text = "Edit"; this.EditBtn.Click += new EventHandler(this.EditBtn_Click); this.CatLbl.AutoSize = true; this.CatLbl.Location = new Point(12, 41); this.CatLbl.Name = "CatLbl"; this.CatLbl.Size = new System.Drawing.Size(52, 13); this.CatLbl.TabIndex = 2; this.CatLbl.Text = "Category:"; this.CatBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.CatBox.AutoCompleteMode = AutoCompleteMode.Append; this.CatBox.AutoCompleteSource = AutoCompleteSource.ListItems; this.CatBox.FormattingEnabled = true; this.CatBox.Location = new Point(70, 38); this.CatBox.Name = "CatBox"; this.CatBox.Size = new System.Drawing.Size(524, 21); this.CatBox.TabIndex = 3; base.AcceptButton = this.OKBtn; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.CancelButton = this.CancelBtn; base.ClientSize = new System.Drawing.Size(606, 394); base.Controls.Add(this.CatBox); base.Controls.Add(this.CatLbl); base.Controls.Add(this.Pages); base.Controls.Add(this.TitleBox); base.Controls.Add(this.TitleLbl); base.Controls.Add(this.CancelBtn); base.Controls.Add(this.OKBtn); base.MinimizeBox = false; base.Name = "EncyclopediaEntryForm"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Encyclopedia Entry"; this.Pages.ResumeLayout(false); this.DetailsPage.ResumeLayout(false); this.DetailsPage.PerformLayout(); this.PlayerStatusbar.ResumeLayout(false); this.PlayerStatusbar.PerformLayout(); this.DMPage.ResumeLayout(false); this.DMPage.PerformLayout(); this.DMStatusBar.ResumeLayout(false); this.DMStatusBar.PerformLayout(); this.LinksPage.ResumeLayout(false); this.ImagesTab.ResumeLayout(false); this.ImagesTab.PerformLayout(); this.PictureToolbar.ResumeLayout(false); this.PictureToolbar.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void initializeStatusStrip() { //create the ready and text editor status's ToolStripStatusLabel mainStatus = new ToolStripStatusLabel("Ready"); ToolStripStatusLabel textEditorLinesCount = new ToolStripStatusLabel("Lines 0"); ToolStripStatusLabel textEditorLineNumber = new ToolStripStatusLabel("Line 0"); ToolStripStatusLabel textEditorColumnNumber = new ToolStripStatusLabel("Column 0"); //define the seperator to add some spacing between the labels. string seperator = new string(' ', 10); //add them p_StatusStrip.Items.Add(mainStatus); //makes the labels added after this to be aligned on the right side p_StatusStrip.Items.Add(new ToolStripStatusLabel { Spring = true }); p_StatusStrip.Items.Add(textEditorLinesCount); p_StatusStrip.Items.Add(seperator); p_StatusStrip.Items.Add(textEditorLineNumber); p_StatusStrip.Items.Add(seperator); p_StatusStrip.Items.Add(textEditorColumnNumber); p_StatusStrip.Items.Add(seperator); //define the global status labels to be the ones //we just added. We add them in order of appearance from //left to right. p_StatusLabels = new ToolStripStatusLabel[] { mainStatus, textEditorLinesCount, textEditorLineNumber, textEditorColumnNumber }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { 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.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.Right))); this.currentVideoFrame.Enabled = false; this.currentVideoFrame.Location = new System.Drawing.Point(173, 41); this.currentVideoFrame.Name = "currentVideoFrame"; this.currentVideoFrame.Size = new System.Drawing.Size(128, 21); this.currentVideoFrame.TabIndex = 3; this.currentVideoFrame.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // groupBox1 // 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(307, 177); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; // // totalTime // this.totalTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.totalTime.Enabled = false; this.totalTime.Location = new System.Drawing.Point(173, 149); this.totalTime.Name = "totalTime"; this.totalTime.Size = new System.Drawing.Size(128, 21); this.totalTime.TabIndex = 11; 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(85, 13); this.totalTimeLabel.TabIndex = 10; this.totalTimeLabel.Text = "Remaining Time:"; // // timeElapsed // this.timeElapsed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.timeElapsed.Enabled = false; this.timeElapsed.Location = new System.Drawing.Point(173, 122); this.timeElapsed.Name = "timeElapsed"; this.timeElapsed.Size = new System.Drawing.Size(128, 21); this.timeElapsed.TabIndex = 9; 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.Right))); this.fps.Enabled = false; this.fps.Location = new System.Drawing.Point(173, 95); this.fps.Name = "fps"; this.fps.Size = new System.Drawing.Size(128, 21); this.fps.TabIndex = 7; 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.Right))); this.videoData.Enabled = false; this.videoData.Location = new System.Drawing.Point(173, 68); this.videoData.Name = "videoData"; this.videoData.Size = new System.Drawing.Size(128, 21); this.videoData.TabIndex = 5; 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.Right))); this.positionInClip.Enabled = false; this.positionInClip.Location = new System.Drawing.Point(173, 14); this.positionInClip.Name = "positionInClip"; this.positionInClip.Size = new System.Drawing.Size(128, 21); this.positionInClip.TabIndex = 1; this.positionInClip.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // abortButton // this.abortButton.Location = new System.Drawing.Point(237, 247); 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.Location = new System.Drawing.Point(122, 191); this.progress.Name = "progress"; this.progress.Size = new System.Drawing.Size(193, 23); this.progress.TabIndex = 2; // // 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.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.priority.Items.AddRange(new object[] { "LOW", "NORMAL", "HIGH" }); this.priority.Location = new System.Drawing.Point(122, 220); this.priority.Name = "priority"; this.priority.Size = new System.Drawing.Size(80, 21); this.priority.TabIndex = 4; this.priority.SelectedIndexChanged += new System.EventHandler(this.priority_SelectedIndexChanged); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusLabel }); this.statusStrip1.Location = new System.Drawing.Point(0, 279); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(324, 22); 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.ArticleName = "Status window"; this.helpButton1.AutoSize = true; this.helpButton1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.helpButton1.Location = new System.Drawing.Point(12, 247); this.helpButton1.Name = "helpButton1"; this.helpButton1.Size = new System.Drawing.Size(38, 23); this.helpButton1.TabIndex = 5; // // ProgressWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(324, 301); 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.MaximizeBox = false; this.Name = "ProgressWindow"; this.Text = "Status"; this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.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.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmStockBoxInfo)); this.tlbMain = new ToolStrip(); this.toolStripLabel1 = new ToolStripLabel(); this.toolStripSeparator2 = new ToolStripSeparator(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tlb_M_New = new ToolStripButton(); this.tlb_M_Edit = new ToolStripButton(); this.toolStripSeparator3 = new ToolStripSeparator(); this.tlb_M_Undo = new ToolStripButton(); this.tlb_M_Delete = new ToolStripButton(); this.toolStripSeparator4 = new ToolStripSeparator(); this.tlb_M_Save = new ToolStripButton(); this.toolStripSeparator5 = new ToolStripSeparator(); this.tlb_M_Refresh = new ToolStripButton(); this.tlb_M_Find = new ToolStripButton(); this.tlb_M_Print = new ToolStripButton(); this.toolStripSeparator6 = new ToolStripSeparator(); this.toolStripSeparator7 = new ToolStripSeparator(); this.btn_M_Help = new ToolStripButton(); this.tlb_M_Exit = new ToolStripButton(); this.toolStripSeparator8 = new ToolStripSeparator(); this.tlbSaveSysRts = new ToolStripButton(); this.panel1 = new Panel(); this.groupBox1 = new GroupBox(); this.cmbQ_cBoxType = new ComboBox(); this.textBox_cBoxIdQ = new TextBox(); this.label5 = new Label(); this.label6 = new Label(); this.dataGridView_Main = new DataGridView(); this.cBoxId = new DataGridViewTextBoxColumn(); this.cName = new DataGridViewTextBoxColumn(); this.nStatusStore = new DataGridViewTextBoxColumn(); this.bIsPrint = new DataGridViewTextBoxColumn(); this.bindingSource_Main = new BindingSource(this.components); this.panel_Edit = new Panel(); this.comboBox_nStatusStore = new ComboBox(); this.cmb_cBoxType = new ComboBox(); this.stbMain = new StatusStrip(); this.stbModul = new ToolStripStatusLabel(); this.stbUser = new ToolStripStatusLabel(); this.stbState = new ToolStripStatusLabel(); this.stbDateTime = new ToolStripStatusLabel(); this.label3 = new Label(); this.label2 = new Label(); this.label1 = new Label(); this.textBox_cBoxId = new TextBox(); this.tlbMain.SuspendLayout(); this.panel1.SuspendLayout(); this.groupBox1.SuspendLayout(); ((ISupportInitialize)this.dataGridView_Main).BeginInit(); ((ISupportInitialize)this.bindingSource_Main).BeginInit(); this.panel_Edit.SuspendLayout(); this.stbMain.SuspendLayout(); base.SuspendLayout(); this.tlbMain.Items.AddRange(new ToolStripItem[] { this.toolStripLabel1, this.toolStripSeparator2, this.toolStripSeparator1, this.tlb_M_New, this.tlb_M_Edit, this.toolStripSeparator3, this.tlb_M_Undo, this.tlb_M_Delete, this.toolStripSeparator4, this.tlb_M_Save, this.toolStripSeparator5, this.tlb_M_Refresh, this.tlb_M_Find, this.tlb_M_Print, this.toolStripSeparator6, this.toolStripSeparator7, this.btn_M_Help, this.tlb_M_Exit, this.toolStripSeparator8, this.tlbSaveSysRts }); this.tlbMain.Location = new Point(0, 0); this.tlbMain.Name = "tlbMain"; this.tlbMain.Size = new Size(0x309, 0x19); this.tlbMain.TabIndex = 15; this.tlbMain.Text = "toolStrip1"; this.toolStripLabel1.Font = new Font("宋体", 9f, FontStyle.Bold); this.toolStripLabel1.ForeColor = SystemColors.ActiveCaption; this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new Size(0, 0x16); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 0x19); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 0x19); this.tlb_M_New.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_New.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_New.ForeColor = SystemColors.ActiveCaption; this.tlb_M_New.Image = (Image)manager.GetObject("tlb_M_New.Image"); this.tlb_M_New.ImageTransparentColor = Color.Magenta; this.tlb_M_New.Name = "tlb_M_New"; this.tlb_M_New.Size = new Size(0x23, 0x16); this.tlb_M_New.Tag = "01"; this.tlb_M_New.Text = "新建"; this.tlb_M_New.Click += new EventHandler(this.tlb_M_New_Click); this.tlb_M_Edit.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Edit.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Edit.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Edit.Image = (Image)manager.GetObject("tlb_M_Edit.Image"); this.tlb_M_Edit.ImageTransparentColor = Color.Magenta; this.tlb_M_Edit.Name = "tlb_M_Edit"; this.tlb_M_Edit.Size = new Size(0x23, 0x16); this.tlb_M_Edit.Tag = "02"; this.tlb_M_Edit.Text = "修改"; this.tlb_M_Edit.Click += new EventHandler(this.tlb_M_Edit_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(6, 0x19); this.tlb_M_Undo.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Undo.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Undo.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Undo.Image = (Image)manager.GetObject("tlb_M_Undo.Image"); this.tlb_M_Undo.ImageTransparentColor = Color.Magenta; this.tlb_M_Undo.Name = "tlb_M_Undo"; this.tlb_M_Undo.Size = new Size(0x23, 0x16); this.tlb_M_Undo.Tag = "03"; this.tlb_M_Undo.Text = "取消"; this.tlb_M_Undo.Click += new EventHandler(this.tlb_M_Undo_Click); this.tlb_M_Delete.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Delete.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Delete.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Delete.Image = (Image)manager.GetObject("tlb_M_Delete.Image"); this.tlb_M_Delete.ImageTransparentColor = Color.Magenta; this.tlb_M_Delete.Name = "tlb_M_Delete"; this.tlb_M_Delete.Size = new Size(0x23, 0x16); this.tlb_M_Delete.Tag = "04"; this.tlb_M_Delete.Text = "删除"; this.tlb_M_Delete.Click += new EventHandler(this.tlb_M_Delete_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new Size(6, 0x19); this.tlb_M_Save.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Save.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Save.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Save.Image = (Image)manager.GetObject("tlb_M_Save.Image"); this.tlb_M_Save.ImageTransparentColor = Color.Magenta; this.tlb_M_Save.Name = "tlb_M_Save"; this.tlb_M_Save.Size = new Size(0x23, 0x16); this.tlb_M_Save.Tag = "05"; this.tlb_M_Save.Text = "保存"; this.tlb_M_Save.Click += new EventHandler(this.tlb_M_Save_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new Size(6, 0x19); this.tlb_M_Refresh.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Refresh.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Refresh.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Refresh.Image = (Image)manager.GetObject("tlb_M_Refresh.Image"); this.tlb_M_Refresh.ImageTransparentColor = Color.Magenta; this.tlb_M_Refresh.Name = "tlb_M_Refresh"; this.tlb_M_Refresh.Size = new Size(0x23, 0x16); this.tlb_M_Refresh.Text = "刷新"; this.tlb_M_Refresh.Click += new EventHandler(this.tlb_M_Refresh_Click); this.tlb_M_Find.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Find.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Find.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Find.Image = (Image)manager.GetObject("tlb_M_Find.Image"); this.tlb_M_Find.ImageTransparentColor = Color.Magenta; this.tlb_M_Find.Name = "tlb_M_Find"; this.tlb_M_Find.Size = new Size(0x23, 0x16); this.tlb_M_Find.Text = "查找"; this.tlb_M_Find.Visible = false; this.tlb_M_Find.Click += new EventHandler(this.tlb_M_Find_Click); this.tlb_M_Print.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Print.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Print.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Print.Image = (Image)manager.GetObject("tlb_M_Print.Image"); this.tlb_M_Print.ImageTransparentColor = Color.Magenta; this.tlb_M_Print.Name = "tlb_M_Print"; this.tlb_M_Print.Size = new Size(0x23, 0x16); this.tlb_M_Print.Tag = "06"; this.tlb_M_Print.Text = "打印"; this.tlb_M_Print.ToolTipText = "打印条码"; this.tlb_M_Print.Click += new EventHandler(this.tlb_M_Print_Click); this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new Size(6, 0x19); this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new Size(6, 0x19); this.btn_M_Help.DisplayStyle = ToolStripItemDisplayStyle.Text; this.btn_M_Help.Font = new Font("宋体", 9f, FontStyle.Bold); this.btn_M_Help.ForeColor = SystemColors.ActiveCaption; this.btn_M_Help.Image = (Image)manager.GetObject("btn_M_Help.Image"); this.btn_M_Help.ImageTransparentColor = Color.Magenta; this.btn_M_Help.Name = "btn_M_Help"; this.btn_M_Help.Size = new Size(0x23, 0x16); this.btn_M_Help.Text = "帮助"; this.btn_M_Help.Visible = false; this.tlb_M_Exit.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlb_M_Exit.Font = new Font("宋体", 9f, FontStyle.Bold); this.tlb_M_Exit.ForeColor = SystemColors.ActiveCaption; this.tlb_M_Exit.Image = (Image)manager.GetObject("tlb_M_Exit.Image"); this.tlb_M_Exit.ImageTransparentColor = Color.Magenta; this.tlb_M_Exit.Name = "tlb_M_Exit"; this.tlb_M_Exit.Size = new Size(0x23, 0x16); this.tlb_M_Exit.Text = "退出"; this.tlb_M_Exit.Click += new EventHandler(this.tlb_M_Exit_Click); this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new Size(6, 0x19); this.tlbSaveSysRts.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tlbSaveSysRts.Image = (Image)manager.GetObject("tlbSaveSysRts.Image"); this.tlbSaveSysRts.ImageTransparentColor = Color.Magenta; this.tlbSaveSysRts.Name = "tlbSaveSysRts"; this.tlbSaveSysRts.Size = new Size(0x51, 0x16); this.tlbSaveSysRts.Text = "保存系统权限"; this.tlbSaveSysRts.Visible = false; this.tlbSaveSysRts.Click += new EventHandler(this.tlbSaveSysRts_Click); this.panel1.Controls.Add(this.groupBox1); this.panel1.Controls.Add(this.dataGridView_Main); this.panel1.Dock = DockStyle.Left; this.panel1.Location = new Point(0, 0x19); this.panel1.Name = "panel1"; this.panel1.Size = new Size(0x156, 0x1d0); this.panel1.TabIndex = 0x10; this.groupBox1.Controls.Add(this.cmbQ_cBoxType); this.groupBox1.Controls.Add(this.textBox_cBoxIdQ); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Location = new Point(6, 5); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new Size(0x14d, 0x36); this.groupBox1.TabIndex = 11; this.groupBox1.TabStop = false; this.groupBox1.Text = "查询条件"; this.cmbQ_cBoxType.FormattingEnabled = true; this.cmbQ_cBoxType.Location = new Point(0xd0, 13); this.cmbQ_cBoxType.Name = "cmbQ_cBoxType"; this.cmbQ_cBoxType.Size = new Size(0x7c, 20); this.cmbQ_cBoxType.TabIndex = 60; this.cmbQ_cBoxType.Tag = "101"; this.textBox_cBoxIdQ.Location = new Point(0x38, 13); this.textBox_cBoxIdQ.Name = "textBox_cBoxIdQ"; this.textBox_cBoxIdQ.Size = new Size(100, 0x15); this.textBox_cBoxIdQ.TabIndex = 7; this.textBox_cBoxIdQ.Tag = "0"; this.label5.AutoSize = true; this.label5.Location = new Point(6, 0x16); this.label5.Name = "label5"; this.label5.Size = new Size(0x35, 12); this.label5.TabIndex = 13; this.label5.Text = "周转箱号"; this.label6.AutoSize = true; this.label6.Location = new Point(0x9d, 0x13); this.label6.Name = "label6"; this.label6.Size = new Size(0x35, 12); this.label6.TabIndex = 14; this.label6.Text = "箱体类型"; this.label6.Click += new EventHandler(this.label2_Click); this.dataGridView_Main.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView_Main.Columns.AddRange(new DataGridViewColumn[] { this.cBoxId, this.cName, this.nStatusStore, this.bIsPrint }); this.dataGridView_Main.Location = new Point(3, 0x41); this.dataGridView_Main.Name = "dataGridView_Main"; this.dataGridView_Main.ReadOnly = true; this.dataGridView_Main.RowTemplate.Height = 0x17; this.dataGridView_Main.Size = new Size(0x156, 0x19b); this.dataGridView_Main.TabIndex = 9; this.dataGridView_Main.Tag = "8"; this.dataGridView_Main.CellContentClick += new DataGridViewCellEventHandler(this.dataGridView_Main_CellContentClick); this.cBoxId.DataPropertyName = "cBoxId"; this.cBoxId.HeaderText = "周转箱号"; this.cBoxId.Name = "cBoxId"; this.cBoxId.ReadOnly = true; this.cName.DataPropertyName = "cBoxType"; this.cName.HeaderText = "箱体类型"; this.cName.Name = "cName"; this.cName.ReadOnly = true; this.nStatusStore.DataPropertyName = "nStatusStore"; this.nStatusStore.HeaderText = "仓库类型"; this.nStatusStore.Name = "nStatusStore"; this.nStatusStore.ReadOnly = true; this.bIsPrint.DataPropertyName = "bIsPrint"; this.bIsPrint.HeaderText = "是否打印"; this.bIsPrint.Name = "bIsPrint"; this.bIsPrint.ReadOnly = true; this.bIsPrint.Resizable = DataGridViewTriState.True; this.bindingSource_Main.PositionChanged += new EventHandler(this.bindingSource_Main_PositionChanged); this.panel_Edit.Controls.Add(this.comboBox_nStatusStore); this.panel_Edit.Controls.Add(this.cmb_cBoxType); this.panel_Edit.Controls.Add(this.stbMain); this.panel_Edit.Controls.Add(this.label3); this.panel_Edit.Controls.Add(this.label2); this.panel_Edit.Controls.Add(this.label1); this.panel_Edit.Controls.Add(this.textBox_cBoxId); this.panel_Edit.Dock = DockStyle.Fill; this.panel_Edit.Location = new Point(0x156, 0x19); this.panel_Edit.Name = "panel_Edit"; this.panel_Edit.Size = new Size(0x1b3, 0x1d0); this.panel_Edit.TabIndex = 0x11; this.panel_Edit.Paint += new PaintEventHandler(this.panel_Edit_Paint); this.comboBox_nStatusStore.FormattingEnabled = true; this.comboBox_nStatusStore.Location = new Point(0x80, 0xeb); this.comboBox_nStatusStore.Name = "comboBox_nStatusStore"; this.comboBox_nStatusStore.Size = new Size(0xae, 20); this.comboBox_nStatusStore.TabIndex = 60; this.comboBox_nStatusStore.Tag = "101"; this.comboBox_nStatusStore.Text = "Bind SelectedValue"; this.cmb_cBoxType.FormattingEnabled = true; this.cmb_cBoxType.Location = new Point(0x80, 190); this.cmb_cBoxType.Name = "cmb_cBoxType"; this.cmb_cBoxType.Size = new Size(0xae, 20); this.cmb_cBoxType.TabIndex = 0x3b; this.cmb_cBoxType.Tag = "1"; this.stbMain.Items.AddRange(new ToolStripItem[] { this.stbModul, this.stbUser, this.stbState, this.stbDateTime }); this.stbMain.Location = new Point(0, 0x1ba); this.stbMain.Name = "stbMain"; this.stbMain.Size = new Size(0x1b3, 0x16); this.stbMain.TabIndex = 0x10; this.stbMain.Text = "statusStrip1"; this.stbModul.Name = "stbModul"; this.stbModul.Size = new Size(0x23, 0x11); this.stbModul.Text = "模块:"; this.stbUser.Name = "stbUser"; this.stbUser.Size = new Size(0x2f, 0x11); this.stbUser.Text = "用户名:"; this.stbState.Name = "stbState"; this.stbState.Size = new Size(0x23, 0x11); this.stbState.Text = "状态:"; this.stbDateTime.Name = "stbDateTime"; this.stbDateTime.Size = new Size(0x23, 0x11); this.stbDateTime.Text = "时间:"; this.label3.AutoSize = true; this.label3.Location = new Point(0x2f, 0xee); this.label3.Name = "label3"; this.label3.Size = new Size(0x35, 12); this.label3.TabIndex = 15; this.label3.Text = "存货状态"; this.label2.AutoSize = true; this.label2.Location = new Point(0x2f, 0xc1); this.label2.Name = "label2"; this.label2.Size = new Size(0x35, 12); this.label2.TabIndex = 14; this.label2.Text = "箱体类型"; this.label2.Click += new EventHandler(this.label2_Click); this.label1.AutoSize = true; this.label1.Location = new Point(0x2f, 0x94); this.label1.Name = "label1"; this.label1.Size = new Size(0x35, 12); this.label1.TabIndex = 13; this.label1.Text = "周转箱号"; this.textBox_cBoxId.Location = new Point(0x80, 0x8b); this.textBox_cBoxId.Name = "textBox_cBoxId"; this.textBox_cBoxId.ReadOnly = true; this.textBox_cBoxId.Size = new Size(0xae, 0x15); this.textBox_cBoxId.TabIndex = 7; this.textBox_cBoxId.Tag = "0"; this.textBox_cBoxId.ReadOnlyChanged += new EventHandler(this.textBox_cBoxId_ReadOnlyChanged); base.AutoScaleDimensions = new SizeF(6f, 12f); base.ClientSize = new Size(0x309, 0x1e9); base.Controls.Add(this.panel_Edit); base.Controls.Add(this.panel1); base.Controls.Add(this.tlbMain); base.Name = "FrmStockBoxInfo"; this.Text = "周转箱管理"; base.Load += new EventHandler(this.FrmStockInfo_Load); this.tlbMain.ResumeLayout(false); this.tlbMain.PerformLayout(); this.panel1.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((ISupportInitialize)this.dataGridView_Main).EndInit(); ((ISupportInitialize)this.bindingSource_Main).EndInit(); this.panel_Edit.ResumeLayout(false); this.panel_Edit.PerformLayout(); this.stbMain.ResumeLayout(false); this.stbMain.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public static void StatusAnalize(ref RichTextBox wordnote, ref ToolStripStatusLabel statusLinesCount, ref ToolStripStatusLabel statusWordsCount, ref ToolStripStatusLabel statusCharSpaceCount, ref ToolStripStatusLabel statusCharCount) { string text = wordnote.Text; // Количество строк в тексте statusLinesCount.Text = wordnote.Lines.Count().ToString(); // Количество слов в тексте statusWordsCount.Text = text.Split(new Char[] { ' ', '\t', '\n', '\r', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '+', '=', '[', '{', ']', '}', '/', '\\', '|', '"', ':', ';', '.', ',', '>', '<' }, StringSplitOptions.RemoveEmptyEntries).Length.ToString(); // Количество символов без пробелов statusCharCount.Text = text.Replace(" ", "").Replace("\t", "").Replace("\n", "").Replace("\r", "").ToCharArray().Length.ToString(); // Количество символов с пробелами statusCharSpaceCount.Text = text.ToCharArray().Length.ToString(); }
public Controller(TreeView treeView, ToolStripStatusLabel label, ListView listView) { this.tvReportServer = treeView; this.toolStripStatusLabel = label; this.lvItems = listView; }
public void setControlTrangThaiHover(ToolStripStatusLabel ctr) { ctrTrangThaiHover = ctr; }
public NiStatusBarProgress(ToolStripStatusLabel label, ToolStripProgressBar progressBar) { _label = label; _progressBar = progressBar; }
public SearchPanel(string cnnStr, bool bldSrchDb = false) { this.cnnStr = cnnStr; m_tblLayout = new TableLayoutPanel(); m_tblLayout.Dock = DockStyle.Fill; var edt = new TextBox(); edt.Anchor = AnchorStyles.Left | AnchorStyles.Right; var btn = new Button(); btn.Text = "Search"; btn.AutoSize = true; btn.Anchor = AnchorStyles.Right; if (!bldSrchDb) { btn.Click += (s, e) => { OnSearch(edt.Text); }; } else { btn.Click += (s, e) => { BuildSearchDb(); }; } m_acceptBtn = btn; #if use_chromium var lst = new CefSharp.WinForms.ChromiumWebBrowser(""); lst.Dock = DockStyle.Fill; JsHandler jsHandler = new JsHandler(); jsHandler.OnTitleSelected += (s, e) => { Debug.WriteLine("OnSelectTitle {0}", e); OnSelectTitle?.Invoke(s, Convert.ToUInt64(e)); }; lst.JavascriptObjectRepository.Register("jsHandler", jsHandler, true); m_wb = lst; #elif use_gecko var lst = new Gecko.GeckoWebBrowser(); lst.Dock = DockStyle.Fill; m_wb = lst; #else var lst = new ListView(); lst.View = View.Details; lst.FullRowSelect = true; lst.GridLines = true; lst.Dock = DockStyle.Fill; lst.ItemSelectionChanged += (s, e) => { //UInt64 titleId = 0; foreach (ListViewItem li in lst.SelectedItems) { //UInt64.TryParse(li.SubItems[1].Text, out titleId); //OnSelectTitle(titleId); OnSelectTitle?.Invoke(s, Convert.ToUInt64(li.SubItems[1].Tag)); break; } }; m_lstV = lst; #endif //var sts = new StatusBar //{ // Dock = DockStyle.Bottom, // ShowPanels = false //}; //m_sts = sts; //m_trck = new TrackBar(); //m_trck.Maximum = 1000; //m_trck.Minimum = 500; //m_trck.Height = 30; //var flow = new FlowLayoutPanel(); //flow.Dock = DockStyle.Fill; //flow.FlowDirection = FlowDirection.RightToLeft; //flow.Height = 30; //m_sts.Height = 50; //m_sts.Width = 300; //flow.Controls.Add(m_trck); //flow.Controls.Add(m_sts); int iRow = 0; m_tblLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100)); m_tblLayout.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize)); m_tblLayout.RowStyles.Add(new RowStyle(SizeType.AutoSize)); //m_tblLayout.RowStyles.Add(new RowStyle(SizeType.AutoSize)); m_tblLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100)); m_tblLayout.RowStyles.Add(new RowStyle(SizeType.AutoSize)); m_tblLayout.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; m_tblLayout.Controls.Add(edt, 0, iRow); m_tblLayout.Controls.Add(btn, 1, iRow++); m_tblLayout.Controls.Add(lst, 0, iRow++); m_tblLayout.SetColumnSpan(lst, 2); //m_tblLayout.Controls.Add(sts, 0, iRow); //m_tblLayout.Controls.Add(m_trck, 1, iRow); m_tblLayout.CellBorderStyle = TableLayoutPanelCellBorderStyle.None; var statusStrip1 = new StatusStrip(); statusStrip1.LayoutStyle = ToolStripLayoutStyle.Table; var toolStripStatusLabel1 = new ToolStripStatusLabel(); toolStripStatusLabel1.Anchor = AnchorStyles.Right; toolStripStatusLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; var ToolStripTraceBarItem = new ToolStripTraceBarItem(); ToolStripTraceBarItem.Anchor = AnchorStyles.Left; statusStrip1.Items.Add(ToolStripTraceBarItem); statusStrip1.Items.Add(toolStripStatusLabel1); m_tblLayout.Controls.Add(statusStrip1); m_tblLayout.SetColumnSpan(statusStrip1, 2); m_trck = (TrackBar)ToolStripTraceBarItem.Control; m_sts = toolStripStatusLabel1; m_trck.Maximum = 1000; m_trck.Minimum = 500; var cfg = ConfigMng.getInstance(); m_trck.Value = cfg.m_srchMaxD; m_trck.ValueChanged += M_trck_ValueChanged; toolStripStatusLabel1.Text = "status"; }
private void SetStatusTimeText(ref ToolStripStatusLabel label, ref ToolStripStatusLabel time, DateTime start, DateTime end) { time.Text = TimeDiffString(start, end); label.Visible = true; time.Visible = true; }
public Form1() { InitializeComponent(); panel.Parent = this; panel.AutoSize = true; panel.Dock = DockStyle.Fill; //MENUSTRIP MenuStrip menu = new MenuStrip(); menu.Parent = this; //TOOLSTRIPCONTROLHOST MyLabel label = new MyLabel("Ги-ги "); menu.Items.Add(new ToolStripControlHost(label)); //IMAGELIST ImageList list = new ImageList(); list.Images.Add("open", Image.FromFile("picture.bmp")); menu.ImageList = list; //TOOLSTRIPMENUITEM ToolStripMenuItem item = new ToolStripMenuItem("Image"); item.ImageKey = "open"; menu.Items.Add(item); //CONTEXTMENUSTRIP ContextMenuStrip conMenu = new ContextMenuStrip(); conMenu.Items.Add(new ToolStripMenuItem("Hello")); label.ContextMenuStrip = conMenu; //TOOLSTRIP ToolStrip tool = new ToolStrip(); tool.Items.Add(new ToolStripButton("Save")); tool.Items.Add(new ToolStripComboBox()); tool.Items.Add(new ToolStripSplitButton()); //TOOLSTRIPPANEL ToolStripPanel strPanel = new ToolStripPanel(); strPanel.Dock = DockStyle.Left; strPanel.Parent = panel; strPanel.Join(tool); //TOOLSTRIPCONTAINER //ToolStripContainer container = new ToolStripContainer(); //container.LeftToolStripPanel.Controls.Add(tool); //container.Parent = panel; //STATUSSTRIP StatusStrip status = new StatusStrip(); ToolStripStatusLabel lab = new ToolStripStatusLabel("Стоп"); status.Items.Add(lab); status.Items.Add(new ToolStripButton("Оновити")); status.Parent = this; }
public static void SetStatusLabel(ToolStripStatusLabel label, string text) { label.Text = text; label.ForeColor = Color.FromName("ControlText"); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShopEditor)); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.exportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportlodToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.button3 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.listBox1 = new System.Windows.Forms.ListBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox9 = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.textBox11 = new System.Windows.Forms.TextBox(); 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.groupBox2 = new System.Windows.Forms.GroupBox(); this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.textBox10 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox8 = new System.Windows.Forms.TextBox(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.dgItems = new System.Windows.Forms.DataGridView(); this.Column7 = new System.Windows.Forms.DataGridViewImageColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.toolStrip2 = new System.Windows.Forms.ToolStrip(); this.btnDeleteSelected = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.btnAddItems = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.button2 = new System.Windows.Forms.Button(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.exportStringToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgItems)).BeginInit(); this.toolStrip2.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // menuStrip1 // this.menuStrip1.AllowMerge = false; this.menuStrip1.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exportToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(816, 24); this.menuStrip1.TabIndex = 0; this.menuStrip1.Text = "menuStrip1"; // // exportToolStripMenuItem // this.exportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exportlodToolStripMenuItem, this.exportStringToolStripMenuItem }); this.exportToolStripMenuItem.Name = "exportToolStripMenuItem"; this.exportToolStripMenuItem.Size = new System.Drawing.Size(74, 20); this.exportToolStripMenuItem.Text = "File Export"; // // exportlodToolStripMenuItem // this.exportlodToolStripMenuItem.Name = "exportlodToolStripMenuItem"; this.exportlodToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.exportlodToolStripMenuItem.Text = "Export .lod"; this.exportlodToolStripMenuItem.Click += new System.EventHandler(this.exportlodToolStripMenuItem_Click); // // groupBox3 // this.groupBox3.Controls.Add(this.button3); this.groupBox3.Controls.Add(this.button1); this.groupBox3.Controls.Add(this.listBox1); this.groupBox3.Location = new System.Drawing.Point(12, 27); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(237, 475); this.groupBox3.TabIndex = 30; this.groupBox3.TabStop = false; this.groupBox3.Text = "Shop NPC"; // // button3 // this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.Location = new System.Drawing.Point(131, 446); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(100, 23); this.button3.TabIndex = 4; this.button3.Text = "Delete"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(6, 446); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(100, 23); this.button1.TabIndex = 2; this.button1.Text = "Add"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // listBox1 // this.listBox1.FormattingEnabled = true; this.listBox1.Location = new System.Drawing.Point(6, 14); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(225, 420); this.listBox1.TabIndex = 1; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); // // textBox1 // this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox1.Location = new System.Drawing.Point(79, 23); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(50, 20); this.textBox1.TabIndex = 31; // // textBox2 // this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox2.Location = new System.Drawing.Point(204, 23); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(50, 20); this.textBox2.TabIndex = 32; // // textBox3 // this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox3.Location = new System.Drawing.Point(79, 52); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(175, 20); this.textBox3.TabIndex = 33; // // textBox4 // this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox4.Location = new System.Drawing.Point(79, 78); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(50, 20); this.textBox4.TabIndex = 34; // // textBox5 // this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox5.Location = new System.Drawing.Point(204, 78); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(50, 20); this.textBox5.TabIndex = 35; // // textBox6 // this.textBox6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox6.Location = new System.Drawing.Point(59, 23); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(50, 20); this.textBox6.TabIndex = 40; // // textBox9 // this.textBox9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox9.Location = new System.Drawing.Point(59, 52); this.textBox9.Name = "textBox9"; this.textBox9.Size = new System.Drawing.Size(50, 20); this.textBox9.TabIndex = 37; // // groupBox1 // this.groupBox1.Controls.Add(this.textBox11); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.textBox2); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.textBox1); this.groupBox1.Controls.Add(this.textBox3); this.groupBox1.Controls.Add(this.textBox4); this.groupBox1.Controls.Add(this.textBox5); this.groupBox1.Location = new System.Drawing.Point(255, 27); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(266, 137); this.groupBox1.TabIndex = 41; this.groupBox1.TabStop = false; this.groupBox1.Text = "Main"; // // textBox11 // this.textBox11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox11.Location = new System.Drawing.Point(79, 0); this.textBox11.Name = "textBox11"; this.textBox11.Size = new System.Drawing.Size(50, 20); this.textBox11.TabIndex = 39; this.textBox11.Visible = false; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(144, 82); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(54, 13); this.label5.TabIndex = 38; this.label5.Text = "Buy Rate:"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(6, 80); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(53, 13); this.label4.TabIndex = 37; this.label4.Text = "Sell Rate:"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(6, 54); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(38, 13); this.label3.TabIndex = 36; this.label3.Text = "Name:"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(144, 25); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(35, 13); this.label2.TabIndex = 1; this.label2.Text = "Zone:"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(6, 25); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(36, 13); this.label1.TabIndex = 0; this.label1.Text = "Index:"; // // groupBox2 // this.groupBox2.Controls.Add(this.label10); this.groupBox2.Controls.Add(this.label9); this.groupBox2.Controls.Add(this.label8); this.groupBox2.Controls.Add(this.label7); this.groupBox2.Controls.Add(this.label6); this.groupBox2.Controls.Add(this.textBox6); this.groupBox2.Controls.Add(this.textBox10); this.groupBox2.Controls.Add(this.textBox9); this.groupBox2.Controls.Add(this.textBox7); this.groupBox2.Controls.Add(this.textBox8); this.groupBox2.Location = new System.Drawing.Point(527, 27); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(278, 112); this.groupBox2.TabIndex = 42; this.groupBox2.TabStop = false; this.groupBox2.Text = "Position"; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(7, 25); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(38, 13); this.label10.TabIndex = 44; this.label10.Text = "Pos X:"; // // label9 // this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(142, 25); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(38, 13); this.label9.TabIndex = 43; this.label9.Text = "Pos Z:"; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(6, 54); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(39, 13); this.label8.TabIndex = 42; this.label8.Text = "Pos H:"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(142, 54); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(39, 13); this.label7.TabIndex = 41; this.label7.Text = "Pos R:"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(7, 82); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(46, 13); this.label6.TabIndex = 39; this.label6.Text = "Y Layer:"; // // textBox10 // this.textBox10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox10.Location = new System.Drawing.Point(59, 78); this.textBox10.Name = "textBox10"; this.textBox10.Size = new System.Drawing.Size(50, 20); this.textBox10.TabIndex = 36; // // textBox7 // this.textBox7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox7.Location = new System.Drawing.Point(214, 23); this.textBox7.Name = "textBox7"; this.textBox7.Size = new System.Drawing.Size(50, 20); this.textBox7.TabIndex = 39; // // textBox8 // this.textBox8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBox8.Location = new System.Drawing.Point(214, 52); this.textBox8.Name = "textBox8"; this.textBox8.Size = new System.Drawing.Size(50, 20); this.textBox8.TabIndex = 38; // // groupBox4 // this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.groupBox4.Controls.Add(this.dgItems); this.groupBox4.Controls.Add(this.toolStrip2); this.groupBox4.Location = new System.Drawing.Point(255, 170); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(550, 291); this.groupBox4.TabIndex = 43; this.groupBox4.TabStop = false; this.groupBox4.Text = "Items"; // // dgItems // this.dgItems.AllowUserToAddRows = false; this.dgItems.AllowUserToDeleteRows = false; this.dgItems.BackgroundColor = System.Drawing.SystemColors.Control; this.dgItems.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dgItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgItems.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column7, this.Column1, this.Column2, this.Column3, this.Column4, this.Column5 }); this.dgItems.Dock = System.Windows.Forms.DockStyle.Fill; this.dgItems.EnableHeadersVisualStyles = false; this.dgItems.Location = new System.Drawing.Point(3, 16); this.dgItems.Name = "dgItems"; this.dgItems.RowHeadersVisible = false; this.dgItems.RowTemplate.Height = 32; this.dgItems.Size = new System.Drawing.Size(544, 247); this.dgItems.TabIndex = 0; this.dgItems.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgItems_CellContentClick); this.dgItems.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgItems_CellEndEdit); // // Column7 // this.Column7.HeaderText = ""; this.Column7.Name = "Column7"; this.Column7.Width = 32; // // Column1 // this.Column1.HeaderText = "ID"; this.Column1.Name = "Column1"; this.Column1.Width = 136; // // Column2 // this.Column2.HeaderText = "Name"; this.Column2.Name = "Column2"; this.Column2.ReadOnly = true; this.Column2.Width = 135; // // Column3 // this.Column3.HeaderText = "National"; this.Column3.Name = "Column3"; this.Column3.Width = 136; // // Column4 // this.Column4.HeaderText = "ShopID"; this.Column4.Name = "Column4"; this.Column4.Visible = false; this.Column4.Width = 50; // // Column5 // this.Column5.HeaderText = "OldItemID"; this.Column5.Name = "Column5"; this.Column5.Visible = false; // // toolStrip2 // this.toolStrip2.Dock = System.Windows.Forms.DockStyle.Bottom; this.toolStrip2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnDeleteSelected, this.toolStripSeparator1, this.btnAddItems, this.toolStripSeparator6, this.toolStripButton1 }); this.toolStrip2.Location = new System.Drawing.Point(3, 263); this.toolStrip2.Name = "toolStrip2"; this.toolStrip2.Size = new System.Drawing.Size(544, 25); this.toolStrip2.TabIndex = 1; this.toolStrip2.Text = "toolStrip2"; // // btnDeleteSelected // this.btnDeleteSelected.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnDeleteSelected.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnDeleteSelected.Name = "btnDeleteSelected"; this.btnDeleteSelected.Size = new System.Drawing.Size(62, 22); this.btnDeleteSelected.Text = "Save Item"; this.btnDeleteSelected.Click += new System.EventHandler(this.btnDeleteSelected_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // btnAddItems // this.btnAddItems.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnAddItems.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnAddItems.Name = "btnAddItems"; this.btnAddItems.Size = new System.Drawing.Size(60, 22); this.btnAddItems.Text = "Add Item"; this.btnAddItems.Click += new System.EventHandler(this.btnAddItems_Click); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); // // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Size = new System.Drawing.Size(91, 22); this.toolStripButton1.Text = "Delete Selected"; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(705, 473); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(100, 23); this.button2.TabIndex = 44; this.button2.Text = "Save"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1 }); this.statusStrip1.Location = new System.Drawing.Point(0, 509); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(816, 22); this.statusStrip1.TabIndex = 49; this.statusStrip1.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(39, 17); this.toolStripStatusLabel1.Text = "Ready"; // // exportStringToolStripMenuItem // this.exportStringToolStripMenuItem.Name = "exportStringToolStripMenuItem"; this.exportStringToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.exportStringToolStripMenuItem.Text = "Export String"; this.exportStringToolStripMenuItem.Click += new System.EventHandler(this.exportStringToolStripMenuItem_Click); // // ShopEditor // this.ClientSize = new System.Drawing.Size(816, 531); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.button2); this.Controls.Add(this.groupBox4); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox3); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.MaximizeBox = false; this.Name = "ShopEditor"; this.Text = "Shop Editor"; this.Load += new System.EventHandler(this.Exporter_Shop_Load); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.groupBox3.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgItems)).EndInit(); this.toolStrip2.ResumeLayout(false); this.toolStrip2.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public static void SetStatusErr(ToolStripStatusLabel label) { SetStatusLabel(label, "Error", Color.Red); }
internal static int OpenFile(Form1 form, int tabIdentity, String[] specificFileNames, bool showMessages, bool saveNewRecentFile, out List <String> errors) { CustomXtraTabControl pagesTabControl = form.pagesTabControl; ToolStripStatusLabel toolStripStatusLabel = form.toolStripStatusLabel; ToolStripProgressBar toolStripProgressBar = form.toolStripProgressBar; OpenFileDialog openFileDialog = form.openFileDialog; bool isWindowsHostsFile = false; int localTabIdentity = tabIdentity; errors = new List <String>(); openFileDialog.InitialDirectory = FileUtil.GetInitialFolder(form); openFileDialog.Multiselect = true; SetFileDialogFilter(openFileDialog); TrayManager.RestoreFormIfIsInTray(form); try { String[] fileNames; if (specificFileNames == null || specificFileNames.Length <= 0) { if (openFileDialog.ShowDialog() != DialogResult.OK) { return(tabIdentity); } fileNames = openFileDialog.FileNames; } else { fileNames = specificFileNames; } //Verify if file is a DtPad session if (fileNames.Length == 1 && fileNames[0].EndsWith(".dps")) { SessionManager.OpenSession(form, fileNames[0]); return(form.TabIdentity); } Application.DoEvents(); toolStripProgressBar.Value = 0; foreach (String fileName in fileNames) { //Verify if file is Windows hosts file if (fileName.Contains(@"drivers\etc\hosts")) { if (!SystemUtil.IsUserAdministrator()) { WindowManager.ShowAlertBox(form, LanguageUtil.GetCurrentLanguageString("UserNotAdmin", className)); } isWindowsHostsFile = true; } if (!showMessages) { if (!File.Exists(fileName)) { errors.Add(String.Format(LanguageUtil.GetCurrentLanguageString("NoMessageFileNotExists", className), fileName)); continue; } if (FileUtil.IsFileInUse(fileName)) { errors.Add(String.Format(LanguageUtil.GetCurrentLanguageString("NoMessageFileInUse", className), fileName)); continue; } if (FileUtil.IsFileTooLargeForDtPad(fileName)) { errors.Add(String.Format(LanguageUtil.GetCurrentLanguageString("NoMessageFileTooHeavy", className), fileName)); continue; } } else if (!File.Exists(fileName)) { WindowManager.ShowAlertBox(form, String.Format(LanguageUtil.GetCurrentLanguageString("FileNotExisting", className), fileName)); continue; } else if (FileUtil.IsFileInUse(fileName)) { WindowManager.ShowAlertBox(form, String.Format(LanguageUtil.GetCurrentLanguageString("FileInUse", className), fileName)); continue; } if (FileUtil.IsFileTooLargeForDtPad(fileName)) { WindowManager.ShowAlertBox(form, String.Format(LanguageUtil.GetCurrentLanguageString("FileTooHeavy", className), fileName)); continue; } //Cycle and check if the file is already open, in which case I select its tab and continue with the next one XtraTabPage tabPage; if (FileUtil.IsFileAlreadyOpen(form, fileName, out tabPage)) { pagesTabControl.SelectedTabPage = tabPage; toolStripProgressBar.PerformStep(); toolStripProgressBar.PerformStep(); toolStripProgressBar.PerformStep(); toolStripProgressBar.PerformStep(); toolStripProgressBar.Visible = false; continue; } //Verify if file is an archive try { ZipFile file = null; bool isZipFile; try { file = new ZipFile(fileName); isZipFile = file.TestArchive(false, TestStrategy.FindFirstError, form.Zip_Errors); } finally { if (file != null) { file.Close(); } } if (isZipFile) { WindowManager.ShowZipExtract(form, fileName); continue; } } catch (ZipException) { } toolStripProgressBar.Visible = true; toolStripProgressBar.PerformStep(); String fileContents; Encoding fileEncoding; bool anonymousFile = false; //Verify if file is a PDF if (fileName.EndsWith(".pdf")) { bool success; fileContents = PdfUtil.ExtractText(fileName, out success); if (!success) { WindowManager.ShowAlertBox(form, LanguageUtil.GetCurrentLanguageString("InvalidPdf", className)); return(tabIdentity); } fileEncoding = EncodingUtil.GetDefaultEncoding(); anonymousFile = true; } else { fileContents = FileUtil.ReadToEndWithEncoding(fileName, out fileEncoding); } bool favouriteFile = FavouriteManager.IsFileFavourite(fileName); if (!favouriteFile && saveNewRecentFile) { ConfigUtil.UpdateParameter("LastUserFolder", Path.GetDirectoryName(fileName)); FileListManager.SetNewRecentFile(form, fileName); } toolStripProgressBar.PerformStep(); CustomRichTextBox pageTextBox = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage); if (!String.IsNullOrEmpty(pageTextBox.Text) || !String.IsNullOrEmpty(ProgramUtil.GetFilenameTabPage(pagesTabControl.SelectedTabPage))) { localTabIdentity = TabManager.AddNewPage(form, localTabIdentity); } toolStripProgressBar.PerformStep(); //Row number check WindowManager.CheckLineNumbersForTextLenght(form, fileContents); FileInfo fileInfo = new FileInfo(fileName); pageTextBox = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage); //Verify if file is a tweet file if (fileName.EndsWith(".tweet") && !ColumnRulerManager.IsPanelOpen(form)) { ColumnRulerManager.TogglePanel(form); } pageTextBox.Text = fileContents.Replace(Environment.NewLine, ConstantUtil.newLine); pageTextBox.CustomOriginal = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage).Text.GetHashCode().ToString(); pageTextBox.CustomEncoding = fileEncoding.CodePage.ToString(); if (!anonymousFile) { String fileNameWithoutPath = Path.GetFileName(fileName); pageTextBox.CustomModified = false; ProgramUtil.SetFilenameTabPage(pagesTabControl.SelectedTabPage, fileName); pagesTabControl.SelectedTabPage.ImageIndex = fileInfo.IsReadOnly ? 2 : 0; pagesTabControl.SelectedTabPage.Text = fileNameWithoutPath; pagesTabControl.SelectedTabPage.Tooltip = fileName; pagesTabControl.SelectedTabPage.TooltipTitle = fileNameWithoutPath; form.Text = String.Format("DtPad - {0}", fileNameWithoutPath); TabManager.ToggleTabFileTools(form, true); } else { pageTextBox.CustomModified = true; } toolStripStatusLabel.Text = String.Format("{0} \"{1}\" {2}", LanguageUtil.GetCurrentLanguageString("File", className), Path.GetFileName(fileName), LanguageUtil.GetCurrentLanguageString("Opened", className)); toolStripProgressBar.PerformStep(); tabIdentity = localTabIdentity; if (!String.IsNullOrEmpty(fileInfo.Extension) && ConfigUtil.GetStringParameter("AutoFormatFiles").Contains(fileInfo.Extension)) { FormatManager.FormatXml(form); } if (ConfigUtil.GetBoolParameter("AutoOpenHostsConfigurator") && isWindowsHostsFile) { pagesTabControl.SelectedTabPage.Appearance.Header.ForeColor = ConfigUtil.GetColorParameter("ColorHostsConfigurator"); CustomFilesManager.OpenHostsSectionPanel(form); isWindowsHostsFile = false; } } } catch (Exception exception) { TabManager.ToggleTabFileTools(form, false); toolStripProgressBar.Visible = false; toolStripProgressBar.Value = 0; if (showMessages) { WindowManager.ShowErrorBox(form, exception.Message, exception); } } finally { toolStripProgressBar.Visible = false; toolStripProgressBar.Value = 0; } return(tabIdentity); }
//重新刷新数据库大小 public void refresh_DB(ToolStripStatusLabel label) { FileInfo fi = new FileInfo(Application.StartupPath + @"\source\StuContact.mdb"); label.Text = "当前数据库大小:" + fi.Length / 1024 + "KB"; }
private void InitializeComponent() { this.OKBtn = new Button(); this.CancelBtn = new Button(); this.TitleLbl = new Label(); this.TitleBox = new TextBox(); this.DetailsBox = new DefaultTextBox(); this.Pages = new TabControl(); this.DetailsPage = new TabPage(); this.Statusbar = new StatusStrip(); this.toolStripStatusLabel1 = new ToolStripStatusLabel(); this.Pages.SuspendLayout(); this.DetailsPage.SuspendLayout(); this.Statusbar.SuspendLayout(); base.SuspendLayout(); this.OKBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.OKBtn.DialogResult = System.Windows.Forms.DialogResult.OK; this.OKBtn.Location = new Point(308, 258); this.OKBtn.Name = "OKBtn"; this.OKBtn.Size = new System.Drawing.Size(75, 23); this.OKBtn.TabIndex = 3; this.OKBtn.Text = "OK"; this.OKBtn.UseVisualStyleBackColor = true; this.OKBtn.Click += new EventHandler(this.OKBtn_Click); this.CancelBtn.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CancelBtn.Location = new Point(389, 258); this.CancelBtn.Name = "CancelBtn"; this.CancelBtn.Size = new System.Drawing.Size(75, 23); this.CancelBtn.TabIndex = 4; this.CancelBtn.Text = "Cancel"; this.CancelBtn.UseVisualStyleBackColor = true; this.TitleLbl.AutoSize = true; this.TitleLbl.Location = new Point(12, 15); this.TitleLbl.Name = "TitleLbl"; this.TitleLbl.Size = new System.Drawing.Size(30, 13); this.TitleLbl.TabIndex = 0; this.TitleLbl.Text = "Title:"; this.TitleBox.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.TitleBox.Location = new Point(48, 12); this.TitleBox.Name = "TitleBox"; this.TitleBox.Size = new System.Drawing.Size(416, 20); this.TitleBox.TabIndex = 1; this.DetailsBox.AcceptsReturn = true; this.DetailsBox.AcceptsTab = true; this.DetailsBox.DefaultText = "(enter details here)"; this.DetailsBox.Dock = DockStyle.Fill; this.DetailsBox.Location = new Point(3, 25); this.DetailsBox.Multiline = true; this.DetailsBox.Name = "DetailsBox"; this.DetailsBox.ScrollBars = ScrollBars.Vertical; this.DetailsBox.Size = new System.Drawing.Size(438, 160); this.DetailsBox.TabIndex = 2; this.DetailsBox.Text = "(enter details here)"; this.Pages.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.Pages.Controls.Add(this.DetailsPage); this.Pages.Location = new Point(12, 38); this.Pages.Name = "Pages"; this.Pages.SelectedIndex = 0; this.Pages.Size = new System.Drawing.Size(452, 214); this.Pages.TabIndex = 5; this.DetailsPage.Controls.Add(this.DetailsBox); this.DetailsPage.Controls.Add(this.Statusbar); this.DetailsPage.Location = new Point(4, 22); this.DetailsPage.Name = "DetailsPage"; this.DetailsPage.Padding = new System.Windows.Forms.Padding(3); this.DetailsPage.Size = new System.Drawing.Size(444, 188); this.DetailsPage.TabIndex = 0; this.DetailsPage.Text = "Details"; this.DetailsPage.UseVisualStyleBackColor = true; this.Statusbar.Dock = DockStyle.Top; this.Statusbar.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel1 }); this.Statusbar.Location = new Point(3, 3); this.Statusbar.Name = "Statusbar"; this.Statusbar.Size = new System.Drawing.Size(438, 22); this.Statusbar.SizingGrip = false; this.Statusbar.TabIndex = 3; this.Statusbar.Text = "statusStrip1"; this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(202, 17); this.toolStripStatusLabel1.Text = "Note: HTML tags are supported here."; base.AcceptButton = this.OKBtn; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.CancelButton = this.CancelBtn; base.ClientSize = new System.Drawing.Size(476, 293); base.Controls.Add(this.Pages); base.Controls.Add(this.TitleBox); base.Controls.Add(this.TitleLbl); base.Controls.Add(this.CancelBtn); base.Controls.Add(this.OKBtn); base.MinimizeBox = false; base.Name = "BackgroundForm"; base.ShowIcon = false; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Background Item"; this.Pages.ResumeLayout(false); this.DetailsPage.ResumeLayout(false); this.DetailsPage.PerformLayout(); this.Statusbar.ResumeLayout(false); this.Statusbar.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private static bool SaveFile(bool saveNewRecentFile, Form1 form, bool forceSaveAs, bool forceBackup, bool savingAll = false) { XtraTabControl pagesTabControl = form.pagesTabControl; ToolStripStatusLabel toolStripStatusLabel = form.toolStripStatusLabel; ToolStripProgressBar toolStripProgressBar = form.toolStripProgressBar; SaveFileDialog saveFileDialog = form.saveFileDialog; try { String fileName; if (String.IsNullOrEmpty(ProgramUtil.GetFilenameTabPage(pagesTabControl.SelectedTabPage)) || forceSaveAs) { saveFileDialog.InitialDirectory = FileUtil.GetInitialFolder(form); SetFileDialogFilter(saveFileDialog); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.End); //Useful to save all execution DialogResult saveNewResult = saveFileDialog.ShowDialog(); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.Begin); //Useful to save all execution if (saveNewResult != DialogResult.OK) { toolStripProgressBar.Visible = false; return(false); } fileName = saveFileDialog.FileName; } else { fileName = ProgramUtil.GetFilenameTabPage(pagesTabControl.SelectedTabPage); } //Check that fileName is not already opened into another tab foreach (XtraTabPage tabPage in pagesTabControl.TabPages) { if (tabPage == pagesTabControl.SelectedTabPage || ProgramUtil.GetFilenameTabPage(tabPage) != fileName) { continue; } pagesTabControl.SelectedTabPage = tabPage; TabsUpdate(pagesTabControl, savingAll, UpdatePhase.End); //Useful to save all execution WindowManager.ShowAlertBox(form, LanguageUtil.GetCurrentLanguageString("FileAlreadyOpen", className)); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.Begin); //Useful to save all execution return(false); } bool favouriteFile = FavouriteManager.IsFileFavourite(fileName); Application.DoEvents(); toolStripProgressBar.Value = 0; toolStripProgressBar.Visible = true; toolStripProgressBar.PerformStep(); if (!favouriteFile) { ConfigUtil.UpdateParameter("LastUserFolder", Path.GetDirectoryName(fileName)); } FileInfo fileInfo = new FileInfo(fileName); if (fileInfo.IsReadOnly && fileInfo.Exists) { toolStripProgressBar.Visible = false; TabsUpdate(pagesTabControl, savingAll, UpdatePhase.End); //Useful to save all execution WindowManager.ShowInfoBox(form, LanguageUtil.GetCurrentLanguageString("SavingReadonly", className)); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.Begin); //Useful to save all execution return(SaveFile(form, true)); } bool backupConfigActive = ConfigUtil.GetBoolParameter("BackupEnabled"); if ((!String.IsNullOrEmpty(ProgramUtil.GetFilenameTabPage(pagesTabControl.SelectedTabPage)) && !forceSaveAs) && (forceBackup || backupConfigActive)) { TabsUpdate(pagesTabControl, savingAll, UpdatePhase.End); //Useful to save all execution bool saved = BackupFileOnSaving(form, fileName); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.Begin); //Useful to save all execution if (saved == false) { toolStripProgressBar.Visible = false; return(false); } } toolStripProgressBar.PerformStep(); if (SaveFileCoreWithEncoding(form, fileName, savingAll) == false) { toolStripProgressBar.Visible = false; return(false); } if (!favouriteFile && saveNewRecentFile) { FileListManager.SetNewRecentFile(form, fileName); } if (CustomFilesManager.IsHostsSectionPanelOpen(form)) { CustomFilesManager.GetSections(form, false); } toolStripProgressBar.PerformStep(); CustomRichTextBox pageTextBox = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage); ProgramUtil.SetFilenameTabPage(pagesTabControl.SelectedTabPage, fileName); pagesTabControl.SelectedTabPage.ImageIndex = 0; pagesTabControl.SelectedTabPage.Text = Path.GetFileName(fileName); pageTextBox.CustomModified = false; pageTextBox.CustomOriginal = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage).Text.GetHashCode().ToString(); form.Text = String.Format("DtPad - {0}", Path.GetFileName(fileName)); toolStripStatusLabel.Text = String.Format("{0} \"{1}\" {2}", LanguageUtil.GetCurrentLanguageString("File", className), Path.GetFileName(fileName), LanguageUtil.GetCurrentLanguageString("Saved", className)); TabManager.ToggleTabFileTools(form, true); toolStripProgressBar.PerformStep(); toolStripProgressBar.Visible = false; } catch (Exception exception) { TabManager.ToggleTabFileTools(form, false); toolStripProgressBar.Visible = false; TabsUpdate(pagesTabControl, savingAll, UpdatePhase.End); //Useful to save all execution WindowManager.ShowErrorBox(form, exception.Message, exception); TabsUpdate(pagesTabControl, savingAll, UpdatePhase.Begin); //Useful to save all execution return(false); } return(true); }
public void SetUp() { toolStripStatusLabel = new ToolStripStatusLabel(); progressMonitor = new ObservableProgressMonitor(); }
internal static bool SaveAsPdf(Form1 form) { XtraTabControl pagesTabControl = form.pagesTabControl; CustomRichTextBox pageTextBox = ProgramUtil.GetPageTextBox(pagesTabControl.SelectedTabPage); SaveFileDialog saveFileDialog = form.saveFileDialog; ToolStripStatusLabel toolStripStatusLabel = form.toolStripStatusLabel; ToolStripProgressBar toolStripProgressBar = form.toolStripProgressBar; if (String.IsNullOrEmpty(pageTextBox.Text)) { WindowManager.ShowInfoBox(form, LanguageUtil.GetCurrentLanguageString("NoTextForPDF", className)); return(false); } try { saveFileDialog.InitialDirectory = FileUtil.GetInitialFolder(form); saveFileDialog.Filter = LanguageUtil.GetCurrentLanguageString("PDFFile", className); //"PDF document (*.pdf)|*.pdf"; saveFileDialog.FilterIndex = 0; String filenameTabPage = ProgramUtil.GetFilenameTabPage(pagesTabControl.SelectedTabPage); if (String.IsNullOrEmpty(filenameTabPage)) { saveFileDialog.FileName = "*.pdf"; } else if (filenameTabPage.Contains(".")) { saveFileDialog.FileName = filenameTabPage.Substring(0, filenameTabPage.LastIndexOf('.')) + ".pdf"; } else { saveFileDialog.FileName = filenameTabPage + ".pdf"; } if (saveFileDialog.ShowDialog() != DialogResult.OK) { toolStripProgressBar.Visible = false; return(false); } Application.DoEvents(); toolStripProgressBar.Value = 0; toolStripProgressBar.Visible = true; String fileName = saveFileDialog.FileName; toolStripProgressBar.PerformStep(); ConfigUtil.UpdateParameter("LastUserFolder", Path.GetDirectoryName(fileName)); FileInfo fileInfo = new FileInfo(fileName); if (fileInfo.IsReadOnly && fileInfo.Exists) { toolStripProgressBar.Visible = false; WindowManager.ShowInfoBox(form, LanguageUtil.GetCurrentLanguageString("SavingReadonly", className)); return(SaveAsPdf(form)); } toolStripProgressBar.PerformStep(); String fileTitle = fileName.Substring(0, fileName.LastIndexOf(".pdf")); //Document document = new Document(); //FileStream fileStream = File.Create(fileName); //PdfWriter.GetInstance(document, fileStream); //document.Open(); //document.AddTitle(fileTitle); //document.AddCreationDate(); //document.AddCreator("DtPad " + AssemblyUtil.AssemblyVersion); //document.Add(new Paragraph(pageTextBox.Text)); //if (document.IsOpen()) //{ // document.CloseDocument(); //} //fileStream.Dispose(); PdfUtil.SaveText(fileName, fileTitle, pageTextBox.Text); toolStripProgressBar.PerformStep(); toolStripStatusLabel.Text = String.Format("{0} \"{1}\" {2}", LanguageUtil.GetCurrentLanguageString("File", className), Path.GetFileName(fileName), LanguageUtil.GetCurrentLanguageString("Saved", className)); toolStripProgressBar.PerformStep(); toolStripProgressBar.Visible = false; OtherManager.StartProcess(form, fileName); saveFileDialog.FileName = "*.txt"; return(true); } catch (Exception exception) { toolStripProgressBar.Visible = false; saveFileDialog.FileName = "*.txt"; WindowManager.ShowErrorBox(form, exception.Message, exception); return(false); } }
/// /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// private void InitializeComponent() { this.ButtonOK = new System.Windows.Forms.Button(); this.ListViewResult = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.ButtonSearch = new System.Windows.Forms.Button(); this.TextBoxSearch = new System.Windows.Forms.TextBox(); this.StatusStipMain = new System.Windows.Forms.StatusStrip(); this.ToolStripLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.ButtonCancel = new System.Windows.Forms.Button(); this.StatusStipMain.SuspendLayout(); this.SuspendLayout(); // // ButtonOK // this.ButtonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.ButtonOK.Location = new System.Drawing.Point(474, 274); this.ButtonOK.Name = "ButtonOK"; this.ButtonOK.Size = new System.Drawing.Size(75, 23); this.ButtonOK.TabIndex = 6; this.ButtonOK.Text = "OK"; this.ButtonOK.UseVisualStyleBackColor = true; this.ButtonOK.Click += new System.EventHandler(this.ButtonOK_Click); // // ListViewResult // this.ListViewResult.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.ListViewResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2, this.columnHeader3 }); this.ListViewResult.FullRowSelect = true; this.ListViewResult.GridLines = true; this.ListViewResult.HideSelection = false; this.ListViewResult.Location = new System.Drawing.Point(12, 39); this.ListViewResult.Name = "ListViewResult"; this.ListViewResult.Size = new System.Drawing.Size(618, 229); this.ListViewResult.Sorting = System.Windows.Forms.SortOrder.Ascending; this.ListViewResult.TabIndex = 10; this.ListViewResult.UseCompatibleStateImageBehavior = false; this.ListViewResult.View = System.Windows.Forms.View.Details; this.ListViewResult.DoubleClick += new System.EventHandler(this.ListViewResult_DoubleClick); // // columnHeader1 // this.columnHeader1.Text = "Projektname"; this.columnHeader1.Width = 76; // // columnHeader2 // this.columnHeader2.Text = "Pfad"; this.columnHeader2.Width = 89; // // columnHeader3 // this.columnHeader3.Text = "Erweiterung"; this.columnHeader3.Width = 223; // // ButtonSearch // this.ButtonSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ButtonSearch.Enabled = false; this.ButtonSearch.Location = new System.Drawing.Point(530, 9); this.ButtonSearch.Name = "ButtonSearch"; this.ButtonSearch.Size = new System.Drawing.Size(100, 23); this.ButtonSearch.TabIndex = 9; this.ButtonSearch.Text = "Suchen"; this.ButtonSearch.UseVisualStyleBackColor = true; this.ButtonSearch.Click += new System.EventHandler(this.ButtonSearch_Click); // // TextBoxSearch // this.TextBoxSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.TextBoxSearch.Location = new System.Drawing.Point(12, 11); this.TextBoxSearch.Name = "TextBoxSearch"; this.TextBoxSearch.Size = new System.Drawing.Size(512, 20); this.TextBoxSearch.TabIndex = 8; this.TextBoxSearch.TextChanged += new System.EventHandler(this.TextBoxSearch_TextChanged); // // StatusStipMain // this.StatusStipMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripLabel }); this.StatusStipMain.Location = new System.Drawing.Point(0, 301); this.StatusStipMain.Name = "StatusStipMain"; this.StatusStipMain.Size = new System.Drawing.Size(642, 22); this.StatusStipMain.TabIndex = 13; this.StatusStipMain.Text = "statusStrip1"; // // ToolStripLabel // this.ToolStripLabel.Name = "ToolStripLabel"; this.ToolStripLabel.Size = new System.Drawing.Size(627, 17); this.ToolStripLabel.Spring = true; this.ToolStripLabel.Text = "Suchbegriff eingeben..."; this.ToolStripLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // ButtonCancel // this.ButtonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.ButtonCancel.Location = new System.Drawing.Point(555, 274); this.ButtonCancel.Name = "ButtonCancel"; this.ButtonCancel.Size = new System.Drawing.Size(75, 23); this.ButtonCancel.TabIndex = 15; this.ButtonCancel.Text = "Abbrechen"; this.ButtonCancel.UseVisualStyleBackColor = true; this.ButtonCancel.Click += new System.EventHandler(this.btnCancel_Click); // // Projektsuche // this.AcceptButton = this.ButtonSearch; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(642, 323); this.Controls.Add(this.ButtonCancel); this.Controls.Add(this.StatusStipMain); this.Controls.Add(this.ListViewResult); this.Controls.Add(this.ButtonSearch); this.Controls.Add(this.TextBoxSearch); this.Controls.Add(this.ButtonOK); this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(450, 200); this.Name = "Projektsuche"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Projektsuche"; this.Load += new System.EventHandler(this.Projektsuche_Load); this.StatusStipMain.ResumeLayout(false); this.StatusStipMain.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MoonstoneEditor)); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.button5 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.button1 = new System.Windows.Forms.Button(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.btnAddItems = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.btnDeleteSelected = new System.Windows.Forms.ToolStripButton(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.dgItems = new System.Windows.Forms.DataGridView(); this.Column7 = new System.Windows.Forms.DataGridViewImageColumn(); this.GiftIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ItemName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Type = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GiftCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GiftProb = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.GiftFlag = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.toolStrip2 = new System.Windows.Forms.ToolStrip(); this.exportlodToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fileExportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.groupBox1.SuspendLayout(); this.statusStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgItems)).BeginInit(); this.groupBox4.SuspendLayout(); this.toolStrip2.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(39, 17); this.toolStripStatusLabel1.Text = "Ready"; // // button5 // this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button5.Location = new System.Drawing.Point(158, 17); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(32, 32); this.button5.TabIndex = 49; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); // // button4 // this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button4.Location = new System.Drawing.Point(120, 17); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(32, 32); this.button4.TabIndex = 48; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // // button3 // this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.Location = new System.Drawing.Point(44, 17); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(32, 32); this.button3.TabIndex = 47; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button2 // this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(6, 17); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(32, 32); this.button2.TabIndex = 46; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // groupBox1 // this.groupBox1.Controls.Add(this.button5); this.groupBox1.Controls.Add(this.button4); this.groupBox1.Controls.Add(this.button3); this.groupBox1.Controls.Add(this.button1); this.groupBox1.Controls.Add(this.button2); this.groupBox1.Location = new System.Drawing.Point(14, 27); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(200, 55); this.groupBox1.TabIndex = 51; this.groupBox1.TabStop = false; this.groupBox1.Text = "Category"; // // button1 // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Location = new System.Drawing.Point(82, 17); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(32, 32); this.button1.TabIndex = 45; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Size = new System.Drawing.Size(91, 22); this.toolStripButton1.Text = "Delete Selected"; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); // // btnAddItems // this.btnAddItems.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnAddItems.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnAddItems.Name = "btnAddItems"; this.btnAddItems.Size = new System.Drawing.Size(60, 22); this.btnAddItems.Text = "Add Item"; this.btnAddItems.Click += new System.EventHandler(this.btnAddItems_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // btnDeleteSelected // this.btnDeleteSelected.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.btnDeleteSelected.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnDeleteSelected.Name = "btnDeleteSelected"; this.btnDeleteSelected.Size = new System.Drawing.Size(62, 22); this.btnDeleteSelected.Text = "Save Item"; this.btnDeleteSelected.Click += new System.EventHandler(this.btnDeleteSelected_Click); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1 }); this.statusStrip1.Location = new System.Drawing.Point(0, 562); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(707, 22); this.statusStrip1.TabIndex = 52; this.statusStrip1.Text = "statusStrip1"; // // dgItems // this.dgItems.AllowUserToAddRows = false; this.dgItems.AllowUserToDeleteRows = false; this.dgItems.BackgroundColor = System.Drawing.SystemColors.Control; this.dgItems.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dgItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgItems.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column7, this.GiftIndex, this.ItemName, this.Type, this.GiftCount, this.GiftProb, this.GiftFlag, this.ID }); this.dgItems.Dock = System.Windows.Forms.DockStyle.Fill; this.dgItems.EnableHeadersVisualStyles = false; this.dgItems.Location = new System.Drawing.Point(3, 16); this.dgItems.Name = "dgItems"; this.dgItems.RowHeadersVisible = false; this.dgItems.RowTemplate.Height = 32; this.dgItems.Size = new System.Drawing.Size(678, 427); this.dgItems.TabIndex = 0; // // Column7 // this.Column7.HeaderText = ""; this.Column7.Name = "Column7"; this.Column7.Width = 32; // // GiftIndex // this.GiftIndex.HeaderText = "ID"; this.GiftIndex.Name = "GiftIndex"; this.GiftIndex.Width = 50; // // ItemName // this.ItemName.HeaderText = "ItemName"; this.ItemName.Name = "ItemName"; this.ItemName.ReadOnly = true; this.ItemName.Width = 275; // // Type // this.Type.HeaderText = "Type"; this.Type.Name = "Type"; this.Type.Visible = false; this.Type.Width = 75; // // GiftCount // this.GiftCount.HeaderText = "GiftCount"; this.GiftCount.Name = "GiftCount"; // // GiftProb // this.GiftProb.HeaderText = "GiftProb"; this.GiftProb.Name = "GiftProb"; // // GiftFlag // this.GiftFlag.HeaderText = "GiftFlag"; this.GiftFlag.Name = "GiftFlag"; // // ID // this.ID.HeaderText = "Index"; this.ID.Name = "ID"; this.ID.Visible = false; this.ID.Width = 60; // // groupBox4 // this.groupBox4.Controls.Add(this.dgItems); this.groupBox4.Controls.Add(this.toolStrip2); this.groupBox4.Location = new System.Drawing.Point(11, 88); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(684, 471); this.groupBox4.TabIndex = 50; this.groupBox4.TabStop = false; this.groupBox4.Text = "Items"; // // toolStrip2 // this.toolStrip2.Dock = System.Windows.Forms.DockStyle.Bottom; this.toolStrip2.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnDeleteSelected, this.toolStripSeparator1, this.btnAddItems, this.toolStripSeparator6, this.toolStripButton1 }); this.toolStrip2.Location = new System.Drawing.Point(3, 443); this.toolStrip2.Name = "toolStrip2"; this.toolStrip2.Size = new System.Drawing.Size(678, 25); this.toolStrip2.TabIndex = 1; this.toolStrip2.Text = "toolStrip2"; // // exportlodToolStripMenuItem // this.exportlodToolStripMenuItem.Name = "exportlodToolStripMenuItem"; this.exportlodToolStripMenuItem.Size = new System.Drawing.Size(131, 22); this.exportlodToolStripMenuItem.Text = "Export .lod"; this.exportlodToolStripMenuItem.Click += new System.EventHandler(this.exportlodToolStripMenuItem_Click_1); // // fileExportToolStripMenuItem // this.fileExportToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exportlodToolStripMenuItem }); this.fileExportToolStripMenuItem.Name = "fileExportToolStripMenuItem"; this.fileExportToolStripMenuItem.Size = new System.Drawing.Size(74, 20); this.fileExportToolStripMenuItem.Text = "File Export"; // // menuStrip1 // this.menuStrip1.AllowMerge = false; this.menuStrip1.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileExportToolStripMenuItem }); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(707, 24); this.menuStrip1.TabIndex = 49; this.menuStrip1.Text = "menuStrip1"; // // MoonstoneEditor // this.ClientSize = new System.Drawing.Size(707, 584); this.Controls.Add(this.groupBox1); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.groupBox4); this.Controls.Add(this.menuStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "MoonstoneEditor"; this.Text = "MoonstoneEditor"; this.Load += new System.EventHandler(this.MoonstoneEditor_Load); this.groupBox1.ResumeLayout(false); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgItems)).EndInit(); this.groupBox4.ResumeLayout(false); this.groupBox4.PerformLayout(); this.toolStrip2.ResumeLayout(false); this.toolStrip2.PerformLayout(); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { mainPanel = new System.Windows.Forms.Panel(); listTraces = new System.Windows.Forms.ListView(); dateTimeHeader = new System.Windows.Forms.ColumnHeader(); executionHeader = new System.Windows.Forms.ColumnHeader(); activityHeader = new System.Windows.Forms.ColumnHeader(); actionHeader = new System.Windows.Forms.ColumnHeader(); toHeader = new System.Windows.Forms.ColumnHeader(); statusStrip = new System.Windows.Forms.StatusStrip(); traceCountStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); groupByStripMenu = new System.Windows.Forms.MenuStrip(); groupByStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); groupByNoneStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); groupByActivityStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); groupByProcessStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); groupByInOutStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); mainPanel.SuspendLayout(); statusStrip.SuspendLayout(); SuspendLayout(); mainPanel.Controls.Add(listTraces); mainPanel.Controls.Add(groupByStripMenu); mainPanel.Dock = System.Windows.Forms.DockStyle.Fill; mainPanel.Location = new System.Drawing.Point(0, 0); mainPanel.Name = "mainPanel"; mainPanel.Size = new System.Drawing.Size(300, 533); mainPanel.TabIndex = 0; listTraces.AllowColumnReorder = true; listTraces.Columns.AddRange(new System.Windows.Forms.ColumnHeader[5] { actionHeader, dateTimeHeader, executionHeader, activityHeader, toHeader }); listTraces.Dock = System.Windows.Forms.DockStyle.Fill; listTraces.FullRowSelect = true; listTraces.Location = new System.Drawing.Point(0, 25); listTraces.MultiSelect = false; listTraces.Name = "listTraces"; listTraces.ShowItemToolTips = true; listTraces.Size = new System.Drawing.Size(300, 486); listTraces.TabIndex = 2; listTraces.HideSelection = false; listTraces.View = System.Windows.Forms.View.Details; listTraces.SelectedIndexChanged += new System.EventHandler(listTraces_SelectedIndexChanged); listTraces.DoubleClick += new System.EventHandler(listTraces_DoubleClick); listTraces.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(listTraces_ColumnClick); listTraces.RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(listTraces_RetrieveVirtualItem); dateTimeHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_Header0"); dateTimeHeader.Width = 150; executionHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_Header1"); executionHeader.Width = 120; activityHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_Header2"); activityHeader.Width = 100; actionHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_Header3"); actionHeader.Width = 150; toHeader.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_Header4"); statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[1] { traceCountStatusLabel }); statusStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table; statusStrip.Location = new System.Drawing.Point(0, 511); statusStrip.Name = "statusStrip"; statusStrip.ShowItemToolTips = true; statusStrip.Size = new System.Drawing.Size(300, 22); statusStrip.SizingGrip = false; statusStrip.TabStop = false; traceCountStatusLabel.Name = "traceCountStatusLabel"; traceCountStatusLabel.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MsgView_CountTip"); groupByNoneStripMenuItem.Name = "groupMessageByNoneStripMenuItem"; groupByNoneStripMenuItem.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GNone"); groupByNoneStripMenuItem.Click += new System.EventHandler(groupByNoneStripMenuItem_Click); groupByNoneStripMenuItem.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupByNoneTip"); groupByActivityStripMenuItem.Name = "groupMessageByActivityStripMenuItem"; groupByActivityStripMenuItem.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GActivity"); groupByActivityStripMenuItem.Click += new System.EventHandler(groupByActivityStripMenuItem_Click); groupByActivityStripMenuItem.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupByActivityTip"); groupByProcessStripMenuItem.Name = "groupByProcessStripMenuItem"; groupByProcessStripMenuItem.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GProcess"); groupByProcessStripMenuItem.Click += new System.EventHandler(groupByProcessStripMenuItem_Click); groupByProcessStripMenuItem.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupByProcessTip"); groupByInOutStripMenuItem.Name = "groupByInOutStripMenuItem"; groupByInOutStripMenuItem.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GIO"); groupByInOutStripMenuItem.Click += new System.EventHandler(groupByInOutStripMenuItem_Click); groupByInOutStripMenuItem.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupByInOutTip"); groupByStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[4] { groupByNoneStripMenuItem, groupByActivityStripMenuItem, groupByProcessStripMenuItem, groupByInOutStripMenuItem }); groupByStripMenuItem.Name = "groupMessageByStripMenuItem"; groupByStripMenuItem.Text = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupBy"); groupByStripMenuItem.ToolTipText = Microsoft.Tools.ServiceModel.TraceViewer.SR.GetString("MainFrm_GroupByTip"); groupByStripMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[1] { groupByStripMenuItem }); groupByStripMenu.Location = new System.Drawing.Point(0, 0); groupByStripMenu.Name = "groupMessageByStripMenu"; groupByStripMenu.Size = new System.Drawing.Size(636, 24); groupByStripMenu.TabIndex = 1; groupByStripMenu.ShowItemToolTips = true; base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.Controls.Add(mainPanel); base.Name = "MessageViewControl"; base.Size = new System.Drawing.Size(300, 533); mainPanel.ResumeLayout(performLayout: false); mainPanel.PerformLayout(); statusStrip.ResumeLayout(performLayout: false); ResumeLayout(performLayout: false); }