Exemple #1
0
        //public void ShowWarningMsg(string title, string text)
        //{
        //    if (_msgBox != null)
        //    {
        //        _msgBox.ShowWarningMsg(text);
        //    }
        //    else
        //    {
        //        MessageBox.Show(text, title);
        //    }
        //}

        public void ShowWarningMsg(string warningText)
        {
            if (_msgBox != null)
            {
                SystemContext.Instance.AsyncOperation.SynchronizationContext.Post(
                    state => { _msgBox.ShowWarningMsg(warningText); }, null);
            }
            else
            {
                MessageBox.Show(warningText, "警告");
            }
        }