internal override void InitData() { _sharedMemory = new SharedMemory("FalconSharedMemoryArea"); _sharedMemory.Open(); _sharedMemory2 = new SharedMemory("FalconSharedMemoryArea2"); _sharedMemory2.Open(); }
void Profile_ProfileStarted(object sender, EventArgs e) { if (Parent != null && Parent.Profile != null && Parent.Profile.Interfaces.ContainsKey("Falcon")) { FalconInterface falconInterface = Parent.Profile.Interfaces["Falcon"] as FalconInterface; if (falconInterface != null) { ParseDatFile(falconInterface.CockpitDatFile); } } _textureMemory = new SharedMemory("FalconTexturesSharedMemoryArea"); _textureMemory.CheckValue = 0; _textureMemory.Open(); IsRunning = true; }
void Profile_ProfileStopped(object sender, EventArgs e) { _textureMemory.Close(); _textureMemory.Dispose(); _textureMemory = null; IsRunning = false; }
internal override void CloseData() { _sharedMemory.Close(); _sharedMemory.Dispose(); _sharedMemory = null; }