Ejemplo n.º 1
0
        public Commons(string name)
        {
            helper = new DBHelper();
            InOutList = new List<InOutType>();
            YearList = new List<string>();
            MonthList = new List<string>();
            DayList = new List<string>();
            
            currentUser = name;

            InOutList.Add(new InOutType(0, "收入"));
            InOutList.Add(new InOutType(1, "支出"));
            AccountTypeList = helper.getAllAccountypes();
            getInAccTypeList();
            ShowAccountList = helper.getAllShowAccount(currentUser);
            getYearMonthDayList();

            BudgetInitialize();
        }
Ejemplo n.º 2
0
 public void initialize()
 {
     helper = new DBHelper();
     list = helper.getAllAccountypes();
     showAccountTypeInfo();
 }