Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
            }
        }