예제 #1
0
    public void Add(T obj)
    {
        var transf = ((Component)(object)obj).transform;

        transf.parent = storage.transform;
        lookup.Add(transf, obj);

        OnModify?.Invoke(this);
    }
예제 #2
0
 public void ModifyConditions(decimal entry, DateTime entryExpiry, decimal target, DateTime targetExpiry)
 {
     PriceEntry  = entry;
     EntryExpiry = entryExpiry;
     PriceTarget = target;
     ExpireDate  = targetExpiry;
     _IsChanged  = true;
     OnModify?.Invoke(this);
 }
예제 #3
0
        public void ModifyAt(int _indParent, int _indChild)
        {
            ListWithChildEventArgs <T1, T2> evargs =
                new ListWithChildEventArgs <T1, T2>(this[_indParent], this.child[_indChild], _indParent);

            if (this.OnModify != null)
            {
                OnModify.Invoke(this, evargs);
            }

            this.child[_indChild] = evargs.ChildItem;
        }
예제 #4
0
 void VariablesModified(string key, object oldValue, object newValue, KeyList <string, object> sender)
 {
     OnModify?.Invoke(this, key, oldValue, newValue);
 }