/// <summary>
        /// zridi form a hned vraci string vysledek
        /// </summary>
        public static string ExecuteModal(string title, string question, string answer = null)
        {
            var inputBoxViewModel = new InputBoxViewModel(title, question, answer);

            new WindowManager().ShowDialog(inputBoxViewModel);
            return(inputBoxViewModel.IsOkPressed ? inputBoxViewModel.Answer : null);
        }
Exemple #2
0
        /// <summary>
        /// akce Načíst z URL
        /// </summary>
        public void OpenUrl()
        {
            var url = InputBoxViewModel.ExecuteModal("Načíst z URL", "URL:");

            ProcessUrl(url);
        }