Esempio n. 1
0
        public virtual void CreateEvents()
        {
            if (!HasEvents)
            {
                if (!IsBasicChannelEvent)
                {
                    ("create events non basic").OutputDebug();
                    return;
                }

                if (Data2.IsNull())
                {
                    ("data2 missing").OutputDebug();
                    return;
                }
                if (Data1.IsNull())
                {
                    ("data1 missing").OutputDebug();
                    return;
                }

                if (TickPair.IsValid == false)
                {
                    ("invalid TickPair").OutputDebug();
                    return;
                }

                if (Channel.IsNull())
                {
                    ("invalid channel").OutputDebug();
                    Channel = 0;
                }
                if (Owner.IsNotNull())
                {
                    props.SetUpdatedEventPair(Owner.Insert(Data1, Data2, Channel, TickPair));
                }
            }
            if (IsNew)
            {
                AddToList();
            }
        }