public static void Free() { if (_bar != null) { _bar.barForm.Close(); _bar = null; } GC.Collect(); }
public static ProgressUtil Bar() { if (_bar == null) { _bar = new ProgressUtil(); } if (_bar.barForm.IsDisposed) { _bar.barForm = new fmWaitBar(); } return(_bar); }