public DelButton(MyForm form1, MyTextBox textBox) { id++; buttons.Add(this); form = form1; this.textBox = textBox; DelButton_Initiate(); }
public MyTimers(MyForm form, MyProgressBar myProgres, TextBox textBox) { this.form = form; progressBar = myProgres; tb = textBox; timer1 = new Timer(form.components); timer2 = new Timer(form.components); timer1.Interval = 1000; timer1.Tick += new EventHandler(Timer1_Tick); timer2.Tick += new EventHandler(Timer2_Tick); }
public MyTextBox(MyForm form) { this.form = form; progressBar = new MyProgressBar(form); timers = new MyTimers(form, progressBar, this); Name = "textBox" + id; Size = new Size(76, 22); TabIndex = 5; KeyDown += new KeyEventHandler(KeyDownHandler); Location = new Point(9, 10 + 22 * id); form.Controls.Add(this); Focus(); id++; }
public AddButton(MyForm form1) { form = form1; Initiate(); }