コード例 #1
0
        private async void EditConference_Click(object sender, RoutedEventArgs e)
        {
            if (ConferencesBox.SelectedIndex >= 0)
            {
                var conference = await confCore.GetConferenceByIdAsync(int.Parse(ConferencesBox.SelectedValue.ToString()));

                Conference.AddEditConference newAddConferenceWindow = new Conference.AddEditConference(conference);
                newAddConferenceWindow.ShowDialog();
            }
            else
            {
                MessageBox.Show("Select conference");
            }
        }
コード例 #2
0
 private void AddConference_Click(object sender, RoutedEventArgs e)
 {
     Conference.AddEditConference newAddConferenceWindow = new Conference.AddEditConference(null);
     newAddConferenceWindow.ShowDialog();
 }