Implementing the LoginPresenter
Create a new file called LoginPresenter.cs
, add it to the Presenter
folder in the Chat.Common
project, and implement the following:
public class LoginPresenter : BasePresenter { #region Private Properties private ILoginView _view; #endregion #region IClientsListView public interface ILoginView : IView { event EventHandler<Tuple<string, string>> Login; event EventHandler<Tuple<string, string>> Register; } #endregion #region Constructors public LoginPresenter(ApplicationState state, INavigationService navigationService) { _navigationService = navigationService; _state = state; _webApiAccess = new WebApiAccess(); } #endregion #region Public Methods...