Interaction logic for UserInputWindow.xaml
        /// <summary>
        /// The show.
        /// </summary>
        /// <param name="question">The question.</param>
        /// <returns>answer or empty if cancel</returns>
        public static bool GetInput(string question)
        {
            bool answer = false;
            Application.Current.Dispatcher.Invoke(
                delegate
                {
                    var box = new QuestionUser(question);
                    box.ShowDialog();
                    answer = (bool)box.DialogResult;
                });

            return answer;
        }
        /// <summary>
        /// The show.
        /// </summary>
        /// <param name="question">The question.</param>
        /// <returns>answer or empty if cancel</returns>
        public static bool GetInput(string question)
        {
            bool answer = false;

            Application.Current.Dispatcher.Invoke(
                delegate
            {
                var box = new QuestionUser(question);
                box.ShowDialog();
                answer = (bool)box.DialogResult;
            });

            return(answer);
        }