public static PokerusStrain? ShowDialog(Window owner)
 {
     PokerusWindow window = new PokerusWindow();
     window.Owner = owner;
     var result = window.ShowDialog();
     if (result.HasValue && result.Value)
         return window.strain;
     return null;
 }
        public static PokerusStrain?ShowDialog(Window owner)
        {
            PokerusWindow window = new PokerusWindow();

            window.Owner = owner;
            var result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                return(window.strain);
            }
            return(null);
        }