Inheritance: EventPropertiesModel
 public EventPropertiesViewModel(EventPropertiesModel eventPropertiesModel)
 {
     if (eventPropertiesModel == null)
         ProposedProperties = new KeyboardEventPropertiesModel
         {
             ExpirationType = ExpirationType.Time,
             Length = new TimeSpan(0, 0, 1),
             TriggerDelay = new TimeSpan(0)
         };
     else
         ProposedProperties = GeneralHelpers.Clone(eventPropertiesModel);
 }
Exemple #2
0
        /// <summary>
        ///     Tells the current layer type to setup the layer's LayerProperties
        /// </summary>
        public void SetupProperties()
        {
            LayerType.SetupProperties(this);

            // If the type is an event, set it up
            if (IsEvent && EventProperties == null)
            {
                EventProperties = new KeyboardEventPropertiesModel
                {
                    ExpirationType = ExpirationType.Time,
                    Length         = new TimeSpan(0, 0, 1),
                    TriggerDelay   = new TimeSpan(0)
                };
            }
        }