Example #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();
        }
Example #2
0
        private void btnFirst_Click(object sender, EventArgs e)
        {
            Form_Second form = new Form_Second();

            form.Show();
            this.Hide();
        }
Example #3
0
        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();
        }
Example #4
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();
 }
Example #5
0
 private void btnFirst_Click(object sender, EventArgs e)
 {
     Form_Second form = new Form_Second();
     form.Show();
     this.Hide();
 }