public ProgressExHelper(string title = null, int progressLimit = 100) { _Form = new FormProgressEx(title, progressLimit); _Form.StartPosition = FormStartPosition.CenterScreen; _Form.Show(); _Form.Refresh(); _Instance = this; }
public void Dispose() { if (_Form != null) { _Form.Close(); _Form = null; _Instance = null; } }
public ProgressExHelper(Form owner, string title = null, int progressLimit = 100) { _Form = new FormProgressEx(title, progressLimit); _Form.StartPosition = FormStartPosition.CenterParent; _Form.Show(owner); _Form.Location = new Point( (owner.Width - _Form.Width) / 2 + owner.Left, (owner.Height - _Form.Height) / 2 + owner.Top); _Form.Refresh(); _Instance = this; }