public ParagraphMissionNoteViewModel()
 {
     AddNew         = new Command(OnAddNewExecute);
     Note           = new SimpleNoteViewModel();
     BindStackPanel = new Command <StackPanel>(OnBindStackPanelExecute);
     BindBaseNote   = new Command <SimpleNote>(OnBindBaseNoteExecute);
 }
Beispiel #2
0
 private void OnSetContext()
 {
     if (Context != null)
     {
         Note = new SimpleNoteViewModel(Context);
         TimeSpan timeLeft = Context.End - Context.Start;
         TimeLeftMaxValue = (int)timeLeft.TotalDays;
         timeLeft         = DateTime.Now - Context.Start;
         TimeLeftCurrent  = (int)timeLeft.TotalDays;
         TimeLeftText     = GetProgressString(TimeLeftCurrent, TimeLeftMaxValue);
     }
 }