コード例 #1
0
 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);
 }
コード例 #2
0
 public void Show()
 {
     shell.AddToLayoutRoot(this);
 }
コード例 #3
0
 public void Show()
 {
     shell.AddToLayoutRoot(View as UIElement);
 }