public void NewTemplate() { this.TemplateOperation = CrudOperation.Create; this.Template = new TrainingSetTemplate(); this.Template.EffortType = ApplicationContext.Current.EffortTypes.FirstOrDefault(); this.Template.PropertyChanged += (sender, e) => { if (e.PropertyName == "EffortType") { foreach (var interval in Intervals) { interval.EffortType = this.Template.EffortType; } } }; this.Template.BeginEdit(); shell.AddToLayoutRoot(View as UIElement); }
public void Show() { shell.AddToLayoutRoot(this); }
public void Show() { shell.AddToLayoutRoot(View as UIElement); }