private void timer1_Tick(object sender, EventArgs e) { if (pictureBox1.Location.X < 395) { pictureBox1.Location = new Point(pictureBox1.Location.X + 1, pictureBox1.Location.Y); } else { if (comboBox1.Text == "人事管理员") { f_head form2 = new f_head(); form2.Show(); this.Hide(); } else if (comboBox1.Text == "财务管理员") { Form3 form3 = new Form3(); form3.Show(); this.Hide(); } else if (comboBox1.Text == "系统管理员") { Form4 form4 = new Form4(); form4.Show(); this.Hide(); } else if (comboBox1.Text == "员工") { Form5 form5 = new Form5(jobid); form5.Show(); this.Hide(); } timer1.Stop(); } }
public update(string[] a, f_head f) { InitializeComponent(); for (int i = 0; i < 7; i++) { str[i] = a[i]; } textBox1.Text = str[0]; textBox2.Text = str[1]; textBox3.Text = str[2]; textBox4.Text = str[3]; textBox5.Text = str[4]; textBox6.Text = str[5]; textBox7.Text = str[6]; form2 = f; }
public add(f_head f) { InitializeComponent(); form2 = f; }