public bool ShowSuccessMsg(string title, string text) { if (_msgBox != null) { bool ret = false; SystemContext.Instance.AsyncOperation.SynchronizationContext.Post( state => { ret = _msgBox.ShowDialogSuccessMsg(text); }, null); return(ret); } else { MessageBoxResult result = MessageBox.Show(text, title); return(result == MessageBoxResult.OK); } }