public GeneralInfoItem(object obj, MethodInfo method, GeneralInfoItemAttribute attribute) : base(attribute) { id = this.GetType().Name.Replace("InfoItem", "") + ":" + obj.GetType().Name.Replace("MechJebModule", "") + "." + method.Name; draw = (Action)Delegate.CreateDelegate(typeof(Action), obj, method); }
public GeneralInfoItem(object obj, MethodInfo method, GeneralInfoItemAttribute attribute) : base(attribute) { id = this.GetType().Name.Replace("InfoItem", "") + ":" + obj.GetType().Name.Replace("MechJebModule", "") + "." + method.Name; this.obj = obj; this.method = method; }