public StoreWTWeekday(byte weekday, short opentime, short closetime, StoreWorkingTime storeWorkingTime) { this._weekday = weekday; this._opentime = opentime; this._closetime = closetime; this._storeWorkingTime = storeWorkingTime; }
public void SuggestOptions(StoreWorkingTime previousWorkingTime, StoreWorkingTime nextWorkingTime) { rdo_ExpandPrevious.Enabled = previousWorkingTime != null; rdo_ExpandNext.Enabled = nextWorkingTime != null; rdo_LeaveRangesUnchanged.Enabled = (previousWorkingTime != null && nextWorkingTime == null); if (!rdo_ExpandPrevious.Enabled && rdo_ExpandPrevious.Checked) { rdo_ExpandPrevious.Checked = false; rdo_ExpandNext.Checked = true; } if (!rdo_ExpandNext.Enabled && rdo_ExpandNext.Checked) { rdo_ExpandNext.Checked = false; if (rdo_LeaveRangesUnchanged.Enabled) rdo_LeaveRangesUnchanged.Checked = true; else if (rdo_ExpandPrevious.Enabled) rdo_ExpandPrevious.Checked = true; } }
private void ShowFocusedEntityDetails() { BeforeChangeEntity(); _focusedRange = FocusedEntity; FireChangeTimeRange(); }