public void Remove(GanttViewTextViewColumn key) { if (!this.dictionary.Contains((object)key)) { return; } this.dictionary.Remove((object)key); }
public GanttViewEditorRequiredEventArgs( GanttViewDataItem item, GanttViewTextViewColumn column, Type editorType) : base(item) { this.column = column; this.editorType = editorType; }
public GanttViewDataItemAccessor(GanttViewTextViewColumn column) { if (column == null) { throw new ArgumentException("Column argument can not be null."); } this.column = column; this.isSubPropertyMode = !string.IsNullOrEmpty(this.column.FieldName) && this.column.FieldName.Contains("."); }
protected virtual void ColumnsCollectionChanged(NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.ItemChanged || e.Action == NotifyCollectionChangedAction.ItemChanging) { return; } this.firstVisibleColumn = (GanttViewTextViewColumn)null; this.lastVisibleColumn = (GanttViewTextViewColumn)null; }
public object this[GanttViewTextViewColumn column] { get { return(column.Accessor[this]); } set { if (column.FieldName == this.GanttViewElement.StartMember) { this.Start = Convert.ToDateTime(value); } else if (column.FieldName == this.GanttViewElement.EndMember) { this.End = Convert.ToDateTime(value); } else if (column.FieldName == this.GanttViewElement.TitleMember) { this.Title = Convert.ToString(value); } else if (column.FieldName == this.GanttViewElement.ProgressMember) { this.Progress = Convert.ToDecimal(value); } else { column.Accessor[this] = value; if (this.GanttViewElement != null) { this.GanttViewElement.OnItemChanged(new GanttViewItemChangedEventArgs(this, column.FieldName)); } } if (this.GanttViewElement.AllowSummaryEditing || this.Parent == null) { return; } if (column.FieldName == this.GanttViewElement.StartMember) { this.Parent.OnChildStartChanged(this); } else if (column.FieldName == this.GanttViewElement.EndMember) { this.Parent.OnChildEndChanged(this); } else { if (!(column.FieldName == this.GanttViewElement.ProgressMember)) { return; } this.Parent.OnChildProgressChanged(this); } } }
public void ReplaceKey(GanttViewTextViewColumn oldKey, GanttViewTextViewColumn newKey) { if (!this.dictionary.Contains((object)oldKey)) { return; } object obj = this.dictionary[(object)oldKey]; this.dictionary.Remove((object)oldKey); this.dictionary.Add((object)newKey, obj); }
public GanttViewTextViewCellElement GetCellElement( GanttViewTextViewColumn column) { foreach (GanttViewTextViewCellElement child in this.CellContainer.Children) { if (child.Data == column) { return(child); } } return((GanttViewTextViewCellElement)null); }
public object this[GanttViewTextViewColumn column] { get { if (column.IsDataBound && !string.IsNullOrEmpty(column.FieldName)) { return(this.dictionary[(object)column.FieldName]); } return(this.dictionary[(object)column]); } set { if (column.IsDataBound && !string.IsNullOrEmpty(column.FieldName)) { this.dictionary[(object)column.FieldName] = value; } this.dictionary[(object)column] = value; } }
public GanttViewTextViewHeaderCellElement( GanttViewTextItemElement owner, GanttViewTextViewColumn column) : base(owner, column) { }
public GanttViewDataItemBoundAccessor(GanttViewTextViewColumn column) : base(column) { }