partial void AddMandatoryAttributes(Foundation.NSObject sender) { if (MandatoryAttributesListView.Enabled == true && isAddMode) { SelectListItemsWindowController swc = new SelectListItemsWindowController(allAttributesList, mandatoryAttributesList, null); nint ret = NSApplication.SharedApplication.RunModalForWindow(swc.Window); if (ret == VMIdentityConstants.DIALOGOK) { mandatoryAttributesList.AddRange(swc.SelectedItemsList); MandatoryAttributesListView.DataSource = new StringItemsListView(mandatoryAttributesList); MandatoryAttributesListView.ReloadData(); } } }
partial void AddObjectClass(Foundation.NSObject sender) { SelectObjectClassWindowController swc = new SelectObjectClassWindowController(parentClassList); nint ret = NSApplication.SharedApplication.RunModalForWindow(swc.Window); if (ret == VMIdentityConstants.DIALOGOK) { ParentClass.StringValue = swc.SelectedItem; // mandatoryAttributesList.RemoveAll(item => parentMandatoryAttributes.Contains(item)); // parentMandatoryAttributes.Clear(); // parentOptionalAttributes.Clear(); // parentMandatoryAttributes.AddRange(this.schemaManager.GetRequiredAttributes(ParentClass.StringValue).Select(e => e.Name).ToList()); // parentOptionalAttributes.AddRange(this.schemaManager.GetOptionalAttributes(ParentClass.StringValue).Select(e => e.Name).ToList()); // mandatoryAttributesList.AddRange(parentMandatoryAttributes); MandatoryAttributesListView.DataSource = new StringItemsListView(mandatoryAttributesList); MandatoryAttributesListView.ReloadData(); } }
void ReleaseDesignerOutlets() { if (ActionButton != null) { ActionButton.Dispose(); ActionButton = null; } if (AddAuxiliaryClassesButton != null) { AddAuxiliaryClassesButton.Dispose(); AddAuxiliaryClassesButton = null; } if (AddMandatoryAttributesButton != null) { AddMandatoryAttributesButton.Dispose(); AddMandatoryAttributesButton = null; } if (AddObjectClassButton != null) { AddObjectClassButton.Dispose(); AddObjectClassButton = null; } if (AddOptionalAttributesButton != null) { AddOptionalAttributesButton.Dispose(); AddOptionalAttributesButton = null; } if (AuxiliaryClassesListView != null) { AuxiliaryClassesListView.Dispose(); AuxiliaryClassesListView = null; } if (ClassTypePopup != null) { ClassTypePopup.Dispose(); ClassTypePopup = null; } if (MandatoryAttributesButton != null) { MandatoryAttributesButton.Dispose(); MandatoryAttributesButton = null; } if (MandatoryAttributesListView != null) { MandatoryAttributesListView.Dispose(); MandatoryAttributesListView = null; } if (ObjectClassDescription != null) { ObjectClassDescription.Dispose(); ObjectClassDescription = null; } if (GovernsIDField != null) { GovernsIDField.Dispose(); GovernsIDField = null; } if (ObjectClassID != null) { ObjectClassID.Dispose(); ObjectClassID = null; } if (ObjectClassName != null) { ObjectClassName.Dispose(); ObjectClassName = null; } if (OptionalAttributesButton != null) { OptionalAttributesButton.Dispose(); OptionalAttributesButton = null; } if (OptionalAttributesListView != null) { OptionalAttributesListView.Dispose(); OptionalAttributesListView = null; } if (ParentClass != null) { ParentClass.Dispose(); ParentClass = null; } if (RemoveAuxiliaryClassesButton != null) { RemoveAuxiliaryClassesButton.Dispose(); RemoveAuxiliaryClassesButton = null; } if (RemoveMandatoryAttributesButton != null) { RemoveMandatoryAttributesButton.Dispose(); RemoveMandatoryAttributesButton = null; } if (RemoveOptionalAttributesButton != null) { RemoveOptionalAttributesButton.Dispose(); RemoveOptionalAttributesButton = null; } }