public ProgressHelper(string title = null)
        {
            _Form = new FormProgress(title);
            _Form.StartPosition = FormStartPosition.CenterScreen;
            _Form.Show();
            _Form.Refresh();

            _Instance = this;
        }
        public ProgressHelper(Form owner, string title = null)
        {
            _Form = new FormProgress(title);
            _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;
        }
Exemple #3
0
        private void UpdateView()
        {
            formProgress1 = new FormProgress();
            formProgress1.StartPosition = FormStartPosition.Manual;
            formProgress1.Location      = new System.Drawing.Point(this.Location.X + this.Width / 2, this.Location.Y + this.Height / 2);
            formProgress1.Show();
            formProgress1.Refresh();
            displayOptionsDialog1.OnProgress += new cbp.ProgressEventHandler(displayDirector1_OnProgress);


            TimeSeries.SeriesList list = input.CreateSelectedSeries(scenarioChooser1.Selected,
                                                                    SelectedSites());

            if (list.Count > 0)
            {
                presenter.Draw(input);
                // displayOptionsDialog1.Draw(list, viewer1);
            }
            else
            {
                viewer1.Clear();
            }
        }