示例#1
0
        //public void ShowInfo(string key, params object[] args)
        //{
        //    _messageHanlder.ShowChildAppModelDialog(MessageBoxType.Ok, MessageBoxIcon.Information, "UID_MessageBox_Title_Info", key, args);

        //  //  _messageHanlder.ShowSysModelessDialog(MessageBoxType.Ok, MessageBoxIcon.Information, "UID_MessageBox_Title_Info", key, args);
        //}

        public void ShowError(string key, MsgResponseHander msgResponseHandler = null, MessageBoxType messageBoxType = MessageBoxType.Ok, string titleKey = "UID_MessageBox_Title_Error")
        {
            // _messageHanlder.ShowSysModelDialogWithValue(messageBoxType, MessageBoxIcon.Error, titleKey, key);
            _messageHanlder.ShowChildAppModelDialog(messageBoxType, MessageBoxIcon.Error, titleKey, key);
            // _messageHanlder.ShowAppModelDialogWithValue(messageBoxType, MessageBoxIcon.Error, titleKey, key);
            FilmingViewerContainee.DataHeaderJobManagerInstance.JobFinished();
        }
示例#2
0
        public MessageBoxResponse ShowQuestion(string key, MsgResponseHander msgResponseHandler, MessageBoxType messageBoxType = MessageBoxType.YesNo, string titleKey = "UID_MessageBox_Title_Info", Window ownerWindow = null)
        {
            var responseType = _messageHanlder.ShowChildAppModelDialog(messageBoxType, MessageBoxIcon.Question, titleKey, key, ownerWindow);

            switch (responseType)
            {
            case MessageBoxResponse.YES:
            {
                if (_messageHanlder != null)
                {
                    msgResponseHandler(MessageBoxResponse.YES);
                }
                break;
            }

            case MessageBoxResponse.NO:
            {
                FilmingViewerContainee.DataHeaderJobManagerInstance.JobFinished();
                break;
            }

            case MessageBoxResponse.CANCEL:
            {
                break;
            }
            }


            return(responseType);
        }
示例#3
0
 public MessageBoxResponse ShowSysQuestion(string key, MsgResponseHander msgResponseHandler, MessageBoxType messageBoxType = MessageBoxType.YesNo, string titleKey = "UID_MessageBox_Title_Info")
 {
     if (MessageBoxResponse.YES == _messageHanlder.ShowSysModelDialog(messageBoxType, MessageBoxIcon.Question, titleKey, key))
     {
         if (_messageHanlder != null)
         {
             msgResponseHandler(MessageBoxResponse.YES);
             return(MessageBoxResponse.YES);
         }
     }
     else
     {
         FilmingViewerContainee.DataHeaderJobManagerInstance.JobFinished();
         return(MessageBoxResponse.NO);
     }
     return(MessageBoxResponse.NO);
 }
示例#4
0
        public void ShowInfo(string key, MsgResponseHander msgResponseHandler = null, MessageBoxType messageBoxType = MessageBoxType.Ok, string titleKey = "UID_MessageBox_Title_Info")
        {
            //_messageHanlder.ShowSysModelDialogWithValue(messageBoxType, MessageBoxIcon.Information, titleKey, key);

            _messageHanlder.ShowChildAppModelDialog(messageBoxType, MessageBoxIcon.Information, titleKey, key);
        }
示例#5
0
 public void ShowSysWarning(string key, MsgResponseHander msgResponseHandler = null, MessageBoxType messageBoxType = MessageBoxType.Ok, string titleKey = "UID_MessageBox_Title_Warning")
 {
     _messageHanlder.ShowSysModelDialogWithValue(messageBoxType, MessageBoxIcon.Warning, titleKey, key);
     // _messageHanlder.ShowSysModelDialogWithValue(messageBoxType, MessageBoxIcon.Warning, titleKey, key);
 }