示例#1
0
        private void 查看工资记录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form5_1 form5_1 = new Form5_1(textBox1.Text);

            form5_1.Show();
            this.Hide();
        }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox3.Text == "")
     {
         MessageBox.Show("请输入工号", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         Form5_1 form5_1 = new Form5_1(textBox3.Text);
         form5_1.Show();
         this.Hide();
     }
 }
示例#3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "")
     {
         Form5_1 form5_1 = new Form5_1(textBox3.Text, int.Parse(textBox1.Text), int.Parse(textBox2.Text));
         form5_1.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("输入为空", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }