示例#1
0
 /// <summary>
 /// Handles the the event of the Navigator instance property changed.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void NavigatorPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == GetPropertyName(() => Navigator.CurrentView))
     {
         SelectedWorkspace = Navigator.CurrentView;
     }
 }
示例#2
0
文件: Navigator.cs 项目: vnl/Monies
 /// <summary>
 /// 
 /// </summary>
 /// <param name="workspaceView"></param>
 void INavigator.AddView(WorkspaceViewModelBase workspaceView)
 {
     if (null == workspaceView)
         throw new ArgumentNullException("workspaceView");
     _views.Add(workspaceView.RegisteredName, workspaceView);
 }
示例#3
0
文件: Navigator.cs 项目: vnl/Monies
 /// <summary>
 /// Sets the current view to home view.
 /// </summary>
 private void NavigateToHome()
 {
     _currentView = _homeView;
     OnPropertyChanged("CurrentView");
 }
示例#4
0
文件: Navigator.cs 项目: vnl/Monies
 /// <summary>
 /// 
 /// </summary>
 /// <param name="homeView"></param>
 void INavigator.AddHomeView(WorkspaceViewModelBase homeView)
 {
     _homeView = homeView;
 }
示例#5
0
文件: Navigator.cs 项目: vnl/Monies
 /// <summary>
 /// 
 /// </summary>
 /// <param name="viewKey"></param>
 void INavigator.NavigateToView(string viewKey)
 {
     if (_views.ContainsKey(viewKey))
     {
         _currentView =_views[viewKey];
         OnPropertyChanged("CurrentView");
     }
 }