Esempio n. 1
0
 /// <summary>コンストラクタ
 /// </summary>
 /// <param name="parent">休日の一覧</param>
 public CDayOff(CDayOffCollection parent)
 {
     //
     // TODO: コンストラクタ ロジックをここに追加してください。
     //
     this.parent = parent;
 }
Esempio n. 2
0
 /// <summary>休日のインポート
 /// </summary>
 /// <param name="dayoff">インポートする休日</param>
 /// <returns>成功:追加したエレメント/不成功:null</returns>
 private CDayOff ImportDayOff(CDayOff dayoff)
 {
     #region 重複チェック
     CDayOffCollection col = Target.DayOffs;
     if (col.GetByName(dayoff.Name) != null)
     {
         return(null);
     }
     if (col.Size() >= FMainForm.MaxItemCount)
     {
         return(null);
     }
     #endregion
     #region インポート
     CDayOff newdayoff = col.CreateDayOff(true);
     newdayoff.Name      = dayoff.Name;
     newdayoff.StartDate = dayoff.StartDate;
     newdayoff.EndDate   = dayoff.EndDate;
     foreach (string key in dayoff.properties.AllKeys)
     {
         newdayoff[key] = dayoff[key];
     }
     #endregion
     col.AddDayOff(newdayoff);
     // 終端
     return(newdayoff);
 }
Esempio n. 3
0
 /// <summary>コンストラクタ
 /// </summary>
 public CTimeTable()
     : base()
 {
     InitBlock();
     //DayOffs = new DayOffCollection(this);
     members  = new CMemberCollection(this);
     patterns = new CPatternCollection(this);
     daysoff  = new CDayOffCollection(this);
     requires = new CRequirePatternsCollection(this);
     dates    = new CScheduledDateCollection(this);
 }