Пример #1
0
 /// <summary>
 /// 弹窗显示确认信息(是、否)
 /// </summary>
 /// <param name="msg"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 protected bool ShowOKCancel(string msg, string title)
 {
     if (IsShowConfirm)
     {
         Task <bool> t = Task.Factory.StartNew(() => DHelper.ShowOKCancel(msg, title));
         t.Wait();
         return(t.Result);
     }
     else
     {
         return(true);
     }
 }