Esempio n. 1
0
File: Trigger.cs Progetto: hpie/hpie
        internal virtual void Bind(V2Interop.ITaskDefinition iTaskDef)
        {
            V2Interop.ITriggerCollection iTriggers = iTaskDef.Triggers;
            v2Trigger = iTriggers.Create(ttype);
            Marshal.ReleaseComObject(iTriggers);
            foreach (string key in unboundValues.Keys)
            {
                try
                {
                    object o = unboundValues[key];
                    CheckBindValue(key, ref o);
                    v2Trigger.GetType().InvokeMember(key, System.Reflection.BindingFlags.SetProperty, null, v2Trigger, new object[] { o });
                }
                catch (System.Reflection.TargetInvocationException tie) { throw tie.InnerException; }
                catch { }
            }
            unboundValues.Clear();
            unboundValues = null;

            this.repititionPattern = new RepetitionPattern(this);
            this.repititionPattern.Bind();
        }
Esempio n. 2
0
File: Trigger.cs Progetto: hpie/hpie
 internal Trigger(V2Interop.ITrigger iTrigger)
 {
     v2Trigger = iTrigger;
     this.ttype = iTrigger.Type;
     if (string.IsNullOrEmpty(v2Trigger.StartBoundary))
         this.StartBoundary = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
 }