private void ChageWellboresRootGridViewModel(WellboresRootGridViewModel wellboresRootGridViewModel) { if (currentWellboresRootGridViewModel != null && currentWellboresRootGridViewModel.Equals(wellboresRootGridViewModel)) { return; } currentWellboresRootGridViewModel = wellboresRootGridViewModel; if (currentWellboresRootGridViewModel != null) { currentWellboresRootGridViewModel.MainItems.AnyCollectionChanged += MainItemsAnyCollectionChanged; } FillDisplayText(); }
private void ChageWellboresRootGridViewModel(WellboresRootGridViewModel wellboresRootGridViewModel) { if (currentWellboresRootGridViewModel != null && currentWellboresRootGridViewModel.Equals(wellboresRootGridViewModel)) { return; } currentWellboresRootGridViewModel = wellboresRootGridViewModel; if (currentWellboresRootGridViewModel != null) { currentWellboresRootGridViewModel.MainItems.AnyCollectionChanged += MainItemsAnyCollectionChanged; } RefreshData(); ReDraw(); }