private void AddLoadCaseBtn_Click(object sender, RoutedEventArgs e) { //New object of the Model(Auto Column Generating) var newLoadCaseRow = new LoadCasesModel(); //Add object of the model to a collection of the object mode(DataGrid) LoadCasesViewModel.LoadCasesModelCollection.Add(newLoadCaseRow); }
public LoadCasesViewModel(LoadCasesModel _loadCasesmodel) { this.loadCasesmodel = _loadCasesmodel; //LoadCasesModelCollection = new ObservableCollection<LoadCasesModel>() { }; }
//Costructor public LoadCasesViewModel() { this.loadCasesmodel = new LoadCasesModel(); }