コード例 #1
0
ファイル: Form1.cs プロジェクト: DolXeGoD/burgerKingSYS
        //burger detail
        private void ShowBurgerData(Burger burger)
        {
            PanelClear();
            detail_panel.Visible = true;

            detail_panel.BringToFront();

            BurgerSide_EngName.Text = burger.EngName;
            BurgerSide_KrName.Text  = burger.Name;
            BurgerSide_Sub.Text     = burger.Subscribe;
            BurgerSide_Price.Text   = Convert.ToString(burger.price);

            BNutrition_Kcal.Text      = burger.nutrition.Kcal;
            BNutrition_Gram.Text      = burger.nutrition.gram;
            BNutrition_Protein.Text   = burger.nutrition.protein;
            BNutrition_Sodium.Text    = burger.nutrition.sodium;
            BNutrition_Saccharid.Text = burger.nutrition.saccharid;
            BNutrition_Fat.Text       = burger.nutrition.fat;

            BurgerSidePic.Image = Image.FromFile(burger.BigImgPath);

            PriceForDB = burger.price;
            NameForDB  = burger.EngName;
        }