Пример #1
0
        internal override void InitData()
        {
            _sharedMemory = new SharedMemory("FalconSharedMemoryArea");
            _sharedMemory.Open();

            _sharedMemory2 = new SharedMemory("FalconSharedMemoryArea2");
            _sharedMemory2.Open();
        }
Пример #2
0
        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;
        }
Пример #3
0
        void Profile_ProfileStopped(object sender, EventArgs e)
        {
            _textureMemory.Close();
            _textureMemory.Dispose();
            _textureMemory = null;

            IsRunning = false;
        }
Пример #4
0
 internal override void CloseData()
 {
     _sharedMemory.Close();
     _sharedMemory.Dispose();
     _sharedMemory = null;
 }