Esempio n. 1
0
        public void Init()
        {
            // Create a windows form so that we can use its handle for the sim connection
            System.Windows.Forms.Form form = new System.Windows.Forms.Form();
            IntPtr handle = form.Handle;

            SimManager.Initialise(handle);
            Assert.That(SimManager.Instance, Is.Not.Null, "SimManager singleton initialised");
        }
Esempio n. 2
0
 /// <summary>
 /// Initialise the singleton with the handle to receive messages from
 /// the FSX application.
 /// </summary>
 /// <param name="wHandle"></param>
 public static void Initialise(IntPtr wHandle)
 {
     handle = wHandle;
     instance = new SimManager();
 }
Esempio n. 3
0
 /// <summary>
 /// Initialise the singleton with the handle to receive messages from
 /// the FSX application.
 /// </summary>
 /// <param name="wHandle"></param>
 public static void Initialise(IntPtr wHandle)
 {
     handle   = wHandle;
     instance = new SimManager();
 }