Infered timercontrol and continous update

This commit is contained in:
2021-02-04 21:18:11 +01:00
parent 8839d7dff3
commit f51d6e9689
2 changed files with 45 additions and 3 deletions

View File

@ -29,6 +29,7 @@ namespace RepositoryPattern
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.lvMyStocks = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
@ -46,6 +47,8 @@ namespace RepositoryPattern
this.txtTotDiff = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.txtCurrValue = new System.Windows.Forms.TextBox();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.chkAutoReload = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// lvMyStocks
@ -186,11 +189,28 @@ namespace RepositoryPattern
this.txtCurrValue.Size = new System.Drawing.Size(100, 23);
this.txtCurrValue.TabIndex = 5;
//
// timer1
//
this.timer1.Interval = 150000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// chkAutoReload
//
this.chkAutoReload.AutoSize = true;
this.chkAutoReload.Location = new System.Drawing.Point(13, 7);
this.chkAutoReload.Name = "chkAutoReload";
this.chkAutoReload.Size = new System.Drawing.Size(121, 19);
this.chkAutoReload.TabIndex = 7;
this.chkAutoReload.Text = "Automatic Reload";
this.chkAutoReload.UseVisualStyleBackColor = true;
this.chkAutoReload.CheckedChanged += new System.EventHandler(this.chkAutoReload_CheckedChanged);
//
// frmMyStocks
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(935, 481);
this.Controls.Add(this.chkAutoReload);
this.Controls.Add(this.label3);
this.Controls.Add(this.txtCurrValue);
this.Controls.Add(this.label2);
@ -226,5 +246,7 @@ namespace RepositoryPattern
private System.Windows.Forms.TextBox txtTotDiff;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtCurrValue;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.CheckBox chkAutoReload;
}
}