public void Save()
        {
            Activity = new Activity();
            Activity.Name = Name;
            Activity.ExpectedEffort = int.Parse(ExpectedEffort);
            if (Tags != null)
            {
                Activity.Tags = DomainContext.ActivityTags.GetOrCreate(Tags);
            }
            DomainContext.Activities.Add(Activity);
            DomainContext.Commit();

            Close(true);
        }
Esempio n. 2
0
 private void OnActivitySelected(Activity activity, IDomainContext context)
 {
     PendingActivity = activity;
     PendingDomainContext = context;
     if (State != TimerState.Sprint && State != TimerState.HomeStraight)
     {
         CurrentActivity = activity;
         CurrentDomainContext = context;
     }
 }