Пример #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();
                    }
                }
            }
        }
        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();
                }
            }
        }
Пример #4
0
        void ShowBusyIndicator()
        {
            if (InvokeRequired)
            {
                BeginInvoke(new AnkhAction(ShowBusyIndicator));
                return;
            }

            if (_busyOverlay == null)
                _busyOverlay = new BusyOverlay(syncView, AnchorStyles.Bottom | AnchorStyles.Right);
            _busyOverlay.Show();
        }
Пример #5
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;
                }
            }
        }