コード例 #1
0
        static void SaveV2(EditorModelV4 model)
        {
            model.CreateFileChunks();
            var container = new FileContainerV4()
            {
                FileFormat  = "V3",
                Montage     = model.Montage,
                WindowState = model.WindowState
            };

            using (var stream = new StreamWriter(Path.Combine(model.VideoFolder.FullName, LocationsV4.LocalFileName)))
            {
                stream.WriteLine(new JavaScriptSerializer().Serialize(container));
            }
            ExportV0(model.RootFolder, model.VideoFolder, model.Montage);
        }
コード例 #2
0
ファイル: ModelIO.cs プロジェクト: IvanSorokin/Tuto
 static void SaveV2(EditorModelV4 model)
 {
     model.CreateFileChunks();
     var container = new FileContainerV4()
     {
         FileFormat = "V3",
         Montage = model.Montage,
         WindowState = model.WindowState
     };
     using (var stream = new StreamWriter(Path.Combine(model.VideoFolder.FullName,LocationsV4.LocalFileName)))
     {
         stream.WriteLine(new JavaScriptSerializer().Serialize(container));
     }
     ExportV0(model.RootFolder, model.VideoFolder, model.Montage);
 }