示例#1
0
        public ProgressExHelper(string title = null, int progressLimit = 100)
        {
            _Form = new FormProgressEx(title, progressLimit);
            _Form.StartPosition = FormStartPosition.CenterScreen;
            _Form.Show();
            _Form.Refresh();

            _Instance = this;
        }
示例#2
0
        public void Dispose()
        {
            if (_Form != null)
            {
                _Form.Close();
                _Form = null;

                _Instance = null;
            }
        }
示例#3
0
        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;
        }