Пример #1
0
        // 初始化
        public SpendPage(string str)
        {
            InitializeComponent();
            currentUser = str;
            data = new Entity.DrawData(currentUser);

            string[] temp = DateTime.Now.ToShortDateString().Split('-');

            BindingData(temp[0],temp[1]);
            year.ItemsSource = data.YearList;
            month.ItemsSource = data.MonthList;
        }
Пример #2
0
        public AccBudgetPage(string usr)
        {
            InitializeComponent();
            currentUser = usr;

            accData = new Entity.DrawData(currentUser);
            budData = new Entity.BudgetDrawData(currentUser);

            initialize();

            string[] temp = DateTime.Now.ToShortDateString().Split('-');
            spend.ItemsSource = accData.getDrawData(temp[0], temp[1], "支出");
            budspend.ItemsSource = budData.getDrawData(Convert.ToInt32(temp[0]), Convert.ToInt32(temp[1]), "支出");
        }