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

            a.ShowDialog();
        }
Exemple #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   = { Content = caption }
            };

            return(a.ShowDialog());
        }