Пример #1
0
        internal Video(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
        {
            InitializeComponent();

            _bl = bl;
            _mainAdminViewModel = mainAdminViewModel;
            _viewModel = new VideoViewModel(_bl, _mainAdminViewModel);

            
            grdMain.DataContext = _viewModel;
        }
Пример #2
0
        public Notification(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
        {
            InitializeComponent();

            _bl = bl;
            _mainAdminViewModel = mainAdminViewModel;

            _viewModel = new NotificationViewModel(_bl, _mainAdminViewModel);
            App.AddViewModel("NotificationViewModel", _viewModel); 

            grdMain.DataContext = _viewModel;

        }
Пример #3
0
        public MainAdmin()
        {
            InitializeComponent();

            _viewModel = new MainAdminViewModel(new CommonBl_RestWebService());
            App.AddViewModel("MainAdminViewModel", _viewModel); 
            

            grdMain.DataContext = _viewModel;
            ribMain.SelectionChanged += ribMain_SelectionChanged;

            Control adminAreaControl = _viewModel.GetAdminAreaControl(0);
            ContentHost.Child = adminAreaControl; 
        }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bl"> Business Logic</param>
 /// <param name="mainAdminViewModel"></param>
 public NotificationViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
 {
     _bl = bl;
     _mainAdminViewModel = mainAdminViewModel;
 }
Пример #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bl"> Business Logic</param>
 /// <param name="mainAdminViewModel"></param>
 public NotificationViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
 {
     _bl = bl;
     _mainAdminViewModel = mainAdminViewModel;
 }
Пример #6
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="bl"> Business Logic</param>
        /// <param name="mainAdminViewModel"></param>
        public SettingViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
        {
            _bl = bl;
            _mainAdminViewModel = mainAdminViewModel;

        }
Пример #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bl"> Business Logic</param>
 /// <param name="mainAdminViewModel"></param>
 public VideoViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
 {
     _bl = bl;
     _mainAdminViewModel = mainAdminViewModel;
 }
Пример #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bl"> Business Logic</param>
 /// <param name="mainAdminViewModel"></param>
 public SettingViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
 {
     _bl = bl;
     _mainAdminViewModel = mainAdminViewModel;
 }
Пример #9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="bl"> Business Logic</param>
 /// <param name="mainAdminViewModel"></param>
 public VideoViewModel(ICommonBl bl, MainAdminViewModel mainAdminViewModel)
 {
     _bl = bl;
     _mainAdminViewModel = mainAdminViewModel;
 }