public bool StartEdit() { if (_vm.Items.Any(i => i.InEditMode)) { return(false); } else { _resetItem = _item.DeepCopy(); InEditMode = true; return(true); } }
internal ItemViewModel(int colIndex, int rowIndex, int propIndex, int itemIndex, IPGItem item, IPGColumn column, RowProperty property, PropertiesGridControlViewModel vm) { this._colIndex = colIndex; this._rowIndex = rowIndex; this._propIndex = propIndex; this._itemIndex = itemIndex; this._item = item; this._column = column; this._inEditMode = false; this._isHovered = false; this._vm = vm; this._property = property; }
public void ResetValues(IPGItem item) { DayInfo di = item as DayInfo; if (item != null) { this.BreakTime = di._breakTime; this.GamingHours = di._gamingHours; this.OnHoliday = di._onHoliday; this.Sik = di._sik; this.StayAt = di._stayAt; this.WorkHours = di._workHours; } }
public void StopEdit() { this.InEditMode = false; _resetItem = null; }
public void ResetValues(IPGItem item) { DayInfo di = item as DayInfo; if(item != null) { this.BreakTime = di._breakTime; this.GamingHours = di._gamingHours; this.OnHoliday = di._onHoliday; this.Sik = di._sik; this.StayAt = di._stayAt; this.WorkHours = di._workHours; } }
public bool StartEdit() { if (_vm.Items.Any(i => i.InEditMode)) { return false; } else { _resetItem = _item.DeepCopy(); InEditMode = true; return true; } }