Regret closing initial window and progressbar for timeconsuming events

This commit is contained in:
2022-02-22 21:59:29 +01:00
parent 95a9537af9
commit e6121da2ca
4 changed files with 76 additions and 21 deletions

View File

@ -29,6 +29,7 @@ namespace StockInfoCore
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.dataGridView = new System.Windows.Forms.DataGridView();
this.lblTotalRecords = new System.Windows.Forms.Label();
this.gB1 = new System.Windows.Forms.GroupBox();
@ -48,6 +49,8 @@ namespace StockInfoCore
this.btnConnShares = new System.Windows.Forms.Button();
this.btnEditPerson = new System.Windows.Forms.Button();
this.cmbOwners = new System.Windows.Forms.ComboBox();
this.pbInitial = new System.Windows.Forms.ProgressBar();
this.tmrProgBar = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.gB1.SuspendLayout();
this.gbStockMgmnt.SuspendLayout();
@ -60,11 +63,11 @@ namespace StockInfoCore
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView.Location = new System.Drawing.Point(12, 16);
this.dataGridView.Location = new System.Drawing.Point(12, 21);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
this.dataGridView.RowTemplate.Height = 25;
this.dataGridView.Size = new System.Drawing.Size(871, 360);
this.dataGridView.Size = new System.Drawing.Size(871, 355);
this.dataGridView.TabIndex = 0;
this.dataGridView.SelectionChanged += new System.EventHandler(this.dataGridView_SelectionChanged);
//
@ -243,15 +246,30 @@ namespace StockInfoCore
this.cmbOwners.FormattingEnabled = true;
this.cmbOwners.Location = new System.Drawing.Point(6, 33);
this.cmbOwners.Name = "cmbOwners";
this.cmbOwners.Size = new System.Drawing.Size(152, 23);
this.cmbOwners.Size = new System.Drawing.Size(222, 23);
this.cmbOwners.TabIndex = 0;
this.cmbOwners.SelectedIndexChanged += new System.EventHandler(this.cmbOwners_SelectedIndexChanged);
//
// pbInitial
//
this.pbInitial.ForeColor = System.Drawing.Color.Tomato;
this.pbInitial.Location = new System.Drawing.Point(131, 5);
this.pbInitial.Name = "pbInitial";
this.pbInitial.Size = new System.Drawing.Size(646, 10);
this.pbInitial.TabIndex = 11;
this.pbInitial.Visible = false;
//
// tmrProgBar
//
this.tmrProgBar.Interval = 250;
this.tmrProgBar.Tick += new System.EventHandler(this.tmrProgBar_Tick);
//
// frmInitial
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(895, 538);
this.Controls.Add(this.pbInitial);
this.Controls.Add(this.gpOwners);
this.Controls.Add(this.lblStockRows);
this.Controls.Add(this.gbStockMgmnt);
@ -296,6 +314,8 @@ namespace StockInfoCore
private System.Windows.Forms.Button btnEditPerson;
private System.Windows.Forms.ComboBox cmbOwners;
private System.Windows.Forms.Button btnBackupAll;
private ProgressBar pbInitial;
private System.Windows.Forms.Timer tmrProgBar;
}
}