Ejemplo n.º 1
0
 public static ViewListModel GetInstance()
 {
     if (null == _vlm)
     {
         return (_vlm = new ViewListModel());
     }
     return _vlm;
 }
Ejemplo n.º 2
0
 public ViewList()
 {
     InitializeComponent();
     _vlm = ModelManager.GetInstance();
     this.DataContext = _vlm;
     this.CommandBindings.Add(new CommandBinding(ViewListCommands.LaunchAddItem,ExecuteLaunchAddItem,CanExecuteItem));
     this.CommandBindings.Add(new CommandBinding(ViewListCommands.EditItem, ExecuteEditItem, CanExecuteItem));
     this.CommandBindings.Add(new CommandBinding(ViewListCommands.UpdateItem, ExecuteUpdateItem, CanExecuteItem));
 }
Ejemplo n.º 3
0
 private ModelManager()
 {
     _vlm = new ViewListModel();
 }