Beispiel #1
0
        private void GoBackButton_Click(object sender, RoutedEventArgs e)
        {
            Window startPanel = new AdminElections();

            this.Close();
            startPanel.Show();
        }
Beispiel #2
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     if (true)
     {
         DataBase db = DataBase.Instance;
         db.ElectionService.AddElection(Elenametxt.Text, Questiontxt.Text);
         AdminElections listView = (AdminElections)this.Owner;
         listView.UpdateList();
         this.Close();
     }
 }