Beispiel #1
0
        public static void QueryByQuestion(string subject, string theme, string dataObject)
        {
            DataObject dataObj = dataWork.QueryByQuestion(subject, theme, dataObject);

            CreateNewDB("testDataObj.xml");
            dataWork.AddSubjectToDB(subject);
            dataWork.AddThemeToDB(subject, theme);
            dataWork.AddNewDataObject(dataObj);
            dataWork.SaveChangesDB("testDataObj.xml");
        }
Beispiel #2
0
 public void SaveDataObject(string question)
 {
     if (_dataWork.QueryByQuestion(_viewEditMode.Subject, _viewEditMode.Theme, question) != null)
     {
         _dataWork.ChangeDataObject(_baseController.InitDataObject());
     }
     else
     {
         _dataWork.AddNewDataObject(_baseController.InitDataObject());
     }
 }