public ProductCompanyWindow() { InitializeComponent(); ViewModel = new ProductCompanyViewModel(); ViewModel.InsertCommand.IsEnabled = true; base.DataContext = ViewModel; }
public ProductCompanyListWindow() { InitializeComponent(); ViewModel = new ProductCompanyViewModel(); base.DataContext = ViewModel; ViewModel.DeleteCommand.IsEnabled = true; }