public Form1() { InitializeComponent(); saveDia.InitialDirectory = @"C:\"; saveDia.Title = "Save File"; saveDia.Filter = "3D Paritcle System File (*.Part3D)|*.Part3D"; openDia.InitialDirectory = @"C:\"; openDia.Title = "Browze Files"; openDia.Filter = "3D Paritcle System File (*.Part3D)|*.Part3D"; AssemblyManager.AddAssemblyRef("Eon.Particles"); info = new ParticleSystem3DInfo(); info.Emitters = new EonDictionary <string, ParticleEmitterInfo>(); try { temp = SerializationHelper.Deserialize <Crosswalk.Message>("Temp", false, ".temp"); Type[] extraTypes = new Type[] { typeof(ObjectListing), typeof(FrameworkCreation) }; ProjectFile project = SerializationHelper.Deserialize <ProjectFile>( temp.Messages[0], false, "", extraTypes); FileSource.Attachments = project.CreatableObjects.ParticleAttachments; FileSource.Cycles = project.CreatableObjects.ParticleCycles; FileSource.EmittionTypes = project.CreatableObjects.ParticleEmitters3D; FileSource.RenderTypes = project.CreatableObjects.ParticleRenderMethods3D; FileSource.LoadAssemblies(temp.Messages[1]); } catch { } }
void btnExit_Click(object sender, EventArgs e) { FileSource.DeleteCoppiedDLLs(); this.Close(); }