Ejemplo n.º 1
0
        private void InternalAdd(Person person, string modalName, string subModalName, TimeSpan startTime, TimeSpan endTime, double?value, string subtitle)
        {
            try
            {
                var subModalPersonInScene = TypeValidation.GetSmtPis(person, modalName, subModalName);

                //create interval and add to smtPis
                IntervalData intervalElement = new IntervalData()
                {
                    StartTime = startTime,
                    EndTime   = endTime
                };
                subModalPersonInScene.RepresentTypes.Add(new RepresentType()
                {
                    Value        = value,
                    Subtitle     = subtitle,
                    Index        = null,
                    IntervalData = intervalElement,
                    SubModalType_PersonInScene = subModalPersonInScene
                });
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void InternalAdd(Person person, string modalName, string subModalName, TimeSpan eventTime, double?value, string subtitle, int toInterval)
        {
            try
            {
                var subModalPersonInScene = TypeValidation.GetSmtPis(person, modalName, subModalName);

                //create event and add to smtPis
                EventData eventElement = new EventData()
                {
                    EventTime  = eventTime,
                    ToInterval = toInterval
                };
                subModalPersonInScene.RepresentTypes.Add(new RepresentType()
                {
                    Value     = value,
                    Subtitle  = subtitle,
                    Index     = null,
                    EventData = eventElement,
                    SubModalType_PersonInScene = subModalPersonInScene
                });
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }
Ejemplo n.º 3
0
        private void InternalAdd(Person person, string modalName, string subModalName, int index, double?value, string subtitle)
        {
            var subModalPersonInScene = TypeValidation.GetSmtPis(person, modalName, subModalName);

            //create event and add to smtPis
            subModalPersonInScene.RepresentTypes.Add(new RepresentType()
            {
                Value    = value,
                Subtitle = subtitle,
                Index    = index,
                SubModalType_PersonInScene = subModalPersonInScene
            });
        }