public static void OpenConfigWindow(string displayName, Type targetType)
 {
     try
     {
         var configWindow = new DefaultConfiguratorWindow(displayName, targetType)
         {
             WindowStartupLocation = WindowStartupLocation.CenterScreen,
             Width  = 550,
             Height = 600
         };
         configWindow.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        public static ConfiguratorWindowResult OpenConfigWindowDialog(string displayName, Type targetType)
        {
            try
            {
                // Create window
                var configWindow = new DefaultConfiguratorWindow(displayName, targetType)
                {
                    WindowStartupLocation = WindowStartupLocation.CenterScreen,
                    Width  = 550,
                    Height = 600
                };

                // Show window
                configWindow.ShowDialog();

                // Return result
                return(configWindow.Result);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return(ConfiguratorWindowResult.None);
            }
        }