コード例 #1
0
        /// <summary>
        /// 確認メッセージを画面に表示します。
        /// </summary>
        /// <param name="message"></param>
        /// <param name="callerMemberName"></param>
        /// <param name="callerFilePath"></param>
        /// <param name="callerLineNumber"></param>
        /// <returns></returns>
        public override bool Confirm(string message, [CallerMemberName] string callerMemberName = "", [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0)
        {
            base.Confirm(message, callerMemberName, callerFilePath, callerLineNumber);

            var window = new WpfMessageWindow("Confirm", message, WpfMessageType.Confirm);

            return(window.ShowModalWindow());
        }
コード例 #2
0
        /// <summary>
        /// 例外メッセージを画面に表示します。
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="callerMemberName"></param>
        /// <param name="callerFilePath"></param>
        /// <param name="callerLineNumber"></param>
        public override void Exception(Exception exception, [CallerMemberName] string callerMemberName = "", [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0)
        {
            base.Exception(exception, callerMemberName, callerFilePath, callerLineNumber);

            var window = new WpfMessageWindow("Exception", exception.ToString(), WpfMessageType.Error);

            window.ShowModalWindow();
        }
コード例 #3
0
        /// <summary>
        /// エラーメッセージを画面に表示します。
        /// </summary>
        /// <param name="message"></param>
        /// <param name="callerMemberName"></param>
        /// <param name="callerFilePath"></param>
        /// <param name="callerLineNumber"></param>
        public override void Error(string message, [CallerMemberName] string callerMemberName = "", [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = 0)
        {
            base.Error(message, callerMemberName, callerFilePath, callerLineNumber);

            var window = new WpfMessageWindow("Error", message, WpfMessageType.Error);

            window.ShowModalWindow();
        }