示例#1
0
        public static void LogOutUser()
        {
            //reset auto login properties
            Properties.Settings.Default.Username = "";
            Properties.Settings.Default.Password = "";
            Properties.Settings.Default.Save();

            //reset all other static fields
            UserID      = null;
            Username    = null;
            AccessToken = null;
            ExpenseCategories.Clear();
            EarningCategories.Clear();
            DailyInfoList.Clear();
            MonthlyInfoList.Clear();

            UserAuthenticationForm form = new UserAuthenticationForm();

            form.Show();
        }