Пример #1
0
 private void LoadConsultButton_Click(object sender, EventArgs e)
 {
     LoadClientForm lcf = new LoadClientForm();
     lcf.ShowDialog();
     if (ClientDataControl.Client != null)
     {
         System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProcMainForm));
         t.SetApartmentState(System.Threading.ApartmentState.STA);
         t.Start();
         this.Close();
     }
 }
Пример #2
0
        private void LoadConsultButton_Click(object sender, EventArgs e)
        {
            LoadClientForm lcf = new LoadClientForm();

            lcf.ShowDialog();
            if (ClientDataControl.Client != null)
            {
                System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProcMainForm));
                t.SetApartmentState(System.Threading.ApartmentState.STA);
                t.Start();
                this.Close();
            }
        }