private void removeCommentButton(object sender, RoutedEventArgs e)
        {
            myBL.RemoveCommentFromHost(m);
            //Configuration.commentsFromHost.Remove(m);
            Close();
            WebsiteManagerMainWindow window = new WebsiteManagerMainWindow();

            window.ShowDialog();
        }
        private void removeReviewButton(object sender, RoutedEventArgs e)
        {
            myBL.RemoveReviewToGuset(m);
            //Configuration.reviewsToGuests.Remove(m);
            Close();
            WebsiteManagerMainWindow window = new WebsiteManagerMainWindow();

            window.ShowDialog();
        }
Beispiel #3
0
 private void Button_Click_EnterAsAdmin(object sender, RoutedEventArgs e)
 {
     if (PassBox_passAdmin.Password == Configuration.password)
     {
         WebsiteManagerMainWindow window = new WebsiteManagerMainWindow();
         Close();
         window.Show();
     }
     else
     {
         PassBox_passAdmin.Password = "";
         MessageBox.Show("Wrong Password", "warning for wrong manager password", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }