コード例 #1
0
 /// <summary>
 /// 用户名密码错误
 /// </summary>
 /// <param name="tip">信息提示</param>
 public void CodeOrUserIsNull(string tip)
 {
     try
     {
         //登录提示旋转按钮隐藏
         this.IsLogining = vy.Hidden;
         //错误提示
         this.ErrorTip = tip;
         //提示显示
         VisibilityManage.SetShowThanHidenVisibility(this.txtTip);
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
コード例 #2
0
 /// <summary>
 /// 显示提示(网络不通)
 /// </summary>
 /// <param name="tip">网络连接信息提示</param>
 public void ShowNetWorkIsNotThrow(string tip)
 {
     try
     {
         //登录旋转隐藏
         this.IsLogining = vy.Hidden;
         //登录错误提示
         this.ErrorTip = tip;
         //显示并在短时间内关闭
         VisibilityManage.SetShowThanHidenVisibility(this.txtTip);
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }
コード例 #3
0
 /// <summary>
 /// 将会议纪要上传到服务器
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void btnUpload_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         //显示正在上传
         this.UploadVisibility = vy.Visible;
         MemoryStream ms = null;
         using (ms = new MemoryStream())
         {
             ms.Position = 0;
             using (StreamWriter sw = new StreamWriter(ms, Encoding.UTF8))
             {
                 System.Windows.Forms.HtmlElement element = TreeCodeEnterEntity.webView.WebBrowser.Document.GetElementById("conferenceComment");
                 sw.Write(element.OuterHtml);
             }
         }
         //个人文件夹
         List <SP.Folder> mettingF = TreeCodeEnterEntity.mettingF;
         if (mettingF.Count > 0 && ms != null)
         {
             //获取文件夹
             SP.Folder folder = mettingF[0];
             //上传文件
             TreeCodeEnterEntity.ClientContextManage.UploadFileToFolder(folder, TreeCodeEnterEntity.ConferenceName + "_会议纪要" + ".doc", ms.GetBuffer(), new Action <bool>((successed) =>
             {
                 this.Dispatcher.BeginInvoke(new Action(() =>
                 {
                     this.UploadVisibility = vy.Hidden;
                     //显示并在短时间内关闭
                     VisibilityManage.SetShowThanHidenVisibility(this.txtUpload, 1500);
                 }));
             }));
         }
     }
     catch (Exception ex)
     {
         this.UploadVisibility = vy.Hidden;
         LogManage.WriteLog(this.GetType(), ex);
     }
 }
コード例 #4
0
 /// <summary>
 /// 显示提示(网络不通)
 /// </summary>
 /// <param name="tip">网络连接信息提示</param>
 public void ShowNetWorkIsNotThrow(string tip)
 {
     try
     {
         this.Dispatcher.BeginInvoke(new Action(() =>
         {
             //登录旋转隐藏
             this.IsLogining = vy.Hidden;
             //登录错误提示
             this.ErrorTip = tip;
             //显示并在短时间内关闭
             VisibilityManage.SetShowThanHidenVisibility(this.gridWarning);
         }));
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(this.GetType(), ex);
     }
     finally
     {
     }
 }