Пример #1
0
        private FieldBaseControl CreateFieldControlFromInfo(FieldBuilder info)
        {
            FieldBaseControl ctrl = (FieldBaseControl)mControlType.InvokeMember("new", System.Reflection.BindingFlags.CreateInstance, null, null, null);
            ctrl.FieldInfo = info;

            ctrl.FieldInfoReload();
            ctrl.InfoChanged += new EventHandler(FieldControlChange);
            ctrl.OrderChanged += new EventHandler(FieldControlOrderChange);

            return ctrl;
        }
 /// <summary>
 /// Add a field to the class
 /// </summary>
 /// <param name="field">Field details to add</param>
 internal void AddFieldInternal(FieldBuilder field)
 {
     field.mFieldIndex = mFields.Add(field);
     field.mClassBuilder = this;
 }