public void AddDataSourceInfo(DataSourceInfo dataSourceInfo)
 {
     if (dataSourceInfo.Index < 1)
     {
         dataSourceInfo.Index = (from item in this.DataSources.OfType <DataSourceInfo>() select item.Index).DefaultIfEmpty().Max() + 1;
     }
     this.DataSources.Add(dataSourceInfo);
 }
 public void RemoveDataSourceInfo(DataSourceInfo dataSourceInfo)
 {
     this.DataSources.Remove(dataSourceInfo);
 }