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();
            }
        }