예제 #1
0
        private void ApplicationStartup(object sender, StartupEventArgs e)
        {
            // Thread.Sleep(4000);
            var main = new MainWindow();

            using var register = new RegisterationWindow();
            using var login    = new LoginWindow();
            if (LicenceIsValid() || (register.ShowDialog().Equals(true)))
            {
                if (login.ShowDialog().Equals(true))
                {
                    login.Dispose();
                    login.Close();
                    main.ShowDialog();
                }
            }

            register.Dispose();
            register.Close();
            login.Dispose();
            login.Close();
            main.Close();
        }
예제 #2
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            RegisterationWindow r = new RegisterationWindow();

            r.ShowDialog();
        }