private void AddEventBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            NewEvent createEvent = new NewEvent();

            createEvent.Show();
        }
        private void AddEventBtn_Click_1(object sender, EventArgs e)
        {
            List <Form> openForms = new List <Form>();

            foreach (Form f in Application.OpenForms)
            {
                openForms.Add(f);
            }

            foreach (Form f in openForms)
            {
                if (f.Name == "FormMain")
                {
                    f.Close();
                }
            }

            NewEvent createEvent = new NewEvent();

            createEvent.Show();
        }
Exemple #3
0
        public void ShowNewEventForm()
        {
            NewEvent dlgNewEvent = new NewEvent();

            dlgNewEvent.ShowDialog(this);
        }