public NotificationViewModel(
            NotificationService notificationService,
            DialogServiceViewModel dialogServiceViewModel)
        {
            this.notificationService    = notificationService;
            this.dialogServiceViewModel = dialogServiceViewModel;

            this.ClearCommand = new DelegateCommand(p => ClearAction());

            this.sbNotificationText = new StringBuilder();

            this.notificationService.NotificationAvailable += NotificationService_NotificationAvailable;
        }
        public ObjectGrid()
        {
            InitializeComponent();

            if (!DesignerProperties.GetIsInDesignMode(this))
            {
                this.dialogServiceViewModel = DependencyContainer.Get <DialogServiceViewModel>();
            }

            this.GridItemTypesComboBox.SelectionChanged += GridItemTypesComboBox_SelectionChanged;
            this.DrillUpButton.Click += DrillUpButton_Click;

            UpdateRootData();
            this.DataContextChanged += ObjectGrid_DataContextChanged;

            this.REPropertiesDataGrid.SelectionChanged     += REPropertiesDataGrid_SelectionChanged;
            this.REPropertiesDataGrid.SelectedCellsChanged += REPropertiesDataGrid_SelectedCellsChanged;
        }
        public DialogService(Window owner)
        {
            _owner = owner;

            _viewLocator            = new ViewLocator();
            _dialogServiceViewModel = new DialogServiceViewModel();

            BuildDialogServiceView();

            var mainWindowSize = _owner.GetObservable(Window.ClientSizeProperty).Skip(1);

            mainWindowSize.Subscribe(value =>
            {
                // _dialogServiceView.Width = value.Width / 2;
                // _dialogServiceView.Height = value.Height / 2;

                CenterDialogWindow();
            });
        }