Esempio n. 1
0
        private void btn_Click(object sender, EventArgs e)
        {
            Form form = new Form();

            switch (((Button)sender).Text)
            {
            case "Schedules":
                form = new SchedulesForm();
                break;

            case "Records":
                form = new RecordsForm();
                break;

            case "Settings":
                form = new SettingsForm();
                break;

            case "Charts":
                form = new ChartsForm();
                break;
            }
            Common.OpenNewForm(form);
        }
Esempio n. 2
0
        private void lblInit_Click(object sender, EventArgs e)
        {
            SchedulesForm form = new SchedulesForm();

            Common.OpenNewForm(form);
        }