Example #1
0
 private void FillControlsWithAttributeData()
 {
     AttributeName.StringValue        = AttributeDTO.Name;
     AttributeDescription.StringValue = AttributeDTO.Description;
     AttributeX500ID.StringValue      = AttributeDTO.AttributeID;
     if (!AttributeDTO.SingleValue)
     {
         MultiValuedCheckBox.State = NSCellStateValue.On;
     }
     AttribtueSyntaxPopUp.SelectItem(Array.IndexOf(syntaxList, AttributeDTO.Type));
 }
        void ReleaseDesignerOutlets()
        {
            if (AttribtueSyntaxPopUp != null)
            {
                AttribtueSyntaxPopUp.Dispose();
                AttribtueSyntaxPopUp = null;
            }

            if (ActionButton != null)
            {
                ActionButton.Dispose();
                ActionButton = null;
            }

            if (AttributeDescription != null)
            {
                AttributeDescription.Dispose();
                AttributeDescription = null;
            }

            if (AttributeName != null)
            {
                AttributeName.Dispose();
                AttributeName = null;
            }

            if (MultiValuedCheckBox != null)
            {
                MultiValuedCheckBox.Dispose();
                MultiValuedCheckBox = null;
            }

            if (AttributeX500ID != null)
            {
                AttributeX500ID.Dispose();
                AttributeX500ID = null;
            }
        }