コード例 #1
0
        private void showPlantEdit()
        {
            PlantAddEdit plantEditForm = new PlantAddEdit(geselecteerdePlant);

            plantEditForm.ShowDialog();
            if (plantEditForm.DialogResult == DialogResult.OK)
            {
                refreshView();
            }
        }
コード例 #2
0
        private void plantToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PlantAddEdit plantEditForm = new PlantAddEdit(new Plant(0));

            plantEditForm.ShowDialog();
            if (plantEditForm.DialogResult == DialogResult.OK)
            {
                planten.Add(plantEditForm.Plant);
                refreshView();
            }
        }