/// <summary> /// Handles the the disposal of the source user, traducting a deconnection. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="PropertyChangedEventArgs"/> instance containing the event data.</param> private void Center_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "Disposed") { Components.Menu.MenuViewModel.Connected = false; Login = new Components.Authentication.LoginViewModel(); Login.Authenticated += On_Authentication; SourceView = Login; } }
/// <summary> /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class. /// </summary> public MainWindowViewModel() { Login = new Components.Authentication.LoginViewModel(); Login.Authenticated += On_Authentication; SourceView = Login; }