예제 #1
0
        public WindowViewModel()
        {
            ProjectTimeDataCollectionViewModel = new ProjectTimeDataCollectionViewModel();
            //NewProjectTimeDataViewModel = new ProjectTimeDataViewModel();
            //SelectedProjectTimeDataViewModel = new ProjectTimeDataViewModel();


            AddItemCommand = new AddItemCommand(AddItem);

            //might need to initialize NewProjectTimeDataViewModel values to 0 here
        }
예제 #2
0
 public void AddItem(object param)
 {
     ProjectTimeDataCollectionViewModel.AddItem(NewProjectDisplayName, NewProjectChargeNumber);
     NewProjectDisplayName = NewProjectChargeNumber = string.Empty;
 }