private void CancleHandler(object sender, EventArgs e) { wait.Close(); this.Enabled = false; MessageBox.Show("Приглашение откланено"); this.Enabled = true; wait = null; }
private void WaitHandler(object sender, EventArgs e) { this.Enabled = false; wait = new WaitForm(); wait.FormClosed += CloseFormHandler; Thread tr = new Thread(new ThreadStart(OpenWaitForm)); tr.Start(); }