Пример #1
0
 public AddUserSubMenu()
 {
     InitializeComponent();
     DataContext = new AddItemSubMenuViewModel();
     context     = DataContext as AddItemSubMenuViewModel;
     mode        = SubMenuMode.ADD;
 }
Пример #2
0
 public void InitializeForUpdate(ToDoListItem item)
 {
     mode    = SubMenuMode.UPDATE;
     oldItem = item;
     context.InitializeForUpdate(item);
 }