private void GoBackButton_Click(object sender, RoutedEventArgs e) { Window startPanel = new AdminElections(); this.Close(); startPanel.Show(); }
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(); } }