Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UiHandler"/> class.
 /// </summary>
 /// <param name="stationWindow">
 /// The station window.
 /// </param>
 public UiHandler(StationWindow stationWindow)
 {
     _stationWindow       = stationWindow;
     _stationNativeWindow = new NativeWindow();
     _stationNativeWindow.AssignHandle(new WindowInteropHelper(_stationWindow).EnsureHandle());
     if (_stationNativeWindow.Handle == IntPtr.Zero)
     {
         Console.WriteLine("STATION NATIVE WINDOW HAS INT PTR ZERO!");
     }
 }
 public UiHandler(StationWindow stationWindow)
 {
     _stationWindow = stationWindow;
 }