private void _loginLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (_bookTransferrer.LoggedIn) { // This becomes a logout button _bookTransferrer.Logout(); } else { // The dialog is configured by Autofac to interact with the single instance of BloomParseClient, // which it will update with all the relevant information if login is successful. _loginDialog.ShowDialog(this); } UpdateDisplay(); }
internal void Logout() { _transferrer.Logout(); }