Exemplo n.º 1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            Form empForm;

            switch (employments.EmpType)
            {
            case "Business":
                empForm = new AddBusy();
                AddSchedule.Schedule = null;
                AddBusy.BusyName     = null;
                break;

            case "Goals":
                empForm = new AddGoal();
                break;

            case "Rest":
                empForm = new AddRest();
                break;

            default:
                empForm = new AddFun();
                break;
            }

            MenuManagement.ShowForm(this, empForm);
        }
Exemplo n.º 2
0
        private void BtnCancel_Click(object sender, EventArgs e)
        {
            AddBusy empForm = new AddBusy();

            empForm.Show();
            this.Hide();
        }