private void button1_Click(object sender, EventArgs e) { Control_Screen CS = (Control_Screen)this.ParentForm; StartTimeVC.Interval = 1; StartTimeVC.Start(); CS.CUPONESBtn.Image = Properties.Resources.icons8_voucher_50px; Hide(); }
private void StartTimeVC_Tick(object sender, EventArgs e) { Control_Screen CS = (Control_Screen)this.ParentForm; CS.LEFTBar.Size = new Size(CS.LEFTBar.Width + 20, CS.LEFTBar.Height); if (CS.LEFTBar.Width >= 245) { CS.LEFTBar.Width = 245; StartTimeVC.Stop(); } }