Example #1
0
        private void tsmiEdit_Click(object sender, EventArgs e)
        {
            KlantAddEdit klantEditForm = new KlantAddEdit((Klant)lvKlanten.SelectedItems[0].Tag);

            klantEditForm.ShowDialog();
            if (klantEditForm.DialogResult == DialogResult.OK)
            {
                refreshView();
            }
        }
Example #2
0
        private void showKlantEdit()
        {
            KlantAddEdit klantEditForm = new KlantAddEdit((Klant)lvKlanten.SelectedItems[0].Tag);

            klantEditForm.ShowDialog();
            if (klantEditForm.DialogResult == DialogResult.OK)
            {
                refreshView();
            }
        }
Example #3
0
        private void miNewKlant_Click(object sender, EventArgs e)
        {
            KlantAddEdit klantEditForm = new KlantAddEdit(new Klant());

            klantEditForm.ShowDialog();
            if (klantEditForm.DialogResult == DialogResult.OK)
            {
                Klanten.Add(klantEditForm.Klant);
                refreshView();
            }
        }