Example #1
0
        public static DialogMessageEx CreateQuestionBox(string content, Action <MessageBoxResult> callback)
        {
            DialogMessageEx res =
                new DialogMessageEx(content, callback)
            {
                Icon    = MessageBoxImage.Question,
                Button  = MessageBoxButton.YesNo,
                Caption = string.Empty
            };

            return(res);
        }
        public static DialogMessageEx CreateQuestionBox(string content, Action<MessageBoxResult> callback)
        {
            DialogMessageEx res =
                new DialogMessageEx(content, callback)
                    {
                        Icon = MessageBoxImage.Question,
                        Button = MessageBoxButton.YesNo,
                        Caption = string.Empty
                    };

            return res;
        }