Exemple #1
0
        public void Update()
        {
            cateDatas.Clear();
            foreach (FoodData.Type type in Utils.FoodTypes)
            {
                cateDatas.Add(new CateData(FoodData.ToStringTypeKR(type), StateManager.GetCateCount(type), StateManager.GetCateTotalPrice(type)));
            }

            foodDatas.Clear();
            foreach (FoodData food in StateManager.GetAllFoodDatas())
            {
                foodDatas.Add(food);
            }

            AllTotal.Text     = StateManager.GetAllTotalPrice().ToString();
            CurrentTotal.Text = StateManager.GetCurrentTotalPrice().ToString();
            CardPayCount.Text = StateManager.GetPayTypeCount(StateManager.PayType.Card).ToString();
            CashPayCount.Text = StateManager.GetPayTypeCount(StateManager.PayType.Cash).ToString();
        }
Exemple #2
0
 public StateControl()
 {
     InitializeComponent();
     Update();
     AllTotal.Text = StateManager.GetAllTotalPrice().ToString();
 }