Пример #1
0
        public static string ShowModal(string text, string title, Window owner)
        {
            if (instance == null)
            {
                instance = new XamlEditorDialog();
            }

            instance.Owner = owner;
            instance.Text  = text;
            instance.Title = title;

            bool result = (bool)instance.ShowDialog();

            if (result)
            {
                return(_returnText);
            }
            else
            {
                return(text);
            }
        }