Example #1
0
        private void showBestellingEditForm()
        {
            BestellingAddEdit bestellingEditForm = new BestellingAddEdit((Bestelling)lvBestellingen.SelectedItems[0].Tag, kwekerij.Planten, kwekerij.Klanten);

            bestellingEditForm.ShowDialog();
            if (bestellingEditForm.DialogResult == DialogResult.OK)
            {
                refreshMainView();
            }
        }
Example #2
0
        private void bestellingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BestellingAddEdit bestellingAddForm = new BestellingAddEdit(new Bestelling(0), kwekerij.Planten, kwekerij.Klanten);

            bestellingAddForm.ShowDialog();
            if (bestellingAddForm.DialogResult == DialogResult.OK)
            {
                kwekerij.Bestellingen.Add(bestellingAddForm.Bestelling);
                refreshMainView();
            }
        }