private void GoToConferenceHomeButton_Click(object sender, RoutedEventArgs e) { ConferenceHome newWindow = new ConferenceHome(); newWindow.Show(); Close(); }
private async void GoToConferenceButton_Click(object sender, RoutedEventArgs e) { if (ConferenceList.SelectedIndex >= 0) { UserCredentials.Conference = (ConferenceDTO)ConferenceList.SelectedItem; await core.LoadRolesAsync(); ConferenceHome newWindow = new ConferenceHome(); newWindow.Show(); Close(); } else { MessageBox.Show("Choose conference"); } }