Exemplo n.º 1
0
 public MainViewModel()
 {
     RSSListFrameViewModel    = new RSSListFrameViewModel();
     RSSContentFrameViewModel = new RSSContentFrameViewModel();
     _actions = new MainWindowActions();
     _actions.RSSListFrameViewModel = RSSListFrameViewModel;
     OpenAddFeedDialogCommand       = new RelayCommand(_actions.OpenAddFeedDialogAction);
     MoveWindowCommand  = new RelayCommand <object>(_actions.MoveWindowAction);
     DoubleClickCommand = new RelayCommand <object>(_actions.DoubleClickAction);
 }
Exemplo n.º 2
0
        public MainViewModel()
        {
            RSSListFrameViewModel = new RSSListFrameViewModel();
            RSSContentFrameViewModel = new RSSContentFrameViewModel();
            _actions = new MainWindowActions();
            _actions.RSSListFrameViewModel = RSSListFrameViewModel;
            OpenAddFeedDialogCommand = new RelayCommand(_actions.OpenAddFeedDialogAction);
            MoveWindowCommand = new RelayCommand<object>(_actions.MoveWindowAction);
            DoubleClickCommand = new RelayCommand<object>(_actions.DoubleClickAction);

            Messenger.Default.Register<RSSListFrame_ListItemViewModelMsg>(this, true, m =>
            {
                IsLeftDrawerOpen = false;
            });
        }