Exemplo n.º 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;
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
        public FindDock() {
            InitializeComponent();

            _findDock = this;

            loadFindSettings();
        }
Exemplo n.º 4
0
        public FindDock()
        {
            InitializeComponent();

            _findDock = this;

            loadFindSettings();
        }
Exemplo n.º 5
0
        private void FindDock_FormClosing(object sender, FormClosingEventArgs e) {
            saveFindSettings();

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

            _findDock = null;
        }
Exemplo n.º 6
0
        private void FindDock_FormClosing(object sender, FormClosingEventArgs e)
        {
            saveFindSettings();

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

            _findDock = null;
        }
Exemplo n.º 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();
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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();
        }