protected override void SetControlReadOnly(ReadOnlyStatus value) { this.Control.IsReadOnly = value; }
protected override void SetControlReadOnly(ReadOnlyStatus value) { _listEditor.IsReadOnly = value; }
/// <summary> /// 子类实现本方法设置控件的只读性。 /// </summary> /// <param name="value"></param> protected virtual void SetControlReadOnly(ReadOnlyStatus value) { throw new NotSupportedException("当前视图不支持设置 IsReadOnly 属性。"); }
protected override void SetControlReadOnly(ReadOnlyStatus value) { //报表永远只读。 }
/// <summary> /// 设置初始的 IsReadOnly 的值。 /// </summary> internal void SetInitVallue() { var indicator = this.Meta.ReadonlyIndicator; switch (indicator.Status) { case ReadOnlyStatus.None: case ReadOnlyStatus.ReadOnly: this.IsReadOnly = indicator.Status; break; case ReadOnlyStatus.Dynamic: this.BindDymanicReadOnly(); break; default: break; } }