Beispiel #1
0
        public static void Show(string message)
        {
            var a = new WMessage
            {
                Yes     = { Visibility = Visibility.Hidden },
                No      = { Visibility = Visibility.Hidden },
                Ok      = { Visibility = Visibility.Visible },
                TextBox = { Text = message },
            };

            a.ShowDialog();
        }
Beispiel #2
0
        public static bool?Show(string message, string caption, bool isYesNo)
        {
            if (!isYesNo)
            {
                Show(message, caption); return(false);
            }
            var a = new WMessage
            {
                Yes     = { Visibility = Visibility.Visible },
                No      = { Visibility = Visibility.Visible },
                Ok      = { Visibility = Visibility.Hidden },
                TextBox = { Text = message },
                Label   = { Text = caption }
            };

            return(a.ShowDialog());
        }