public WindowViewModel() { ProjectTimeDataCollectionViewModel = new ProjectTimeDataCollectionViewModel(); //NewProjectTimeDataViewModel = new ProjectTimeDataViewModel(); //SelectedProjectTimeDataViewModel = new ProjectTimeDataViewModel(); AddItemCommand = new AddItemCommand(AddItem); //might need to initialize NewProjectTimeDataViewModel values to 0 here }
public void AddItem(object param) { ProjectTimeDataCollectionViewModel.AddItem(NewProjectDisplayName, NewProjectChargeNumber); NewProjectDisplayName = NewProjectChargeNumber = string.Empty; }