Example #1
0
        public Review()
        {
            InitializeComponent();
            InitializeDialogs();

            if (DataContext is ReviewViewModel)
            {
                _viewModel             = DataContext as ReviewViewModel;
                _viewModel.SetDialog  += ShowDialogEventHandler;
                _viewModel.HideDialog += HideDialogEventHandler;

                CheckDialogsState();
            }
            else
            {
                DataContextChanged += new DependencyPropertyChangedEventHandler(DataContextChangedEventHandler);
            }
        }