public DataSourceGroup(MatListSource owner, object value) : base(owner, value) { this.childItems = new List <IDataSourceItem>(); this.dataGroup = value as DataGroup; // group is expanded by default this.isExpanded = true; }
public IDataSourceGroup CreateGroup(MatListSource owner, DataGroup group) { return(new DataSourceGroup(owner, group)); }
/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to this instance. /// </summary> /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public override bool Equals(object obj) { DataGroup that = obj as DataGroup; return(that != null && object.Equals(this.key, that.key)); }