Exemplo n.º 1
0
        private void btnShop_Click(object sender, EventArgs e)
        {
            saveProgress();
            formShop Shop = new formShop();

            Shop.Owner = this;
            Shop.lblMelonGive.Visible    = false;
            Shop.lblGrapeGive.Visible    = false;
            Shop.lblCornGive.Visible     = false;
            Shop.lblDonutGive.Visible    = false;
            Shop.lblChickenGive.Visible  = false;
            Shop.lblMilkGive.Visible     = false;
            Shop.lblBuyMelon.Visible     = true;
            Shop.lblBuyGrape.Visible     = true;
            Shop.lblBuyCorn.Visible      = true;
            Shop.lblBuyDonut.Visible     = true;
            Shop.lblBuyChicken.Visible   = true;
            Shop.lblBuyMilk.Visible      = true;
            Shop.lblMelonPrice.Visible   = true;
            Shop.lblGrapePrice.Visible   = true;
            Shop.lblCornPrice.Visible    = true;
            Shop.lblDonutPrice.Visible   = true;
            Shop.lblChickenPrice.Visible = true;
            Shop.lblMilkPrice.Visible    = true;
            Shop.lblShopName.Text        = "Магазин";
            Shop.Text = "Магазин";
            if (havePet == false)
            {
                Shop.Width  = 614;
                Shop.Height = 297;
            }
            else
            {
                Shop.Width  = 614;
                Shop.Height = 175;
            }

            Shop.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnFeed_Click(object sender, EventArgs e)
        {
            saveProgress();
            formShop Shop = new formShop();

            Shop.Owner = this;
            Shop.lblMelonGive.Visible    = true;
            Shop.lblGrapeGive.Visible    = true;
            Shop.lblCornGive.Visible     = true;
            Shop.lblDonutGive.Visible    = true;
            Shop.lblChickenGive.Visible  = true;
            Shop.lblMilkGive.Visible     = true;
            Shop.lblBuyMelon.Visible     = false;
            Shop.lblBuyGrape.Visible     = false;
            Shop.lblBuyCorn.Visible      = false;
            Shop.lblBuyDonut.Visible     = false;
            Shop.lblBuyChicken.Visible   = false;
            Shop.lblBuyMilk.Visible      = false;
            Shop.lblMelonValue.Visible   = true;
            Shop.lblGrapeValue.Visible   = true;
            Shop.lblCornValue.Visible    = true;
            Shop.lblDonutValue.Visible   = true;
            Shop.lblChickenValue.Visible = true;
            Shop.lblMilkValue.Visible    = true;
            Shop.lblMelonPrice.Visible   = false;
            Shop.lblGrapePrice.Visible   = false;
            Shop.lblCornPrice.Visible    = false;
            Shop.lblDonutPrice.Visible   = false;
            Shop.lblChickenPrice.Visible = false;
            Shop.lblMilkPrice.Visible    = false;
            Shop.lblShopName.Text        = "Склад";
            Shop.Text   = "Склад";
            Shop.Width  = 614;
            Shop.Height = 175;
            Shop.ShowDialog();
        }