internal static void Inspect(bool findAll) { if (_findDock == null) { _findDock = new FindDock(); _findDock.Owner = MainWindow.Instance; } _findDock._findAll = findAll; if (findAll) { _findDock.findPreviousButton.Visible = false; _findDock.findNextButton.Text = Resources.FindAll; } else { _findDock.findPreviousButton.Visible = true; _findDock.findNextButton.Text = Resources.FindNext; } _findDock.Show(); if (Settings.Default.FindDockLocation.X > 0 && Settings.Default.FindDockLocation.Y > 0) { _findDock.Location = Settings.Default.FindDockLocation; } }
private void showSelectedObject() { if (this._objects != null && this.resultListView.SelectedIndices.Count > 0) { foreach (int index in this.resultListView.SelectedIndices) { if (index != _selectedIndex) { _selectedIndex = index; break; } } List <int> indexes = new List <int>(); foreach (int index in this.resultListView.SelectedIndices) { if (index != _selectedIndex) { indexes.Add(index); } } foreach (int index in indexes) { this.resultListView.SelectedIndices.Remove(index); } FindDock.ShowObject(this._objects[_selectedIndex]); this.resultListView.Select(); } }
public FindDock() { InitializeComponent(); _findDock = this; loadFindSettings(); }
private void FindDock_FormClosing(object sender, FormClosingEventArgs e) { saveFindSettings(); //this.Hide(); //e.Cancel = true; _findDock = null; }
internal static void Inspect(bool findAll) { if (_findDock == null) { _findDock = new FindDock(); } _findDock._findAll = findAll; if (findAll) { _findDock.findPreviousButton.Visible = false; _findDock.findNextButton.Text = Resources.FindAll; } else { _findDock.findPreviousButton.Visible = true; _findDock.findNextButton.Text = Resources.FindNext; } _findDock.Show(); }