public ItemDefinitionScopeNode(IAzManItem item) : base(true) { this.item = item; // Create a message view for the Store node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); switch (this.item.ItemType) { case ItemType.Role: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg30"); break; case ItemType.Task: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg40"); break; case ItemType.Operation: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg50"); break; } lvdItems.ViewType = typeof(ItemMembersListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.RenderItemDefinitionScopeNode(); }
public ItemDefinitionScopeNode(IAzManItem item) : base(true) { this.item = item; // Create a message view for the Store node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); switch (this.item.ItemType) { case ItemType.Role: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg30"); break; case ItemType.Task: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg40"); break; case ItemType.Operation: lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg50"); break; } lvdItems.ViewType = typeof(ItemMembersListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.RenderItemDefinitionScopeNode(); }
/// <summary> /// Initializes a new instance of the <see cref="LicenseScopeNode"/> class. /// </summary> /// <param name="configurator">The configurator.</param> public LicenseScopeNode(IConfigurator configurator) : base(true) { this.Configurator = configurator; // Init View Params and Tag this.DataElementType = DataElementType.License; this.DisplayName = SnapInResources.ScopeNodeDispayName_License; this.Tag = string.Empty; this.ImageIndex = 20; this.SelectedImageIndex = 20; // Init Right Panel // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = SnapInResources.ScopeNodeDispayName_License; lvd.ViewType = typeof(LicenseListView); //lvd.Options = MmcListViewOptions.ExcludeScopeNodes; this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; // Init Actions this.EnabledStandardVerbs = StandardVerbs.Refresh; }
/// <summary> /// Initializes a new instance of the <see cref="CompaniesScopeNode"/> class. /// </summary> public CompaniesScopeNode(IConfigurator configurator) { this.Configurator = configurator; // Init View Params and Tag this.DataElementType = DataElementType.Companies; this.DisplayName = SnapInResources.ScopeNodeDispayName_Companies; this.Tag = string.Empty; this.ImageIndex = 3; this.SelectedImageIndex = 3; // Init Right Panel // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = SnapInResources.ScopeNodeDispayName_Companies; lvd.ViewType = typeof(CompanyListView); //lvd.Options = MmcListViewOptions.SingleSelect; this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; // Init Actions this.EnabledStandardVerbs = StandardVerbs.Refresh; this.CreateNewCompany = new SyncAction(SnapInResources.CompaniesScopeNode_Action_Create_Name, SnapInResources.CompaniesScopeNode_Action_Create_Description, 8); this.CreateNewCompanyForDatabase = new SyncAction(SnapInResources.CompaniesScopeNode_Action_CreateForDatabase_Name, SnapInResources.CompaniesScopeNode_Action_CreateForDatabase_Description, 31); this.ActionsPaneItems.Add(this.CreateNewCompany); this.ActionsPaneItems.Add(this.CreateNewCompanyForDatabase); // Read Copmpanies From Config Refresh(); }
/// <summary> /// Initializes a new instance of the <see cref="CompanyScopeNode"/> class. /// </summary> public CompanyScopeNode(ICompanyInfo companyInfo) { this.CompanyInfo = companyInfo; // Init Data LoadCompanyInfo(); // Init Actions this.DataElementType = DataElementType.Company; this.EnabledStandardVerbs = StandardVerbs.Delete| StandardVerbs.Refresh; this.StartAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_Start_Name, SnapInResources.CompanyScopeNode_Action_Start_Description, 10); this.StopAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_Stop_Name, SnapInResources.CompanyScopeNode_Action_Stop_Description, 11); this.ChangeDomainAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_UpdateAddress_Name, SnapInResources.CompanyScopeNode_Action_ChangeDomain_Description, 12); this.UpgradeAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_Upgrade_Name, SnapInResources.CompanyScopeNode_Action_Upgrade_Description, 6); this.BrowseAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_Browse_Name, SnapInResources.CompanyScopeNode_Action_Browse_Description, 16); this.EnableSchedulerServiceAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_EnableSchedulerService_Name, SnapInResources.CompanyScopeNode_Action_EnableSchedulerService_Description, 27); this.DisableSchedulerServiceAction = new SyncAction(SnapInResources.CompanyScopeNode_Action_DisableSchedulerService_Name, SnapInResources.CompanyScopeNode_Action_DisableSchedulerService_Description, 28); this.ChangePortalPool = new SyncAction(SnapInResources.CompanyScopeNode_Action_ChangePortalPool_Name, SnapInResources.CompanyScopeNode_Action_ChangePortalPool_Description, 29); this.ActionsPaneItems.Add(this.BrowseAction); this.ActionsPaneItems.Add(new ActionSeparator()); this.ActionsPaneItems.Add(this.StartAction); this.ActionsPaneItems.Add(this.StopAction); this.ActionsPaneItems.Add(new ActionSeparator()); this.ActionsPaneItems.Add(this.ChangeDomainAction); this.ActionsPaneItems.Add(this.ChangePortalPool); this.ActionsPaneItems.Add(this.UpgradeAction); this.ActionsPaneItems.Add(new ActionSeparator()); // Not Implemented yet //this.UpgradeAction.Enabled = false; // Init view MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = SnapInResources.CompanySettingsListView_DisplayName; lvd.ViewType = typeof(CompanySettingsListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; // Attach the view to the root node this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; // disable actions + Images RefreshCompanyStatus(); }
public ItemAuthorizationScopeNode(IAzManItem item) : base(true) { this.item = item; // Create a message view for the Item node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("Menu_Msg30"); lvdItems.ViewType = typeof(AuthorizationsListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.RenderItemAuthorizationScopeNode(); }
public ApplicationGroupScopeNode(IAzManApplicationGroup applicationGroup) : base(true) { this.applicationGroup = applicationGroup; // Create a message view for the Application Group node. MMC.MmcListViewDescription lvlApplicationGroup = new MMC.MmcListViewDescription(); lvlApplicationGroup.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg10"); lvlApplicationGroup.ViewType = typeof(ApplicationGroupListView); lvlApplicationGroup.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvlApplicationGroup); this.ViewDescriptions.DefaultIndex = 0; this.RenderApplicationGroupScopeNode(); }
public ItemAuthorizationsScopeNode(IAzManApplication application) : base() { this.application = application; // Create a message view for the Store Groups node. MMC.MmcListViewDescription lvdStoreGroups = new MMC.MmcListViewDescription(); lvdStoreGroups.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg20"); lvdStoreGroups.ViewType = typeof(ItemDefinitionsListView); lvdStoreGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdStoreGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderAuthorizations(); }
public StoreGroupsScopeNode(IAzManStore store) : base(!store.HasStoreGroups()) { this.store = store; // Create a message view for the Store Groups node. MMC.MmcListViewDescription lvdStoreGroups = new MMC.MmcListViewDescription(); lvdStoreGroups.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg90"); lvdStoreGroups.ViewType = typeof(StoreGroupsListView); lvdStoreGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdStoreGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderStoreGroups(); }
public StorageScopeNode() : this(String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, null) { this.RenderInitialMessageViewDescription(); // Create a message view for the Storage node. MMC.MmcListViewDescription lvd = new MMC.MmcListViewDescription(); lvd.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg80"); lvd.ViewType = typeof(StoresListView); lvd.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; }
public StorageScopeNode() : this(String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, null) { this.RenderInitialMessageViewDescription(); // Create a message view for the Storage node. MMC.MmcListViewDescription lvd = new MMC.MmcListViewDescription(); lvd.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg80"); lvd.ViewType = typeof(StoresListView); lvd.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; }
public ApplicationGroupsScopeNode(IAzManApplication application) : base(!application.HasApplicationGroups()) { this.application = application; // Create a message view for the Application Groups node. MMC.MmcListViewDescription lvdApplicationGroups = new MMC.MmcListViewDescription(); lvdApplicationGroups.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg20"); lvdApplicationGroups.ViewType = typeof(ApplicationGroupsListView); lvdApplicationGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdApplicationGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderApplicationGroups(); }
public ApplicationGroupsScopeNode(IAzManApplication application) : base(!application.HasApplicationGroups()) { this.application = application; // Create a message view for the Application Groups node. MMC.MmcListViewDescription lvdApplicationGroups = new MMC.MmcListViewDescription(); lvdApplicationGroups.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg20"); lvdApplicationGroups.ViewType = typeof(ApplicationGroupsListView); lvdApplicationGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdApplicationGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderApplicationGroups(); }
public ItemAuthorizationScopeNode(IAzManItem item) : base(true) { this.item = item; // Create a message view for the Item node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("Menu_Msg30"); lvdItems.ViewType = typeof(AuthorizationsListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.RenderItemAuthorizationScopeNode(); }
public StoreGroupsScopeNode(IAzManStore store) : base(!store.HasStoreGroups()) { this.store = store; // Create a message view for the Store Groups node. MMC.MmcListViewDescription lvdStoreGroups = new MMC.MmcListViewDescription(); lvdStoreGroups.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg90"); lvdStoreGroups.ViewType = typeof(StoreGroupsListView); lvdStoreGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdStoreGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderStoreGroups(); }
public ItemDefinitionsScopeNode(IAzManApplication application) : base() { this.application = application; // Create a message view for the Store Groups node. MMC.MmcListViewDescription lvdStoreGroups = new MMC.MmcListViewDescription(); lvdStoreGroups.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg30"); lvdStoreGroups.ViewType = typeof(ItemDefinitionsListView); lvdStoreGroups.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdStoreGroups); this.ViewDescriptions.DefaultIndex = 0; this.RenderItemDefinitions(); }
public ApplicationGroupScopeNode(IAzManApplicationGroup applicationGroup) : base(true) { this.applicationGroup = applicationGroup; // Create a message view for the Application Group node. MMC.MmcListViewDescription lvlApplicationGroup = new MMC.MmcListViewDescription(); lvlApplicationGroup.DisplayName = Globalization.MultilanguageResource.GetString("ListView_Msg10"); lvlApplicationGroup.ViewType = typeof(ApplicationGroupListView); lvlApplicationGroup.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvlApplicationGroup); this.ViewDescriptions.DefaultIndex = 0; this.RenderApplicationGroupScopeNode(); }
public StoreScopeNode(IAzManStore store) { //Prepare Node this.store = store; // Create a message view for the Store node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg100"); lvdItems.ViewType = typeof(StoreGroupsAndApplicationsListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.Children.Clear(); this.RenderStoreScopeNode(); }
public StoreScopeNode(IAzManStore store) { //Prepare Node this.store = store; // Create a message view for the Store node. MMC.MmcListViewDescription lvdItems = new MMC.MmcListViewDescription(); lvdItems.DisplayName = Globalization.MultilanguageResource.GetString("Folder_Msg100"); lvdItems.ViewType = typeof(StoreGroupsAndApplicationsListView); lvdItems.Options = MMC.MmcListViewOptions.AllowUserInitiatedModeChanges; this.ViewDescriptions.Clear(); this.ViewDescriptions.Add(lvdItems); this.ViewDescriptions.DefaultIndex = 0; this.Children.Clear(); this.RenderStoreScopeNode(); }
/// <summary> /// Constructor /// </summary> public StandardVerbsSnapIn() { // Create the root node this.RootNode = new ScopeNode(); this.RootNode.DisplayName = "StandardVerbs Samples"; // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Users (MmcListView)"; lvd.ViewType = typeof(StandardVerbsListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; // Attach the view to the root node this.RootNode.ViewDescriptions.Add(lvd); this.RootNode.ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Constructor /// </summary> public PropertySheetSnapIn() { // snap-in node ScopeNode scopeNode = new SampleScopeNode(); scopeNode.DisplayName = "Property Sheet Sample"; this.RootNode = scopeNode; this.RootNode.EnabledStandardVerbs = StandardVerbs.Properties; // snap-in result list view MmcListViewDescription mmcListViewDescription = new MmcListViewDescription(); mmcListViewDescription.DisplayName = "User List with Properties"; mmcListViewDescription.ViewType = typeof(UserListView); mmcListViewDescription.Options = MmcListViewOptions.SingleSelect; scopeNode.ViewDescriptions.Add(mmcListViewDescription); scopeNode.ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Constructor for snapin /// </summary> public ActionsSnapIn() { // Create the root node this.RootNode = new ActionScopeNode(); this.RootNode.DisplayName = "Actions Sample"; this.RootNode.ImageIndex = 0; // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Users (MmcListView)"; lvd.ViewType = typeof(ActionListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes | MmcListViewOptions.AllowUserInitiatedModeChanges; // Attach the view to the root node this.RootNode.ViewDescriptions.Add(lvd); this.RootNode.ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Constructot /// </summary> public DragDropSnapIn() { // Create the root node this.RootNode = new ScopeNode(); this.RootNode.DisplayName = "DragDrop Sample"; this.RootNode.ImageIndex = 0; // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Users (MmcListView)"; lvd.ViewType = typeof(DragDropListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; // Attach the view to the root node this.RootNode.ViewDescriptions.Add(lvd); this.RootNode.ViewDescriptions.DefaultIndex = 0; }
/// <summary> /// Constructor /// </summary> public SelectionListviewSnapIn() { // Create the root node this.RootNode = new ScopeNode(); this.RootNode.DisplayName = "Selection (MmcListView) Sample"; // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Users (MmcListView)"; lvd.ViewType = typeof(SelectionListView); lvd.Options = MmcListViewOptions.ExcludeScopeNodes; // Attach the view to the root node this.RootNode.ViewDescriptions.Add(lvd); this.RootNode.ViewDescriptions.DefaultIndex = 0; this.RootNode.Children.Add(new ScopeNode()); this.RootNode.Children.Add(new ScopeNode()); this.RootNode.Children.Add(new ScopeNode()); this.RootNode.Children.Add(new ScopeNode()); }
/// <summary> /// Initializes a new instance of the <see cref="RootScopeNode"/> class. /// </summary> public RootScopeNode() { // Init View Params and Tag this.DataElementType = DataElementType.Companies; this.DisplayName = IbnConst.ProductFamily;//SnapInResources.ScopeNodeDispayName_Root; this.Tag = string.Empty; this.ImageIndex = 1; this.SelectedImageIndex = 1; // Init Right Panel // Create a message view for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = IbnConst.ProductFamily;//SnapInResources.ScopeNodeDispayName_Root; lvd.ViewType = typeof(ServerListView); //lvd.Options = MmcListViewOptions.ExcludeScopeNodes; this.ViewDescriptions.Add(lvd); this.ViewDescriptions.DefaultIndex = 0; // Init Actions this.EnabledStandardVerbs = StandardVerbs.Refresh; }
public ServicesManagerSnapIn() { // Load the images for the snap-in. // Both the LargeImages and SmallImages collections // should be populated with matching sets of images. Color transparentColor = Color.FromArgb(0, 255, 0); Bitmap bitmap = new Bitmap(typeof(ServicesManagerSnapIn).Assembly.GetManifestResourceStream("Microsoft.ManagementConsole.Samples.Images16.bmp")); this.SmallImages.TransparentColor = transparentColor; this.SmallImages.AddStrip(bitmap); bitmap = new Bitmap(typeof(ServicesManagerSnapIn).Assembly.GetManifestResourceStream("Microsoft.ManagementConsole.Samples.Images32.bmp")); this.LargeImages.TransparentColor = transparentColor; this.LargeImages.AddStrip(bitmap); // Create the root node this.RootNode = new ScopeNode(); this.RootNode.DisplayName = "- Services Manager Sample"; // Create an MmcListView for the root node. MmcListViewDescription lvd = new MmcListViewDescription(); lvd.DisplayName = "Services"; lvd.ViewType = typeof(ServicesListView); lvd.Options = MmcListViewOptions.SingleSelect; RootNode.ViewDescriptions.Add(lvd); RootNode.ViewDescriptions.DefaultIndex = 0; }
/// <summary>Initializes the nodes and the views attached to each node in the SnapIn tree.</summary> private void InitializeNodes() { // Primary Node for the SnapIn. Create it, and then add it to the Parent Node which belongs // to Computer Management _snapInNode = new ScopeNode { DisplayName = "WMI Demo Snap-In", ImageIndex = SnapInShared.WmiDemoImage, SelectedImageIndex = SnapInShared.WmiDemoImage }; PrimaryNode.Children.Add(_snapInNode); // Node which contains a report view of all the tasks that are in the system ScopeNode taskListNode = new ScopeNode { DisplayName = "Tasks", ImageIndex = SnapInShared.TaskImage, SelectedImageIndex = SnapInShared.TaskImage }; _snapInNode.Children.Add(taskListNode); // View Description for the Task List MmcListViewDescription scheduledLvd = new MmcListViewDescription { DisplayName = "Scheduled Task List", ViewType = typeof(Views.TaskListView), Options = MmcListViewOptions.ExcludeScopeNodes }; taskListNode.ViewDescriptions.Add(scheduledLvd); taskListNode.ViewDescriptions.DefaultIndex = 0; // Node for the Web site Link ScopeNode htmlNode = new ScopeNode { DisplayName = "Web Site", ImageIndex = SnapInShared.WebsiteImage, SelectedImageIndex = SnapInShared.WebsiteImage }; _snapInNode.Children.Add(htmlNode); HtmlViewDescription htmlDesc = new HtmlViewDescription { DisplayName = "The Coding Monkey", Url = new Uri("http://www.thecodingmonkey.net") }; // attach the view and set it as the default to show htmlNode.ViewDescriptions.Add(htmlDesc); htmlNode.ViewDescriptions.DefaultIndex = 0; // Node for the "Performance" Pane ScopeNode perfNode = new ScopeNode { DisplayName = "Performance", ImageIndex = SnapInShared.Performance, SelectedImageIndex = SnapInShared.Performance }; _snapInNode.Children.Add(perfNode); FormViewDescription perfFvd = new FormViewDescription { DisplayName = "Performance", ViewType = typeof(Views.PerformanceCounterFormView), ControlType = typeof(Views.PerformanceCounterViewControl) }; perfNode.ViewDescriptions.Add(perfFvd); perfNode.ViewDescriptions.DefaultIndex = 0; }