private void WebSiteAdminButtonClick(object sender, RoutedEventArgs e)
        {
            Window AdminPasswordWindow = new AdminPasswordWindow();

            AdminPasswordWindow.ShowDialog();
            if (AdminPasswordWindow.DialogResult == true)
            {
                Window WebSiteAdminWindow = new WebSiteAdminWindow();
                new WebSiteAdminWindow().Show();
            }
            //  Close();
        }
Esempio n. 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Are you sure that you are finished?", "Exit", MessageBoxButton.YesNo, MessageBoxImage.Question);

            switch (result)
            {
            case MessageBoxResult.Yes:
                this.Close();
                Window window = new WebSiteAdminWindow();
                window.Show();
                break;

            case MessageBoxResult.No:

                break;
            }
        }