public FilterRevisionsHelper(ToolStripTextBox textBox, ToolStripDropDownButton dropDownButton, RevisionGrid revisionGrid, ToolStripLabel label, ToolStripButton showFirstParentButton, Form form) : this() { _NO_TRANSLATE_dropDownButton = dropDownButton; _NO_TRANSLATE_textBox = textBox; _NO_TRANSLATE_revisionGrid = revisionGrid; _NO_TRANSLATE_label = label; _NO_TRANSLATE_showFirstParentButton = showFirstParentButton; _NO_TRANSLATE_form = form; _NO_TRANSLATE_dropDownButton.DropDownItems.AddRange(new ToolStripItem[] { _commitToolStripMenuItem, _committerToolStripMenuItem, _authorToolStripMenuItem, _diffContainsToolStripMenuItem }); _NO_TRANSLATE_showFirstParentButton.Checked = AppSettings.ShowFirstParent; _NO_TRANSLATE_label.Click += ToolStripLabelClick; _NO_TRANSLATE_textBox.Leave += ToolStripTextBoxFilterLeave; _NO_TRANSLATE_textBox.KeyPress += ToolStripTextBoxFilterKeyPress; _NO_TRANSLATE_showFirstParentButton.Click += ToolStripShowFirstParentButtonClick; _NO_TRANSLATE_revisionGrid.ShowFirstParentsToggled += RevisionGridShowFirstParentsToggled; }
/// <summary> /// Convenience function to make it easier to build Menu option that show the 'Field' and then allow a sideclick to edit them. /// </summary> /// <returns> /// The menu property edit. /// </returns> /// <param name='Title'> /// Title. /// </param> /// <param name='ToolTip'> /// Tool tip. /// </param> /// <param name='action'> /// Action. /// </param> public static ToolStripMenuItem BuildMenuPropertyEdit(string Label, string Title, string ToolTip, KeyEventHandler action, int truncate) { ToolStripMenuItem TableCaptionLabel = new ToolStripMenuItem(); TableCaptionLabel.Text = String.Format(Label, Title); // // Truncate text if specified // if (truncate > 0 && truncate < TableCaptionLabel.Text.Length) { TableCaptionLabel.Text = TableCaptionLabel.Text.Substring(0, truncate) + "..."; } TableCaptionLabel.ToolTipText = ToolTip; ContextMenuStrip TableCaptionMenu = new ContextMenuStrip(); ToolStripTextBox TableCaptionText = new ToolStripTextBox(); TableCaptionLabel.Tag = Label; // this is the format label // label is a format string like "Field: {0}" TableCaptionText.Tag = TableCaptionLabel; TableCaptionText.Text = Title; TableCaptionText.KeyDown += action; TableCaptionMenu.Items.Add(TableCaptionText); TableCaptionLabel.DropDown = TableCaptionMenu; return(TableCaptionLabel); }
/// <summary> /// Set the text value without firing TextChanged event /// </summary> /// <param name="box">ToolstripTextBox to set</param> /// <param name="text">The text value to set</param> public static void SetText(this ToolStripTextBox box, string text) { Type t = typeof(ToolStripTextBox); var txtBox = (TextBox)t.GetProperty("TextBox").GetValue(box); txtBox.SetText(text); }
private void toolStripTextBoxLocation_TextChanged(object sender, EventArgs e) { ToolStripTextBox tsTextBox = (ToolStripTextBox)sender; updateCurrentLocationName(tsTextBox.Text); clearStatusBar(); }
void LoggersContextMenuStripOpening(object sender, System.ComponentModel.CancelEventArgs e) { Logger ContextLogger = (Logger)ActiveLoggersCheckedListBox.SelectedItem; LoggersContextMenuStrip.Items.Clear(); this.LoggersContextMenuStrip.Items.Add("Log Level"); //add LogLoggingLevelComboBox ToolStripComboBox LoggerLoggingLevelComboBox; LoggerLoggingLevelComboBox = new System.Windows.Forms.ToolStripComboBox(); LoggerLoggingLevelComboBox.DropDownStyle = ComboBoxStyle.DropDownList; foreach (string name in Enum.GetNames(typeof(LoggingEntery.EnteryTypes))) { LoggerLoggingLevelComboBox.Items.Add(name); } LoggerLoggingLevelComboBox.SelectedIndex = ContextLogger.LoggigLevel; LoggerLoggingLevelComboBox.SelectedIndexChanged += new System.EventHandler(this.LoggerLoggingLevelComboBoxIndexChanged); this.LoggersContextMenuStrip.Items.Add(LoggerLoggingLevelComboBox); // if (ContextLogger.ExtraData != null) { ToolStripTextBox ExtraDataTextBox = new ToolStripTextBox(); ExtraDataTextBox.Text = ContextLogger.ExtraData; ExtraDataTextBox.TextChanged += new System.EventHandler(this.LoggerExtraDataTextChanged); this.LoggersContextMenuStrip.Items.Add(ExtraDataTextBox); } }
private void Initialize() { this.InitializeComponent(); this.btnModify = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolModify"); this.btnAdd = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolAdd"); this.btnDel = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolDel"); this.btnExport = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolExport"); this.btnImport = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolImport"); this.splitContainer1 = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1"); this.btnExit = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("toolExit"); this.textBoxWaitKey = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey"); this.aisinoDataGrid1 = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1"); this.aisinoDataGrid1.GoToPageEvent += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent); this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent); this.btnAdd.Click += new EventHandler(this.btnAdd_Click); this.btnModify.Click += new EventHandler(this.btnModify_Click); this.btnDel.Click += new EventHandler(this.btnDel_Click); this.textBoxWaitKey.TextChanged += new EventHandler(this.textBoxWaitKey_TextChanged); this.btnExport.Click += new EventHandler(this.btnExport_Click); this.btnImport.Click += new EventHandler(this.btnImport_Click); this.textBoxWaitKey.ToolTipText = "输入关键字(编码,名称)"; this.toolSearchLbl = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl"); this.toolSearchLbl.Alignment = ToolStripItemAlignment.Right; this.btnExit.Click += new EventHandler(this.btnExit_Click); this.toolStrip1 = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1"); ControlStyleUtil.SetToolStripStyle(this.toolStrip1); this.textBoxWaitKey.Paint += new PaintEventHandler(this.textBoxWaitKey_Paint); this.textBoxWaitKey.Alignment = ToolStripItemAlignment.Right; this.btnImport.Enabled = false; this.btnExport.Enabled = false; this.splitContainer1.Panel1Collapsed = true; this.aisinoDataGrid1.ShowAllChkVisible = false; }
//other alg public void TextboxDataEntry(RichTextBox richTextBox, ToolStripTextBox textBox) { StreamReader ifstream = new StreamReader(textBox.Text, System.Text.Encoding.Default); richTextBox.Text += ifstream.ReadToEnd(); ifstream.Close(); }
private void Initialize() { this.InitializeComponent(); this.textBoxWaitKey = this.xmlComponentLoader1.GetControlByName <ToolStripTextBox>("textBoxWaitKey"); this.btnQuery = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnQuery"); this.btnQuery.Visible = false; this.aisinoDataGrid1 = this.xmlComponentLoader1.GetControlByName <AisinoDataGrid>("aisinoDataGrid1"); this.treeViewBM1 = this.xmlComponentLoader1.GetControlByName <TreeViewBM>("treeViewBM1"); this.splitContainer1 = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1"); this.textBoxWaitKey.TextChanged += new EventHandler(this.textBoxWaitKey_TextChanged); this.btnQuery.Click += new EventHandler(this.btnQuery_Click); this.aisinoDataGrid1.GoToPageEvent += new EventHandler <GoToPageEventArgs>(this.aisinoDataGrid1_GoToPageEvent); this.aisinoDataGrid1.DataGridRowDbClickEvent += new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowDbClickEvent); this.aisinoDataGrid1.DataGridRowKeyDown += new KeyEventHandler(this.aisinoDataGrid1_DataGridRowKeyDown); this.aisinoDataGrid1.ShowAllChkVisible = false; this.treeViewBM1.onTreeNodeClick += new TreeViewBM.OnTreeNodeClick(this.treeViewBM1_onTreeNodeClick); this.textBoxWaitKey.ToolTipText = "输入关键字(编码,名称,税号,地址电话,银行账号)"; this.toolSearchLbl = this.xmlComponentLoader1.GetControlByName <ToolStripLabel>("toolSearchLbl"); this.toolSearchLbl.Alignment = ToolStripItemAlignment.Right; this.toolStrip1 = this.xmlComponentLoader1.GetControlByName <ToolStrip>("toolStrip1"); ControlStyleUtil.SetToolStripStyle(this.toolStrip1); this.textBoxWaitKey.Paint += new PaintEventHandler(this.textBoxWaitKey_Paint); this.textBoxWaitKey.Alignment = ToolStripItemAlignment.Right; this.splitContainer1 = this.xmlComponentLoader1.GetControlByName <AisinoSPL>("splitContainer1"); this.splitContainer1.Panel2.Controls.Add(this.toolStrip1); }
public void Constructor() { ToolStripTextBox tsi = new ToolStripTextBox(); Assert.AreEqual(false, tsi.AcceptsReturn, "A1"); Assert.AreEqual(false, tsi.AcceptsTab, "A2"); Assert.AreEqual("System.Windows.Forms.AutoCompleteStringCollection", tsi.AutoCompleteCustomSource.GetType().ToString(), "A3"); Assert.AreEqual(AutoCompleteMode.None, tsi.AutoCompleteMode, "A4"); Assert.AreEqual(AutoCompleteSource.None, tsi.AutoCompleteSource, "A5"); Assert.AreEqual(BorderStyle.Fixed3D, tsi.BorderStyle, "A6"); Assert.AreEqual(false, tsi.CanUndo, "A7"); Assert.AreEqual(CharacterCasing.Normal, tsi.CharacterCasing, "A8"); Assert.AreEqual(true, tsi.HideSelection, "A9"); Assert.AreEqual("System.String[]", tsi.Lines.GetType().ToString(), "A10"); Assert.AreEqual(32767, tsi.MaxLength, "A11"); //Bug in TextBox //Assert.AreEqual (false, tsi.Modified, "A12"); Assert.AreEqual(false, tsi.ReadOnly, "A13"); Assert.AreEqual(string.Empty, tsi.SelectedText, "A14"); Assert.AreEqual(0, tsi.SelectionLength, "A15"); Assert.AreEqual(0, tsi.SelectionStart, "A16"); Assert.AreEqual(true, tsi.ShortcutsEnabled, "A17"); Assert.AreEqual("System.Windows.Forms.ToolStripTextBox+ToolStripTextBoxControl", tsi.TextBox.GetType().ToString(), "A18"); Assert.AreEqual(HorizontalAlignment.Left, tsi.TextBoxTextAlign, "A19"); Assert.AreEqual(0, tsi.TextLength, "A20"); tsi = new ToolStripTextBox("Bob"); Assert.AreEqual("Bob", tsi.Name, "A21"); Assert.AreEqual(string.Empty, tsi.Control.Name, "A22"); }
public void Search(ToolStripTextBox textBox, DataGridView dataGridView) { if (textBox.Text != "") { for (int i = 0; i < dataGridView.RowCount; i++) { dataGridView.Rows[i].Selected = false; for (int j = 0; j < dataGridView.ColumnCount; j++) { if (dataGridView.Rows[i].Cells[j].Value != null) { if (dataGridView.Rows[i].Cells[j].Value.ToString().Contains(textBox.Text)) { dataGridView.Rows[i].Selected = true; break; } } } } } else { dataGridView.ClearSelection(); } }
private void InitializeComponent() { components = new System.ComponentModel.Container(); _lblMultiSsh = new ToolStripLabel(); _txtMultiSsh = new ToolStripTextBox(); SuspendLayout(); // // lblMultiSSH // _lblMultiSsh.Name = "_lblMultiSsh"; _lblMultiSsh.Size = new System.Drawing.Size(77, 22); _lblMultiSsh.Text = Language.strMultiSSH; // // txtMultiSSH // _txtMultiSsh.Name = "_txtMultiSsh"; _txtMultiSsh.Size = new System.Drawing.Size(new DisplayProperties().ScaleWidth(300), 25); _txtMultiSsh.ToolTipText = Language.strMultiSSHToolTip; Items.AddRange(new ToolStripItem[] { _lblMultiSsh, _txtMultiSsh }); ResumeLayout(true); }
private void toolStripLabel1_Click(object sender, EventArgs e) { //JDK - might need to add something more here... ToolStripTextBox textControl = sender as ToolStripTextBox; textControl.Text = "Server: " + PathMaker.GetValidationServerIP(); }
private void InitSearchBar() { searchBar = new ToolStrip(); searchBar.Dock = DockStyle.Bottom; searchBar.Visible = false; searchBar.GripStyle = ToolStripGripStyle.Hidden; searchBar.BackColor = Color.LightGray; searchBar.KeyDown += HandleHotKeys; caseSensitiveButton = CreateToolStripButton("Aa", "Case sensitive", new Padding(0, 0, 0, 0), true, ToolStripItemAlignment.Left, null); wholeWordButton = CreateToolStripButton(@"""word""", "Whole word", new Padding(4, 0, 0, 0), true, ToolStripItemAlignment.Left, null); findButton = CreateToolStripButton("Find", "Find", new Padding(50, 0, 0, 0), false, ToolStripItemAlignment.Right, FindTheNextWord); findPreviousButton = CreateToolStripButton("Find Previous", "Find Previous", new Padding(4, 0, 0, 0), false, ToolStripItemAlignment.Right, FindThePreviousWord); cancelSearchButton = CreateToolStripButton("Cancel", "Cancel", new Padding(4, 0, 0, 0), false, ToolStripItemAlignment.Right, CancelTheSearch); searchTextBox = CreateToolStripTextBox(new Size(400, -1), new Padding(50, 0, 0, 0), "Target word", HandleHotKeys); searchBar.Items.Add(caseSensitiveButton); searchBar.Items.Add(wholeWordButton); searchBar.Items.Add(searchTextBox); searchBar.Items.Add(cancelSearchButton); searchBar.Items.Add(findPreviousButton); searchBar.Items.Add(findButton); this.Controls.Add(searchBar); }
public void Find(DataGridView numDat, ToolStripTextBox tltbNum) { try { if (tltbNum.Text != "") { for (int i = 0; i < numDat.RowCount; i++) { numDat.Rows[i].Selected = false; for (int j = 0; j < numDat.ColumnCount; j++) { if (numDat.Rows[i].Cells[j].Value != null) { if (numDat.Rows[i].Cells[j].Value.ToString().Contains(tltbNum.Text)) { numDat.Rows[i].Selected = true; break; } } } } } else { MessageBox.Show("Введите значение в строку поиска!!!"); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Попробуйте снова. Код ошибки:"); } }
/// <summary> /// Occurs when a key is pressed and held down while the PageNumber textbox has focus. /// </summary> /// <param name="item">PageNumber item</param> /// <param name="e">Key event args</param> protected virtual void OnPageNumberKeyDown(ToolStripTextBox item, KeyEventArgs e) { if (item == null) { return; } if (e.KeyCode == Keys.Enter) { int pn = 0; string text = item.TextBox.Text; char[] chs = { ' ', '/', '\\' }; int i = text.LastIndexOfAny(chs); if (i > 0) { text = text.Substring(0, i - 1); } if (!int.TryParse(text, out pn)) { return; } if (pn < 1) { pn = 1; } else if (pn > PdfViewer.Document.Pages.Count) { pn = PdfViewer.Document.Pages.Count; } PdfViewer.ScrollToPage(pn - 1); PdfViewer.CurrentIndex = pn - 1; item.TextBox.Text = string.Format("{0} / {1}", pn, PdfViewer.Document.Pages.Count); } }
/// ======================================================================================================= public static ToolStripTextBox GetMenuInput(string text, Action on_change = null, string name = null, DockStyle dock = DockStyle.None, int left = 10, int width = 50, int height = 20, bool autosize = false) { ToolStripTextBox returnitem = new ToolStripTextBox() { Name = name == null ? "MenuInput" + MenuInputCounter++ : name, Text = text, AutoSize = autosize, ForeColor = Color.Black, BackColor = Color.Silver, Font = CATFont, Dock = dock, Height = height }; if (on_change != null) { returnitem.TextChanged += new EventHandler((object o, EventArgs e) => { on_change(); }); } return(returnitem); }
internal static void AddNewColumn(CsvEditor form) { DataGridView csvGridView = form.csvGridView; ToolStripTextBox addNewColumnToolStripTextBox = form.addNewColumnToolStripTextBox; AddUndo(form); form.addingNewColumn = true; if (addNewColumnToolStripTextBox.Enabled) { ((DataTable)csvGridView.DataSource).Columns.Add(addNewColumnToolStripTextBox.Text, typeof(String)); //csvGridView.Columns.Add(addNewColumnToolStripTextBox.Text, addNewColumnToolStripTextBox.Text); } else { String columnName = String.Format(LanguageUtil.GetCurrentLanguageString("StandardColumnLabel", className), csvGridView.Columns.Count + 1); ((DataTable)csvGridView.DataSource).Columns.Add(columnName, typeof(String)); //csvGridView.Columns.Add(columnName, columnName); } csvGridView.CurrentCell = csvGridView.Rows[0].Cells[csvGridView.Columns.Count - 1]; SelectColumns(form, csvGridView.CurrentCell); form.addingNewColumn = false; }
public EventWatcher(ToolStripTextBox tsi) { tsi.AcceptsTabChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("AcceptsTabChanged;"); }); tsi.BorderStyleChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("BorderStyleChanged;"); }); tsi.HideSelectionChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("HideSelectionChanged;"); }); tsi.ModifiedChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("ModifiedChanged;"); }); tsi.ReadOnlyChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("ReadOnlyChanged;"); }); tsi.TextBoxTextAlignChanged += new EventHandler(delegate(Object obj, EventArgs e) { events += ("TextBoxTextAlignChanged;"); }); }
public bool Başlat(ContextMenuStrip SağTıklamaMenüsü, ToolStripTextBox Kutucuk) { try { if (SağTıklamaMenüsü == null || Kutucuk == null) { return(false); } if (_AnaMenü_ToolStripTextBox == SağTıklamaMenüsü && Kutucuk == _ToolStripTextBox) { return(true); } Başlat_Ortak(Kutucuk.Font); _AnaMenü_ToolStripTextBox = SağTıklamaMenüsü; _ToolStripTextBox = Kutucuk; _ToolStripTextBox.KeyDown += _TuşaBasıldı; _ToolStripTextBox.KeyPress += _TuşaBasıldıÇekildi; _ToolStripTextBox.TextChanged += _İçerikDeğişti; _AnaMenü_ToolStripTextBox.Closed += _OdağınıKaybetti; Tip = MalzemeTipi.ToolStripTextBox; return(true); } catch (Exception) { } return(false); }
public ProducerSearcher(List <ProducerDto> producers) { _producers = producers; var producersTable = new VirtualTable(new TemplateManager <ProducerDto>( () => Row.Headers("Производитель"), p => Row.Cells(p.Name))); _table = producersTable; producersTable.CellSpacing = 1; ToolStrip = new ToolStrip(); searchText = new ToolStripTextBox(); ToolStrip.Items.Add(searchText); var searchButton = new ToolStripButton { Text = "Поиск" }; ToolStrip.Items.Add(searchButton); producersTable.RegisterBehavior( new RowSelectionBehavior(), new ToolTipBehavior()); searchButton.Click += (sender, args) => DoSearch(searchText, producersTable); searchText.InputMap().KeyDown(Keys.Enter, () => DoSearch(searchText, producersTable)); producersTable.TemplateManager.Source = producers; }
// --------------------------------------------------------------------------------------------------- // Load search/autocomplete textbox private void _load_autocomplete(ToolStripTextBox txtbox) { Classes.Connection Connection = new Classes.Connection(); // init textbox autocomplete properties this.toolStripTxt_search.AutoCompleteSource = AutoCompleteSource.CustomSource; AutoCompleteStringCollection collection = new AutoCompleteStringCollection(); using (MySqlConnection conn = new MySqlConnection(Connection.connStr)) { string stmt = "select `bus_number` from `tbl_bus` where `bus_is_active`=1 order by CAST(`bus_number` as SIGNED INTEGER) ASC"; using (MySqlCommand cmd = new MySqlCommand(stmt, conn)) { conn.Open(); MySqlDataReader dr = cmd.ExecuteReader(); if (dr.HasRows) { while (dr.Read()) { collection.Add(dr["bus_number"].ToString()); } } dr.Close(); conn.Close(); } } // finally add to the textbox collection txtbox.AutoCompleteCustomSource = collection; }
// #### // #### #region Toolstrip Funktionen und Events /// <summary> /// Eingabe im Suchfeld auf "Entertaste" prüfen und Suche ausführen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void tsTextSearch_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { //Suche ausführen und Ergebnis anzeigen. ToolStripTextBox miTB = null; if ((miTB = sender as ToolStripTextBox) != null) { //ToolsFenster für Such Ergebnisse #region ToolWindow Properties.Application.Default.Reload(); string strFileName = Properties.Application.Default.sourceFile; this.Show(); if (!ReadCsv(miTB.Text, strFileName)) { MessageBox.Show("Es wurden keine Ergebnisse mit der Suche gefunden"); return; } this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width - 5, Screen.PrimaryScreen.WorkingArea.Height - this.Height - 5); this.Focus(); #endregion ToolWindow } } }
public BaseOLVListWindow() { InitializeComponent(); HotItemStyle = OLVHotItemStyle.Translucent; // // columnsButton // this.columnsButton = new System.Windows.Forms.ToolStripButton(); this.columnsButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.columnsButton.Image = global::FrwSoftware.Properties.Resources.AllPics_03; this.columnsButton.ImageTransparentColor = System.Drawing.Color.Magenta; //this.columnsButton.ImageScaling = ToolStripItemImageScaling.None; this.columnsButton.Name = "columnsButton"; this.columnsButton.Size = new System.Drawing.Size(24, 32); this.columnsButton.Text = FrwCRUDRes.List_Columns; this.columnsButton.Click += new System.EventHandler(this.columnsButton_Click); // // filterTextBox // this.filterTextBox = new System.Windows.Forms.ToolStripTextBox(); this.filterTextBox.BackColor = System.Drawing.SystemColors.Window; this.filterTextBox.Name = "filterTextBox"; this.filterTextBox.Size = new System.Drawing.Size(100, 35); this.filterTextBox.TextChanged += new System.EventHandler(this.filterTextBox_TextChanged); this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.columnsButton, this.filterTextBox }); }
public void NavigationTest() { ToolStrip strip = new ToolStrip(); ToolStripTextBox stripTextBox1 = new ToolStripTextBox(); ToolStripMenuItem item = new ToolStripMenuItem(); ToolStripTextBox stripTextBox2 = new ToolStripTextBox(); item.DropDownItems.Add(stripTextBox2); strip.Items.Add(item); strip.Items.Add(stripTextBox1); IRawElementProviderFragment stripProvider = GetProviderFromControl(strip); IRawElementProviderFragment itemProvider = (IRawElementProviderFragment) ProviderFactory.GetProvider(item); IRawElementProviderFragment box1Provider = (IRawElementProviderFragment) ProviderFactory.GetProvider(stripTextBox1); IRawElementProviderFragment box2Provider = (IRawElementProviderFragment) ProviderFactory.GetProvider(stripTextBox2); Assert.AreEqual(stripProvider, box1Provider.Navigate(NavigateDirection.Parent)); Assert.AreEqual(itemProvider, box2Provider.Navigate(NavigateDirection.Parent)); }
private void GotoNext(object sender, KeyPressEventArgs e) { try { ToolStripTextBox control = (ToolStripTextBox)sender; if (e.KeyChar != 13) { return; } if (control.Name == "txtmc") { txtpym.Focus(); return; } if (control.Name == "txtpym") { txtwb.Focus(); return; } if (control.Name == "txtwb") { txtzy.Focus(); return; } if (control.Name == "txtzy") { butadd_Click(sender, e); return; } } catch (System.Exception err) { MessageBox.Show("" + err.Message); } }
/**************************************************************************/ private void CallbackSearchTextBoxHyperlinksSearchTargetUrlKeyUp(object sender, KeyEventArgs e) { ToolStripTextBox SearchTextBox = ( ToolStripTextBox )sender; switch (e.KeyCode) { case Keys.Return: string UrlFragment = SearchTextBox.Text; DebugMsg(string.Format("CallbackSearchTextBoxHyperlinksSearchTargetUrlKeyUp: {0}", UrlFragment)); if (UrlFragment.Length > 0) { SearchTextBox.Text = UrlFragment; this.msDisplayHyperlinks.ClearData(); this.msDisplayHyperlinks.RefreshDataSearchTargetUrls( DocCollection: this.JobMaster.GetDocCollection(), UrlFragment: UrlFragment ); } break; } }
private void NullRefOnUserPreferenceChanged(object o, string field) { try { FieldInfo fi = o.GetType().GetField(field, BindingFlags.NonPublic | BindingFlags.Instance); if (fi != null) { int i; ToolStripTextBox tb = (ToolStripTextBox)fi.GetValue(o); object tbc = tb.Control; Delegate d = Delegate.CreateDelegate(typeof(UserPreferenceChangedEventHandler), tbc, EVENTHANDLER_ON_USER_PREFERENCE_CHANGED); object handlers = typeof(SystemEvents).GetField(LIST_HANDLERS, BindingFlags.NonPublic | BindingFlags.Static).GetValue(null); object upcHandler = typeof(SystemEvents).GetField(ON_USER_PREFERENCE_CHANGED_EVENT, BindingFlags.NonPublic | BindingFlags.Static).GetValue(null); object systemEventInvokeInfo = typeof(SystemEvents).GetNestedType(SYSTEM_EVENT_INVOKE_INFO, BindingFlags.NonPublic | BindingFlags.Instance); IList upcHandlerList = (IList)((IDictionary)handlers)[upcHandler]; int targetCount = 0; for (i = 0; i < upcHandlerList.Count; i++) { systemEventInvokeInfo = upcHandlerList[i]; Delegate target = (Delegate)systemEventInvokeInfo.GetType().GetField(TARGET_DELEGATE, BindingFlags.NonPublic | BindingFlags.Instance).GetValue(systemEventInvokeInfo); if (target.Target == d.Target) { targetCount++; } } for (i = 1; i <= targetCount; i++) { SystemEvents.UserPreferenceChanged -= ((UserPreferenceChangedEventHandler)d); } } } catch { } }
private void InitializeForm() { this.Size = new Size(1500, 900); this.Text = "The Worst Browser"; this.StartPosition = FormStartPosition.CenterScreen; this.webBrowser = new WebBrowser(); this.webBrowser.Dock = DockStyle.Fill; this.urlContainer = new ToolStrip(); this.urlContainer.Size = new Size(900, 25); this.urlInput = new ToolStripTextBox { BorderStyle = BorderStyle.FixedSingle, }; this.urlInput.Size = new System.Drawing.Size(890, 25); this.urlContainer.Items.Add(urlInput); this.urlInput.KeyDown += new KeyEventHandler(toolStripTextBox_KeyDown); this.urlInput.Click += new System.EventHandler(toolStripTextBox_Click); this.webBrowser.Navigated += new WebBrowserNavigatedEventHandler(webBrowser_Navigated); this.webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted); this.Controls.AddRange(new Control[] { webBrowser, urlContainer }); }
private void InitializeEditableScale(ToolStripTextBox textBox, ToolStripStatusLabel statusLabel) { statusLabel.Tag = textBox; textBox.Tag = statusLabel; textBox.LostFocus += editableTextBox_LostFocus; textBox.KeyDown += editableTextBox_KeyDown; }
private void DoSearch(ToolStripTextBox text, VirtualTable producersTable) { var searchText = text.Text; List <ProducerDto> producers; if (!String.IsNullOrEmpty(searchText)) { producers = _producers.Where(p => p.Name.ToLower().Contains(searchText.ToLower())).ToList(); } else { producers = _producers; } if (producers.Count > 0) { producersTable.TemplateManager.Source = producers; producersTable.Host.Focus(); } else { MessageBox.Show("По вашему запросу ничеого не найдено", "Результаты поиска", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
public MainForm () { // // _toolStrip // _toolStrip = new ToolStrip (); _toolStrip.AllowItemReorder = true; _toolStrip.Dock = DockStyle.Top; _toolStrip.Height = 100; _toolStrip.Margin = new Padding (5); _toolStrip.Stretch = true; _toolStrip.TabStop = true; Controls.Add (_toolStrip); // // _textBox1 // _textBox1 = new ToolStripTextBox (); _textBox1.Margin = new Padding (5); _textBox1.Size = new Size(130, 60); _textBox1.Text = "1"; _textBox1.ToolTipText = "Mono"; _toolStrip.Items.Add (_textBox1); // // _textBox2 // _textBox2 = new ToolStripTextBox (); _textBox2.Margin = new Padding (5); _textBox2.Size = new Size(130, 60); _textBox2.Text = "2"; _toolStrip.Items.Add (_textBox2); // // _autoToolTipCheckBox // _autoToolTipCheckBox = new CheckBox (); _autoToolTipCheckBox.Checked = false; _autoToolTipCheckBox.Location = new Point (8, 35); _autoToolTipCheckBox.Size = new Size (100, 20); _autoToolTipCheckBox.Text = "AutoToolTip"; _autoToolTipCheckBox.CheckedChanged += new EventHandler (AutoToolTipCheckBox_CheckedChanged); Controls.Add (_autoToolTipCheckBox); // // MainForm // ClientSize = new Size (300, 60); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82750"; Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _table // _table = new TableLayoutPanel (); _table.ColumnCount = 1; _table.ColumnStyles.Add (new ColumnStyle (SizeType.Percent, 100F)); _table.Dock = DockStyle.Fill; _table.RowCount = 1; _table.RowStyles.Add (new RowStyle ()); Controls.Add (_table); // // _toolStrip // _toolStrip = new ToolStrip (); _toolStrip.AllowItemReorder = true; _toolStrip.Dock = DockStyle.Fill; _toolStrip.Margin = new Padding (5); _toolStrip.Stretch = true; _toolStrip.TabStop = false; _table.Controls.Add (_toolStrip, 0, 0); // // _textBox // _textBox = new ToolStripTextBox (); _textBox.AcceptsReturn = true; _textBox.AcceptsTab = true; _textBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend; _textBox.AutoCompleteSource = AutoCompleteSource.RecentlyUsedList; _textBox.AutoSize = false; _textBox.AutoToolTip = true; _textBox.Multiline = true; _textBox.Margin = new Padding (5); _textBox.Size = new Size(265, 60); _textBox.Text = "1"; _toolStrip.Items.Add (_textBox); // // MainForm // ClientSize = new Size (270, 165); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #325969"; Load += new EventHandler (MainForm_Load); }
public MainForm () { // // _toolStrip // _toolStrip = new ToolStrip (); _toolStrip.Location = new Point (0, 24); _toolStrip.Size = new Size (632, 25); _toolStrip.TabIndex = 1; _toolStrip.Text = "ToolStrip"; Controls.Add (_toolStrip); // // _textBox // _textBox = new ToolStripTextBox (); _toolStrip.Items.Add (_textBox); // // _borderStyleGroupBox // _borderStyleGroupBox = new GroupBox (); _borderStyleGroupBox.Dock = DockStyle.Bottom; _borderStyleGroupBox.Height = 85; _borderStyleGroupBox.Text = "BorderStyle"; Controls.Add (_borderStyleGroupBox); // // _fixed3DBorderStyleRadioButton // _fixed3DBorderStyleRadioButton = new RadioButton (); _fixed3DBorderStyleRadioButton.Checked = true; _fixed3DBorderStyleRadioButton.Location = new Point (8, 16); _fixed3DBorderStyleRadioButton.Text = "Fixed3D"; _fixed3DBorderStyleRadioButton.Size = new Size (95, 20); _fixed3DBorderStyleRadioButton.CheckedChanged += new EventHandler (Fixed3DBorderStyleRadioButton_CheckedChanged); _borderStyleGroupBox.Controls.Add (_fixed3DBorderStyleRadioButton); // // _fixedSingleBorderStyleRadioButton // _fixedSingleBorderStyleRadioButton = new RadioButton (); _fixedSingleBorderStyleRadioButton.Location = new Point (8, 36); _fixedSingleBorderStyleRadioButton.Text = "FixedSingle"; _fixedSingleBorderStyleRadioButton.Size = new Size (95, 20); _fixedSingleBorderStyleRadioButton.CheckedChanged += new EventHandler (FixedSingleBorderStyleRadioButton_CheckedChanged); _borderStyleGroupBox.Controls.Add (_fixedSingleBorderStyleRadioButton); // // _noneBorderStyleRadioButton // _noneBorderStyleRadioButton = new RadioButton (); _noneBorderStyleRadioButton.Location = new Point (8, 56); _noneBorderStyleRadioButton.Text = "None"; _noneBorderStyleRadioButton.Size = new Size (95, 20); _noneBorderStyleRadioButton.CheckedChanged += new EventHandler (NoneBorderStyleRadioButton_CheckedChanged); _borderStyleGroupBox.Controls.Add (_noneBorderStyleRadioButton); // // MainForm // AutoScaleDimensions = new SizeF (6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size (300, 120); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82653"; Load += new EventHandler (MainForm_Load); }
public MainForm () { ComponentResourceManager resources = new ComponentResourceManager (typeof (MainForm)); SuspendLayout (); // // _toolStrip // _toolStrip = new ToolStrip (); _toolStrip.Location = new Point (0, 24); _toolStrip.Size = new Size (632, 25); _toolStrip.TabIndex = 1; _toolStrip.Text = "ToolStrip"; Controls.Add (_toolStrip); // // _separatorBar // _separatorBar = new ToolStripSeparator (); // // _newButton // _newButton = new ToolStripButton (); _newButton.DisplayStyle = ToolStripItemDisplayStyle.Image; _newButton.Image = ((Image) (resources.GetObject ("_newButton.Image"))); _newButton.ImageTransparentColor = Color.Black; _newButton.Text = "New"; _toolStrip.Items.Add (_newButton); // // _openButton // _openButton = new ToolStripButton (); _openButton.DisplayStyle = ToolStripItemDisplayStyle.Image; _openButton.Image = ((Image) (resources.GetObject ("_openButton.Image"))); _openButton.ImageTransparentColor = Color.Black; _openButton.Text = "Open"; _toolStrip.Items.Add (_openButton); _toolStrip.Items.Add (_separatorBar); // // _textBox // _textBox = new ToolStripTextBox (); _toolStrip.Items.Add (_textBox); _toolStrip.Items.Add (new ToolStripSeparator ()); // // _comboBox // _comboBox = new ToolStripComboBox (); _toolStrip.Items.Add (_comboBox); // // _toolStripEnabledCheckBox // _toolStripEnabledCheckBox = new CheckBox (); _toolStripEnabledCheckBox.Checked = true; _toolStripEnabledCheckBox.Location = new Point (8, 75); _toolStripEnabledCheckBox.Size = new Size (70, 20); _toolStripEnabledCheckBox.Text = "Enabled"; _toolStripEnabledCheckBox.CheckedChanged += new EventHandler (ToolStripEnabledCheckBox_CheckedChanged); Controls.Add (_toolStripEnabledCheckBox); // // MainForm // AutoScaleDimensions = new SizeF (6F, 13F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size (300, 100); Location = new Point (250, 100); StartPosition = FormStartPosition.Manual; Text = "bug #82651"; Load += new EventHandler (MainForm_Load); ResumeLayout (false); PerformLayout (); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.lvFiles = new System.Windows.Forms.ListView(); this.colName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.colSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.colNumber = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.colStartSector = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.colDeleted = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.ContextMenuView = new System.Windows.Forms.ContextMenu(); this.itmHexViewCM = new System.Windows.Forms.MenuItem(); this.itmExtractCM = new System.Windows.Forms.MenuItem(); this.itmAtasciiView = new System.Windows.Forms.MenuItem(); this.itmAtariBasicView = new System.Windows.Forms.MenuItem(); this.itmSynAssemblerView = new System.Windows.Forms.MenuItem(); this.MainMenu1 = new System.Windows.Forms.MainMenu(this.components); this.MenuItem1 = new System.Windows.Forms.MenuItem(); this.itmHexView = new System.Windows.Forms.MenuItem(); this.itmBinaryDisasm = new System.Windows.Forms.MenuItem(); this.MenuItem3 = new System.Windows.Forms.MenuItem(); this.itmViewSectors = new System.Windows.Forms.MenuItem(); this.UIShowBootRecord = new System.Windows.Forms.MenuItem(); this.itmShowImageProperties = new System.Windows.Forms.MenuItem(); this.itmChangeDirSectors = new System.Windows.Forms.MenuItem(); this.itmFindDirectory = new System.Windows.Forms.MenuItem(); this.itmShowSectorMap = new System.Windows.Forms.MenuItem(); this.MenuItem2 = new System.Windows.Forms.MenuItem(); this.itmAddFile = new System.Windows.Forms.MenuItem(); this.itmExtractFile = new System.Windows.Forms.MenuItem(); this.itmExtractAll = new System.Windows.Forms.MenuItem(); this.itmDeleteFile = new System.Windows.Forms.MenuItem(); this.itmViewFileInfo = new System.Windows.Forms.MenuItem(); this.StatusBar = new System.Windows.Forms.StatusBar(); this.pnlFreeSectors = new System.Windows.Forms.StatusBarPanel(); this.pnlTotalSectors = new System.Windows.Forms.StatusBarPanel(); this.ToolStrip1 = new System.Windows.Forms.ToolStrip(); this.UIFileSystemSelect = new System.Windows.Forms.ToolStripComboBox(); this.UIDirectoryError = new System.Windows.Forms.ToolStripTextBox(); this.UIFileErrors = new System.Windows.Forms.ToolStripTextBox(); this.UISectorMapErrors = new System.Windows.Forms.ToolStripTextBox(); this.miDumpDirectory = new System.Windows.Forms.MenuItem(); ((System.ComponentModel.ISupportInitialize)(this.pnlFreeSectors)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlTotalSectors)).BeginInit(); this.ToolStrip1.SuspendLayout(); this.SuspendLayout(); // // lvFiles // this.lvFiles.AllowDrop = true; this.lvFiles.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.lvFiles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colName, this.colSize, this.colNumber, this.colStartSector, this.colDeleted}); this.lvFiles.ContextMenu = this.ContextMenuView; this.lvFiles.Location = new System.Drawing.Point(0, 28); this.lvFiles.Name = "lvFiles"; this.lvFiles.Size = new System.Drawing.Size(432, 244); this.lvFiles.TabIndex = 0; this.lvFiles.UseCompatibleStateImageBehavior = false; this.lvFiles.View = System.Windows.Forms.View.Details; // // colName // this.colName.Text = "Name"; this.colName.Width = 120; // // colSize // this.colSize.Text = "Size"; // // colNumber // this.colNumber.Text = "Number"; this.colNumber.Width = 75; // // colStartSector // this.colStartSector.Text = "Start Sector"; this.colStartSector.Width = 77; // // colDeleted // this.colDeleted.Text = "Deleted"; // // ContextMenuView // this.ContextMenuView.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.itmHexViewCM, this.itmExtractCM, this.itmAtasciiView, this.itmAtariBasicView, this.itmSynAssemblerView}); // // itmHexViewCM // this.itmHexViewCM.Index = 0; this.itmHexViewCM.Text = "&Hex Viewer"; this.itmHexViewCM.Click += new System.EventHandler(this.itmHexViewCM_Click); // // itmExtractCM // this.itmExtractCM.Index = 1; this.itmExtractCM.Text = "&Extract"; this.itmExtractCM.Click += new System.EventHandler(this.itmExtractCM_Click); // // itmAtasciiView // this.itmAtasciiView.Index = 2; this.itmAtasciiView.Text = "ATASCII View"; this.itmAtasciiView.Click += new System.EventHandler(this.itmAtasciiView_Click); // // itmAtariBasicView // this.itmAtariBasicView.Index = 3; this.itmAtariBasicView.Text = "Atari Basic View"; this.itmAtariBasicView.Click += new System.EventHandler(this.itmAtariBasicView_Click); // // itmSynAssemblerView // this.itmSynAssemblerView.Index = 4; this.itmSynAssemblerView.Text = "Syn Assembler View"; this.itmSynAssemblerView.Click += new System.EventHandler(this.itmSynAssemblerView_Click); // // MainMenu1 // this.MainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.MenuItem1, this.MenuItem3, this.MenuItem2}); // // MenuItem1 // this.MenuItem1.Index = 0; this.MenuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.itmHexView, this.itmBinaryDisasm}); this.MenuItem1.Text = "&View"; // // itmHexView // this.itmHexView.Index = 0; this.itmHexView.Text = "Hex View"; this.itmHexView.Click += new System.EventHandler(this.itmHexViewCM_Click); // // itmBinaryDisasm // this.itmBinaryDisasm.Index = 1; this.itmBinaryDisasm.Text = "Binary Disassembly"; this.itmBinaryDisasm.Click += new System.EventHandler(this.itmBinaryDisasm_Click); // // MenuItem3 // this.MenuItem3.Index = 1; this.MenuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.itmViewSectors, this.UIShowBootRecord, this.itmShowImageProperties, this.itmChangeDirSectors, this.itmFindDirectory, this.itmShowSectorMap}); this.MenuItem3.Text = "&Disk"; // // itmViewSectors // this.itmViewSectors.Index = 0; this.itmViewSectors.Text = "&View Sectors ..."; this.itmViewSectors.Click += new System.EventHandler(this.itmViewSectors_Click); // // UIShowBootRecord // this.UIShowBootRecord.Index = 1; this.UIShowBootRecord.Text = "Show Boot Record"; this.UIShowBootRecord.Click += new System.EventHandler(this.UIShowBootRecord_Click); // // itmShowImageProperties // this.itmShowImageProperties.Index = 2; this.itmShowImageProperties.Text = "Show Image Properties ..."; this.itmShowImageProperties.Click += new System.EventHandler(this.itmShowImageProperties_Click); // // itmChangeDirSectors // this.itmChangeDirSectors.Index = 3; this.itmChangeDirSectors.Text = "Change Dir Sectors..."; this.itmChangeDirSectors.Click += new System.EventHandler(this.itmChangeDirSectors_Click); // // itmFindDirectory // this.itmFindDirectory.Index = 4; this.itmFindDirectory.Text = "Find Directory"; this.itmFindDirectory.Click += new System.EventHandler(this.itmFindDirectory_Click); // // itmShowSectorMap // this.itmShowSectorMap.Index = 5; this.itmShowSectorMap.Text = "Show Sector Map..."; this.itmShowSectorMap.Click += new System.EventHandler(this.itmShowSectorMap_Click); // // MenuItem2 // this.MenuItem2.Index = 2; this.MenuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.itmAddFile, this.itmExtractFile, this.itmExtractAll, this.itmDeleteFile, this.itmViewFileInfo, this.miDumpDirectory}); this.MenuItem2.Text = "&Tools"; // // itmAddFile // this.itmAddFile.Index = 0; this.itmAddFile.Text = "&Add File..."; this.itmAddFile.Click += new System.EventHandler(this.itmAddFile_Click); // // itmExtractFile // this.itmExtractFile.Index = 1; this.itmExtractFile.Text = "&Extract File..."; this.itmExtractFile.Click += new System.EventHandler(this.itmExtractCM_Click); // // itmExtractAll // this.itmExtractAll.Index = 2; this.itmExtractAll.Text = "Extract All..."; this.itmExtractAll.Click += new System.EventHandler(this.itmExtractAll_Click); // // itmDeleteFile // this.itmDeleteFile.Index = 3; this.itmDeleteFile.Text = "&Delete File..."; this.itmDeleteFile.Click += new System.EventHandler(this.itmDeleteFile_Click); // // itmViewFileInfo // this.itmViewFileInfo.Index = 4; this.itmViewFileInfo.Text = "View File Info..."; this.itmViewFileInfo.Click += new System.EventHandler(this.itmViewFileInfo_Click); // // StatusBar // this.StatusBar.Location = new System.Drawing.Point(0, 278); this.StatusBar.Name = "StatusBar"; this.StatusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.pnlFreeSectors, this.pnlTotalSectors}); this.StatusBar.ShowPanels = true; this.StatusBar.Size = new System.Drawing.Size(428, 22); this.StatusBar.TabIndex = 1; // // pnlFreeSectors // this.pnlFreeSectors.Name = "pnlFreeSectors"; this.pnlFreeSectors.Width = 70; // // pnlTotalSectors // this.pnlTotalSectors.Name = "pnlTotalSectors"; this.pnlTotalSectors.Width = 70; // // ToolStrip1 // this.ToolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.UIFileSystemSelect, this.UIDirectoryError, this.UIFileErrors, this.UISectorMapErrors}); this.ToolStrip1.Location = new System.Drawing.Point(0, 0); this.ToolStrip1.Name = "ToolStrip1"; this.ToolStrip1.Size = new System.Drawing.Size(428, 25); this.ToolStrip1.TabIndex = 2; this.ToolStrip1.Text = "ToolStrip1"; // // UIFileSystemSelect // this.UIFileSystemSelect.Items.AddRange(new object[] { "None", "DOS2.0", "DOS2.5", "MegaImage"}); this.UIFileSystemSelect.Name = "UIFileSystemSelect"; this.UIFileSystemSelect.Size = new System.Drawing.Size(121, 25); this.UIFileSystemSelect.SelectedIndexChanged += new System.EventHandler(this.UIFileSystemSelect_SelectedIndexChanged); // // UIDirectoryError // this.UIDirectoryError.Name = "UIDirectoryError"; this.UIDirectoryError.ReadOnly = true; this.UIDirectoryError.Size = new System.Drawing.Size(70, 25); this.UIDirectoryError.Text = "Directory"; this.UIDirectoryError.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // UIFileErrors // this.UIFileErrors.Name = "UIFileErrors"; this.UIFileErrors.Size = new System.Drawing.Size(70, 25); this.UIFileErrors.Text = "Files"; this.UIFileErrors.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // UISectorMapErrors // this.UISectorMapErrors.Name = "UISectorMapErrors"; this.UISectorMapErrors.Size = new System.Drawing.Size(70, 25); this.UISectorMapErrors.Text = "Sector Map"; this.UISectorMapErrors.TextBoxTextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // miDumpDirectory // this.miDumpDirectory.Index = 5; this.miDumpDirectory.Text = "Dump Directory"; this.miDumpDirectory.Click += new System.EventHandler(this.miDumpDirectory_Click); // // DirExplorer // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(428, 300); this.Controls.Add(this.ToolStrip1); this.Controls.Add(this.StatusBar); this.Controls.Add(this.lvFiles); this.Menu = this.MainMenu1; this.Name = "DirExplorer"; this.Text = "DiskExplorer"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DirExplorer_FormClosing); ((System.ComponentModel.ISupportInitialize)(this.pnlFreeSectors)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlTotalSectors)).EndInit(); this.ToolStrip1.ResumeLayout(false); this.ToolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }