Пример #1
0
 public void picClothes_Click(object sender, EventArgs e)
 {
     if (!IsDark)
     {
         HideThoughts();
         PlayerThinking("Nicely folded clothes. Nice.");
         ClickedItem = new Item("Clothes", null, null, null, null, true, false, null);
         ucBasicItems clothesControl = new ucBasicItems(ClickedItem, User, this);
         this.roomPanel.Controls.Add(clothesControl);
         clothesControl.Show();
         clothesControl.BringToFront();
     }
 }
Пример #2
0
        public void picBriefcase_Click(object sender, EventArgs e)
        {
            if (!IsDark)
            {
                HideThoughts();
                PlayerThinking("Very fancy briefcase. Good for putting things in.");
                ClickedItem = Repository.Briefcase;
                ucBasicItems briefcaseControl = new ucBasicItems(ClickedItem, User, this);

                this.roomPanel.Controls.Add(briefcaseControl);
                briefcaseControl.Show();
                briefcaseControl.BringToFront();
            }
        }