Ejemplo n.º 1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            PartyToys       party     = new PartyToys();
            PartyEditWindow partyEdit = new PartyEditWindow(party);

            partyEdit.ShowDialog();
            theShop.AddAPartyofToys(party);

            RefreshData();
        }
Ejemplo n.º 2
0
 public PartyEditWindow(PartyToys partyToys)
 {
     InitializeComponent();
     thePartyToys = partyToys;
     if (partyToys.TheToy != null)
     {
         listBox1.Items.Add(partyToys);
     }
     foreach (Toy i in allToys)
     {
         listBox1.Items.Add(i);
     }
 }
Ejemplo n.º 3
0
 private void button3_Click(object sender, RoutedEventArgs e)
 {
     thePartyToys = new PartyToys();
     Close();
 }
Ejemplo n.º 4
0
 public void AddAPartyofToys(PartyToys toyParty)
 {
     supplies.Add(toyParty);
     CalculateToys();
 }