예제 #1
0
    public new DialogResult ShowDialog(IWin32Window owner)
    {
      if (this.Worker == null)
        throw new ArgumentNullException("Worker");

      var ctrl = owner as Control;
      if (ctrl != null)
      {
        _box = new LightBox();
        _box.Show(ctrl.TopLevelControl, this);
      }
      _background = new Thread(PerformAction);
      _background.Start(this);
      GlobalProgress.Instance.Marquee();
      return base.ShowDialog(owner);
    }
예제 #2
0
        public new DialogResult ShowDialog(IWin32Window owner)
        {
            if (this.Worker == null)
            {
                throw new ArgumentNullException("Worker");
            }

            var ctrl = owner as Control;

            if (ctrl != null)
            {
                _box = new LightBox();
                _box.Show(ctrl.TopLevelControl, this);
            }
            _background = new Thread(PerformAction);
            _background.Start(this);
            GlobalProgress.Instance.Marquee();
            return(base.ShowDialog(owner));
        }