예제 #1
0
        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;
            }
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        public FindDock() {
            InitializeComponent();

            _findDock = this;

            loadFindSettings();
        }
예제 #4
0
        public FindDock()
        {
            InitializeComponent();

            _findDock = this;

            loadFindSettings();
        }
예제 #5
0
        private void FindDock_FormClosing(object sender, FormClosingEventArgs e) {
            saveFindSettings();

            //this.Hide();
            //e.Cancel = true;

            _findDock = null;
        }
예제 #6
0
        private void FindDock_FormClosing(object sender, FormClosingEventArgs e)
        {
            saveFindSettings();

            //this.Hide();
            //e.Cancel = true;

            _findDock = null;
        }
예제 #7
0
        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();
        }
예제 #8
0
        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;
            }
        }
예제 #9
0
        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();
        }