public AddViewModel(ListViewModel lvm) { _myListViewModel = lvm; _addCommand = new DelegateCommand(SaveModel); }
public EditViewModel(ListViewModel lvm,int id) { _myListViewModel = lvm; _model = new Model.StopBitModel() { Id=id }; _editCommand = new DelegateCommand(SaveModel); }