Esempio n. 1
0
 private void LoadNotice()
 {
     try
     {
         //noticeDal=new NoticeDal();
         noticeDal           = new NoticeSQLiteDal();
         this.txtNotice.Text = noticeDal.GetNoticeInfo();
     }
     catch (Exception ex)
     {
         CLog.WriteErrLogInTrace(ex.Message);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 跟新公告栏
 /// </summary>
 private void NoticeUpdate()
 {
     try
     {
         if (this.InvokeRequired)
         {
             this.Invoke(new ReportUpdateDelegate(NoticeUpdate));
             //this.Close();
         }
         else
         {
             reportInfoString = noticDal.GetNoticeInfo();
             //panel1.Invalidate();
         }
     }
     catch (Exception ex)
     {
         CLog.WriteErrLogInTrace(ex.Message);
     }
 }