Example #1
0
        private void EditOverrideForm_Load(object sender, EventArgs e)
        {
            var clone = new CustomAttribute(SelectedAttribute.Constructor);

            foreach (var ctorarg in SelectedAttribute.ConstructorArguments)
            {
                clone.ConstructorArguments.Add(ctorarg);
            }

            foreach (var fnarg in SelectedAttribute.Fields)
            {
                clone.Fields.Add(fnarg);
            }

            foreach (var pnarg in SelectedAttribute.Properties)
            {
                clone.Properties.Add(pnarg);
            }

            WorkingAttribute = clone;
            ConstructorArguments.Bind(clone);
            Fields.Bind(clone);
            Properties.Bind(clone);
            Constructor.SelectedOperand   = clone.Constructor;
            AttributeType.SelectedOperand = clone.AttributeType;
        }
Example #2
0
        private void CreateOverrideForm_Load(object sender, EventArgs e)
        {
            ButInsertBefore.Enabled = SelectedAttribute != null;
            ButInsertAfter.Enabled  = SelectedAttribute != null;

            var newca = new CustomAttribute(null);

            WorkingAttribute = newca;
            ConstructorArguments.Bind(WorkingAttribute);
            Fields.Bind(WorkingAttribute);
            Properties.Bind(WorkingAttribute);
        }