private void LoadNotice() { try { //noticeDal=new NoticeDal(); noticeDal = new NoticeSQLiteDal(); this.txtNotice.Text = noticeDal.GetNoticeInfo(); } catch (Exception ex) { CLog.WriteErrLogInTrace(ex.Message); } }
/// <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); } }