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(); }
public void initialize() { helper = new DBHelper(); list = helper.getAllAccountypes(); showAccountTypeInfo(); }