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); }
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)); }