Beispiel #1
0
        void LoadSubResources()
        {
            Array.ForEach(ChildItems.OfType <PaddingLoadingItem>().ToArray(), s => s.Remove());

            //appnd sub items
            ListView?.BeginUpdate();

            foreach (var item in ChildItems.OfType <PaddingLoadingItem>().ToArray())
            {
                item.Remove();
            }
            ChildItems.AddRange(Resource.SubResources.Select(s => new ResourceListViewItem(s, false)));

            ListView?.EndUpdate();
        }
Beispiel #2
0
 /// <summary>
 /// Used to convert member of old Configuration class to ConfigurationV2
 /// </summary>
 /// <param name="configOld1">old member of Configuration</param>
 public void CopyFromConfigurationOld1(Configuration configOld1)
 {
     TeamProjectCollection = configOld1.TeamProjectCollection;
     TeamProject           = configOld1.TeamProject;
     ChildItems.AddRange(configOld1.ChildItems);
     BacklogItems.AddRange(configOld1.BacklogItems);
     foreach (var state in configOld1.States)
     {
         States.Add(state.Clone() as ICustomState);
     }
     SortFieldName          = configOld1.SortFieldName;
     SortDirection          = configOld1.SortDirection;
     RowSummaryFieldName    = configOld1.RowSummaryFieldName;
     ColumnSummaryFieldName = configOld1.ColumnSummaryFieldName;
     LinkType = configOld1.LinkType;
     QueryId  = configOld1.QueryId;
     ReportId = configOld1.ReportId;
     ReportParameters.AddRange(configOld1.ReportParameters);
     IsAutoRefreshChecked = defaultIsAutoRefreshChecked;
     AutoRefreshDelay     = defaultAutoRefreshDelay;
 }