public ActivityViewModel(Activity activity) { Activity = activity; }
private void ConfirmNewActivity() { var newActivity = new Activity { Name = NewActivityName, ActivityName = NewActivityType.Name }; Activities.Add(new ActivityViewModel(newActivity)); savedActivities.SaveAll(GetActivitiesRaw()); NewActivityType = ActivityTypes.FirstOrDefault(); NewActivityName = String.Empty; IsAddingActivity = false; }