Example #1
0
        private void btnCreateEvent_Click(object sender, EventArgs e)
        {
            CreateEventForm Form = new CreateEventForm();

            Form.ShowDialog();
            LoadEvents();
        }
Example #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Je kunt dit later niet aanpassen! Weet je zeker dat je dit wilt opslaan?", "Zeker?", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                CreateEventForm parent = (CreateEventForm)this.Owner;
                parent.GetMaterialList(MaterialForRental);
                this.Close();
            }
            else if (dialogResult == DialogResult.No)
            {
                //do nothing
            }
        }