Beispiel #1
0
 private void On_BtnRegisterToCourse(object sender, RoutedEventArgs e)
 {
     try
     {
         this.SaveSettings();
         EjsCourseRegistrationWindow cRegWin =
             new EjsCourseRegistrationWindow();
         cRegWin.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(Application.Current.Resources["EX_CourseRegFailed"] as string                //Properties.Resources.EX_CourseRegFailed
                         + ex.Message,
                         Application.Current.Resources["Str_ErrorTitle"] as string,
                         MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Beispiel #2
0
        private void On_BtnRegisterToCourse(object sender, RoutedEventArgs e)
        {
            try
            {
                this.SaveSettings();
                EjsCourseRegistrationWindow cRegWin =
                    new EjsCourseRegistrationWindow();
                cRegWin.ShowDialog();
            }
            catch (Exception ex)
            {
                SiliconStudio.DebugManagers.DebugReporter.Report(
                    SiliconStudio.DebugManagers.MessageType.Error,
                    "eJournalPlus Client - Application Settings Window",
                    "Register to Course Failed" +
                    "\nError: " + ex.Message);

                //Todo: Fix Message.
                MessageBox.Show("コースに登録出来ませんでした。\n" + ex.Message, "エラー", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }