/// <summary>
 /// 退出系统
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Exit_Click(object sender, RoutedEventArgs e)
 {
     if (UCMessageBox.Show("关闭提示", "是否关闭系统?") == true)
     {
         Application.Current.Shutdown();
     }
 }
        /// <summary>
        /// 静态方法 模拟MESSAGEBOX.Show方法
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="msg">消息</param>
        /// <returns></returns>
        public static bool?Show(string title, string msg)
        {
            var msgBox = new UCMessageBox();

            msgBox.Title   = title;
            msgBox.Message = msg;
            return(msgBox.ShowDialog());
        }