示例#1
0
文件: WcDay.cs 项目: pu1s/WCLib
 public WcDay(DateTime date)
     : this()
 {
     _dayDate = date;
     _dayHandle = SetWcDayHandle(date);
     _dayAttr = WсDayAttr.WcDayEmpty;
     _dayComment = string.Empty;
 }
示例#2
0
文件: WcDay.cs 项目: pu1s/WCLib
 public void UpdateWcDayAttr(WсDayAttr dayAttr, UpdateCallBack udpCallBack)
 {
     if (Equals(dayAttr, _dayAttr)) return;
     _dayAttr = dayAttr;
     if (udpCallBack != null) udpCallBack.Invoke();
 }
示例#3
0
文件: WcDay.cs 项目: pu1s/WCLib
 public void UpdateWcDayAttr(WсDayAttr dayAttr)
 {
     if(Equals(dayAttr, _dayAttr)) return;
     _dayAttr = dayAttr;
 }
示例#4
0
文件: WcDay.cs 项目: pu1s/WCLib
 public void SetAttr(WсDayAttr attr)
 {
     _dayAttr = attr;
 }
示例#5
0
文件: WcDay.cs 项目: pu1s/WCLib
 public WcDay(DateTime date, WсDayAttr dayAttr, string comment)
 {
     _dayDate = date;
     _dayHandle = SetWcDayHandle(date);
     _dayAttr = dayAttr;
     _dayComment = comment;
 }
示例#6
0
 public WcDayCtrl(DateTime date, WсDayAttr dayAttr, string comment) : this()
 {
     _wcDay = new WcDay(date);
     _wcDay.UpdateWcDayAttr(dayAttr);
     _wcDay.UpdateWcDayComment(comment);
 }