예제 #1
0
        private void button_Admin_Click()
        {
            IsWindowVisible = false;
            AdminLoginWindow adminWindow = new AdminLoginWindow();

            adminWindow.Show();
        }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var bootstrapper = new BootStrapper();
            var container    = bootstrapper.BootStrap();

            // add custom accent and theme resource dictionaries
            ThemeManager.AddAccent("CustomAccent1", new Uri("pack://application:,,,/UniVoting.Admin;component/CustomAccents/CustomAccent.xaml"));

            // create custom accents
            ThemeManagerHelper.CreateAppStyleBy(Colors.Red);
            ThemeManagerHelper.CreateAppStyleBy(Colors.GreenYellow);
            ThemeManagerHelper.CreateAppStyleBy(Colors.Indigo, true);



            MainWindow = new AdminLoginWindow();
            MainWindow.Show();
            base.OnStartup(e);
        }