Ejemplo n.º 1
0
        private void ExecuteLoginCommand()
        {
            if (this.LabelText == "Sign In")
            {
                this.LabelText = "Sign Out";
                Messenger.Default.Send(new NavigationMessage {
                    Action = "Login"
                });
            }
            else
            {
                this.LabelText = "Sign In";
                Messenger.Default.Send(new NavigationMessage {
                    Action = "Logout"
                });
            };

            if (this.LabelText == "Sign Out")
            {
                Messenger.Default.Send <SignOutMessage>(new SignOutMessage());
                _ls.ClearLocalStorage();
            }
            #endregion
        }
Ejemplo n.º 2
0
 private void HandleClosedMessage(ClosedMessage obj)
 {
     _ls.ClearLocalStorage();
 }