public static string ShowWindow(Window owner, string title, string text)
        {
            TextInputWindow textInputWindow = new TextInputWindow(title, text);

            textInputWindow.Owner = owner;
            bool?dialogResult = textInputWindow.ShowDialog();

            if (dialogResult == true)
            {
                return(textInputWindow.UserInput);
            }
            else
            {
                return(null);
            }
        }
 public static string ShowWindow(string title, string text)
 {
     return(TextInputWindow.ShowWindow(null, title, text));
 }