public SchedulableEventWrapper(SchedulableEvent evnt)
 {
     this.SignatureName = evnt.Signature.Name;
     this.Probability = evnt.Probability.ToString();
 }
 /// <summary>
 /// Creates an EventCollection from the given input. If saveCollection is true, it also
 /// makes sure to save the returned EventCollection for later use.
 /// </summary>
 public EventCollection ToEventCollection(bool saveCollection)
 {
     this.AdaptProbabilities();
     SchedulableEvent[] events = new SchedulableEvent[allEvents.Where((SchedulerEventArguments arg) => arg.IsSelected).Count()];
     int index = 0;
     foreach (SchedulerEventArguments arg in allEvents)
     {
         if (arg.IsSelected)
         {
             events[index] = new SchedulableEvent(arg.Signature, arg.GetProbability());
             index++;
         }
     }
     float timeBetweenUpdates = 0.0f;
     float.TryParse(this.timeBetweenUpdates, out timeBetweenUpdates);
     EventCollection result = new EventCollection(name, timeBetweenUpdates, events);
     if (saveCollection)
     {
         EventCollectionManager.Instance.AddEventCollection(result);
     }
     return result;
 }
 public EventCollection ToEventCollection()
 {
     SchedulableEvent[] events = new SchedulableEvent[SchedulableEvents.Length];
     for (int i = 0; i < events.Length; i++)
     {
         events[i] = SchedulableEvents[i].ToSchedulableEvent();
     }
     return new EventCollection(Name, float.Parse(TimeBetweenUpdates), events);
 }