Beispiel #1
0
        private void btnAddSurvey_Click(object sender, EventArgs e)
        {
            AddSurveyForm form = new AddSurveyForm(null);

            form.Show();
            form.FormClosed += AddSurveyForm_FormClosed;
        }
Beispiel #2
0
        private void btnEditSurvey_Click(object sender, EventArgs e)
        {
            if (lbvSurveys.SelectedItem != null)
            {
                Survey        survey = lbvSurveys.SelectedItem as Survey;
                AddSurveyForm form   = new AddSurveyForm(survey);
                form.Show();

                form.FormClosed += AddSurveyForm_FormClosed;
            }
        }