Esempio n. 1
0
 public void SaveUI(string obj)
 {
     if (Scene.Controls.Count == 0 || string.IsNullOrEmpty(UIName))
         return; //ncrunch: no coverage
     var fileNameAndBytes = new Dictionary<string, byte[]>();
     var bytes = BinaryDataExtensions.ToByteArrayWithTypeInformation(Scene);
     fileNameAndBytes.Add(UIName + ".deltascene", bytes);
     var metaDataCreator = new ContentMetaDataCreator();
     ContentMetaData contentMetaData = metaDataCreator.CreateMetaDataFromUI(UIName, bytes);
     service.ContentUpdated += SendSuccessMessageToLogger;
     service.UploadContent(contentMetaData, fileNameAndBytes);
 }
Esempio n. 2
0
		public void SaveUI(string obj)
		{
			if (Scene.Controls.Count == 0 || string.IsNullOrEmpty(UIName))
				return; //ncrunch: no coverage
			var fileNameAndBytes = new Dictionary<string, byte[]>();
			var bytes = BinaryDataExtensions.ToByteArrayWithTypeInformation(Scene);
			fileNameAndBytes.Add(UIName + ".deltascene", bytes);
			var metaDataCreator = new ContentMetaDataCreator();
			ContentMetaData contentMetaData = metaDataCreator.CreateMetaDataFromUI(UIName, bytes);
			editorService.UploadContent(contentMetaData, fileNameAndBytes);
			if (CanGenerateSourceCode)
				new SceneCodeGenerator(editorService, Scene, UIName).GenerateSourceCodeClass();
		}