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(); }
private void btnFirst_Click(object sender, EventArgs e) { Form_Second form = new Form_Second(); form.Show(); this.Hide(); }
private void btnPrevious_Click_1(object sender, EventArgs e) { Form_Second form; if (GlobalParameters.fromSecond == null) { form = new Form_Second(); } form = GlobalParameters.fromSecond; form.Show(); this.Hide(); }
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(); }