/// <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)); }
/// <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); }
/// <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)); }
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); }