コード例 #1
0
        public static void AddNewDataObject(DataObject dataObject)
        {
            //Dictionary<string, string> dic = new Dictionary<string, string>();
            //dic.Add("Name 1", "URI 1");
            //dic.Add("Name 2", "URI 2");
            //dic.Add("Name 3", "URI 3");
            //Dictionary<string, string> dic2 = new Dictionary<string, string>();
            //dic2.Add("Img1", "URI 1");
            //DataObject newDataObject = new DataObject {Question = question, Subject = "Предмет 8", Theme = "Тема 0",
            //    Audios = dic, Images = dic2};

            dataWork.AddNewDataObject(dataObject);
        }
コード例 #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());
     }
 }