Exemplo n.º 1
0
        public void Reg()
        {
            RegistrView r = new RegistrView();

            r.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            r.Show();
            Close();
        }
Exemplo n.º 2
0
        public void Reg()
        {
            RegistrView r = new RegistrView();

            Close();
            Thread myThread = new Thread(new ThreadStart(DB.DB.ShowLoader));

            myThread.SetApartmentState(ApartmentState.STA);
            myThread.Start();
            Thread.Sleep(1000);
            myThread.Abort();
            r.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            r.Show();
        }