public void AddQuestionGroup()
 {
     InputDialog dlg = new InputDialog();
     dlg.Title = Resources.InputQuestionGroupName; //質問グループの名前を入力してください
     dlg.Owner = Application.Current.MainWindow;
     dlg.ShowDialog();
     if (dlg.DialogResult == true)
     {
         QuestionGroup questionGroupModel = new QuestionGroup() { Title = dlg.textBox.Text };
         QuestionGroupVM questionGroup = new QuestionGroupVM(questionGroupModel) { Parent = this };
         questionGroups.Add(questionGroup);
         if (SelectedQuestionGroup == null)
         {
             SelectedQuestionGroup = questionGroup;
         }
         Memorize();
     }
 }
Example #2
0
 public void AddDataSet()
 {
     InputDialog dlg = new InputDialog();
     dlg.Title = Resources.InputDataSetName; //データセットの名前を入力してください
     dlg.Owner = Application.Current.MainWindow;
     dlg.ShowDialog();
     if (dlg.DialogResult == true)
     {
         DataSetVM dataSet = new DataSetVM() { Title = dlg.textBox.Text };
         dataSets.Add(dataSet);
         if (SelectedDataSet == null)
         {
             SelectedDataSet = dataSet;
         }
         Memorize();
     }
 }
Example #3
0
 public void AddCodeScheme()
 {
     InputDialog dlg = new InputDialog();
     dlg.Title = Resources.InputCodeSchemeName; // コード群の名前を入力してください;
     dlg.Info = Resources.CodeFormHelpMessage; //※コード群作成後は、「選択肢群から追加」、「選択肢を追加」ボタンを押してコードを割り当ててください。;
     dlg.Owner = Application.Current.MainWindow;
     dlg.ShowDialog();
     if (dlg.DialogResult == true)
     {
         CodeScheme codeSchemeModel = new CodeScheme() {Title = dlg.textBox.Text};
         CodeSchemeVM newCodeScheme = new CodeSchemeVM(codeSchemeModel);
         codeSchemes.Add(newCodeScheme);
         if (SelectedCodeScheme == null)
         {
             SelectedCodeScheme = newCodeScheme;
         }
         Memorize();
     }
 }
Example #4
0
 public void AddCategoryScheme()
 {
     InputDialog dlg = new InputDialog();
     dlg.Title = Resources.InputCategorySchemeName; //選択肢群の名前を入力してください
     dlg.Owner = Application.Current.MainWindow;
     dlg.ShowDialog();
     if (dlg.DialogResult == true)
     {
         CategoryScheme categorySchemeModel = new CategoryScheme() { Title = dlg.textBox.Text };
         CategorySchemeVM categoryScheme = new CategorySchemeVM(categorySchemeModel);
         categorySchemes.Add(categoryScheme);
         if (SelectedCategoryScheme == null)
         {
             SelectedCategoryScheme = categoryScheme;
         }
         Memorize();
     }
 }