Example #1
0
 protected override void InitFields()
 {
     this.m_Fields = new FieldInfo[]
     {
         base.GetType().GetField("Try")
     };
     base.StoreInvokerFieldNames();
     this.m_DefaultMethods = new MethodInfo[]
     {
         base.GetType().GetMethod("AlwaysOK")
     };
     this.m_DelegateTypes = new Type[]
     {
         typeof(vp_Attempt.Tryer)
     };
     this.Prefixes = new Dictionary <string, int>
     {
         {
             "OnAttempt_",
             0
         }
     };
     this.Try = new vp_Attempt.Tryer(vp_Attempt.AlwaysOK);
 }
Example #2
0
 public override void Unregister(object t)
 {
     this.Try = new vp_Attempt.Tryer(vp_Attempt.AlwaysOK);
     base.Refresh();
 }
Example #3
0
 public override void Register(object t, string m, int v)
 {
     this.Try = (vp_Attempt.Tryer)Delegate.CreateDelegate(this.m_DelegateTypes[v], t, m);
     base.Refresh();
 }