Esempio n. 1
0
 /// <summary>
 /// After deserializing the project, this has to be called
 /// </summary>
 internal void ProjectLoad(SavingStorage st)
 {
     Frames = st.Frames;
     IsBrightnessCalculated = st.IsBrightnessCalculated;
     SimpleCalculationArea  = st.SimpleCalculationArea;
     ImageSavePath          = st.ImageSavePath;
     MainWorker.RunWorkerAsync(new KeyValuePair <Work, object>(Work.LoadProject, null));
 }
Esempio n. 2
0
 /// <summary>
 /// Loads the project from disk
 /// </summary>
 /// <param name="path">Path, from where the project will be loaded</param>
 public static void OpenProject(SavingStorage SavedValues)
 {
     NewProject(SavedValues.UsedProgram);
     CurrentProject.ProjectLoad(SavedValues);
 }
Esempio n. 3
0
 /// <summary>
 /// After deserializing the project, this has to be called
 /// </summary>
 internal void ProjectLoad(SavingStorage st)
 {
     Frames = st.Frames;
     IsBrightnessCalculated = st.IsBrightnessCalculated;
     SimpleCalculationArea = st.SimpleCalculationArea;
     ImageSavePath = st.ImageSavePath;
     MainWorker.RunWorkerAsync(new KeyValuePair<Work, object>(Work.LoadProject, null));
 }
Esempio n. 4
0
 /// <summary>
 /// Loads the project from disk
 /// </summary>
 /// <param name="path">Path, from where the project will be loaded</param>
 public static void OpenProject(SavingStorage SavedValues)
 {
     NewProject(SavedValues.UsedProgram);
     CurrentProject.ProjectLoad(SavedValues);
 }
Esempio n. 5
0
 public void SavingProject()
 {
     SavingStorage Storage = new SavingStorage();
     using (GZipStream str = new GZipStream(File.Create(ProjectSavePath), CompressionMode.Compress))
     {
         BinaryFormatter ft = new BinaryFormatter();
         ft.Serialize(str, Storage);
     }
     MsgBox.ShowMessage(MessageContent.ProjectSaved);
 }