コード例 #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);
        }
コード例 #2
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;
        }