Esempio n. 1
0
 /// <summary>
 /// Launch the filter editor in a new window.
 /// </summary>
 internal void LaunchFilterEditor()
 {
     if (!_isEditorLaunched)
     {
         _isEditorLaunched           = true;
         _filterEditorWindow         = new FilterEditor();
         _filterEditorWindow.Closed += (s, e) =>
         {
             _isEditorLaunched = false;
             Filters           = null;
         };
         _filterEditorWindow.Show();
     }
     else
     {
         if (_filterEditorWindow.WindowState == WindowState.Minimized)
         {
             _filterEditorWindow.WindowState = WindowState.Normal;
         }
         _filterEditorWindow.Focus();
     }
 }