Example #1
0
        private void WinBitmapView_Closed(object sender, EventArgs e)
        {
            Global.effengine.NewLayerRender -= Effengine_NewLayerRender;

            //Set the winBitmapView instance to null if it got closed
            if (winBitmapView != null && winBitmapView.Equals(this))
            {
                winBitmapView = null;
            }
        }
Example #2
0
 /// <summary>
 /// Opens the bitmap debug window if not already opened. If opened bring it to the foreground.
 /// </summary>
 public static void Open()
 {
     if (winBitmapView == null)
     {
         winBitmapView = new Window_BitmapView();
         winBitmapView.UpdateLayout();
         winBitmapView.Show();
     }
     else
     {
         winBitmapView.Activate();
     }
 }
 private void btnShowBitmapWindow_Click(object sender, RoutedEventArgs e) => Window_BitmapView.Open();