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

            dataObj.Definition = "Ololo.....";

            if (dataWork.ChangeDataObject(null))
            {
                dataWork.SaveChangesDB("testDataObj.xml");
            }
        }
Esempio n. 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());
     }
 }