Example #1
0
        private void Logout_Click(object sender, RoutedEventArgs e)
        {
            if (loggedIn)
            {
                loggedIn = false;

                Logout.DeleteToken();

                if (File.Exists("Token.txt"))
                {
                    File.Delete("Token.txt");
                }

                LoginPanel.Children.Clear();

                CreateUI();
            }
        }