void IPropertyPage.SetObjects(uint count, object[] punk) { if (punk == null) { return; } if (count > 0) { if (punk[0] is ProjectConfig) { if (_project == null) { _project = (CommonProjectNode)((CommonProjectConfig)punk.First()).ProjectMgr; } var configs = new List <CommonProjectConfig>(); for (int i = 0; i < count; i++) { CommonProjectConfig config = (CommonProjectConfig)punk[i]; configs.Add(config); } SelectedConfigs = configs; } else if (punk[0] is NodeProperties) { if (_project == null) { Project = (CommonProjectNode)(punk[0] as NodeProperties).HierarchyNode.ProjectMgr; } } } else { Project = null; } if (_project != null) { LoadSettings(); } }
void IPropertyPage.SetObjects(uint count, object[] punk) { if (punk == null) { return; } if (count > 0) { if (punk[0] is ProjectConfig) { ArrayList configs = new ArrayList(); for (int i = 0; i < count; i++) { CommonProjectConfig config = (CommonProjectConfig)punk[i]; if (_project == null) { Project = (CommonProjectNode)config.ProjectMgr; break; } configs.Add(config); } } else if (punk[0] is NodeProperties) { if (_project == null) { Project = (CommonProjectNode)(punk[0] as NodeProperties).HierarchyNode.ProjectMgr; } } } else { Project = null; } if (_project != null) { LoadSettings(); } }