예제 #1
0
        private void treeView_RetrievingChanged(object sender, EventArgs e)
        {
            if (treeView.Retrieving)
            {
                if (_bo == null)
                {
                    _bo = new BusyOverlay(treeView, AnchorStyles.Top | AnchorStyles.Right);
                }

                _bo.Show();
            }
            else
            {
                if (_bo != null)
                {
                    _bo.Hide();
                    _bo.Dispose();
                    _bo = null;
                }
            }
        }
        private void reposBrowser_RetrievingChanged(object sender, EventArgs e)
        {
            if (reposBrowser.Retrieving != _busy)
            {
                if (!_busy)
                {
                    _busy = true;
                    if (_overlay == null)
                    {
                        _overlay = new BusyOverlay(reposBrowser, AnchorStyles.Right | AnchorStyles.Top);
                    }

                    _overlay.Show();
                }
                else
                {
                    _busy = false;
                    if (_overlay != null)
                    {
                        _overlay.Hide();
                    }
                }
            }
        }