Exemplo n.º 1
0
        private void btnFirst_Click(object sender, EventArgs e)
        {
            Form form = null;

            switch (comboBoxType.SelectedItem.ToString())
            {
            case "个人考勤":
                form = GlobalParameters.fromSecond;
                if (form == null)
                {
                    form = new Form_Second();
                }
                break;

            case "公司考勤":
                form = GlobalParameters.fromCompany;
                if (form == null)
                {
                    form = new AttendCompany();
                }
                break;
            }
            form.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 private void btnFirst_Click(object sender, EventArgs e)
 {
     Form form = null;
     switch (comboBoxType.SelectedItem.ToString())
     {
         case "个人考勤":
             form = GlobalParameters.fromSecond;
             if (form == null) form = new Form_Second();
             break;
         case "公司考勤":
             form = GlobalParameters.fromCompany;
             if (form == null) form = new AttendCompany();
             break;
     }
     form.Show();
     this.Hide();
 }