private void ChageWellboresRootGridViewModel(WellboresRootGridViewModel wellboresRootGridViewModel)
        {
            if (currentWellboresRootGridViewModel != null && currentWellboresRootGridViewModel.Equals(wellboresRootGridViewModel))
            {
                return;
            }

            currentWellboresRootGridViewModel = wellboresRootGridViewModel;
            if (currentWellboresRootGridViewModel != null)
            {
                currentWellboresRootGridViewModel.MainItems.AnyCollectionChanged += MainItemsAnyCollectionChanged;
            }

            FillDisplayText();
        }
Esempio n. 2
0
        private void ChageWellboresRootGridViewModel(WellboresRootGridViewModel wellboresRootGridViewModel)
        {
            if (currentWellboresRootGridViewModel != null && currentWellboresRootGridViewModel.Equals(wellboresRootGridViewModel))
            {
                return;
            }

            currentWellboresRootGridViewModel = wellboresRootGridViewModel;
            if (currentWellboresRootGridViewModel != null)
            {
                currentWellboresRootGridViewModel.MainItems.AnyCollectionChanged += MainItemsAnyCollectionChanged;
            }

            RefreshData();
            ReDraw();
        }