private void button1_Click(object sender, EventArgs e) { Emp e1 = new Emp(textBox1.Text, int.Parse(textBox2.Text), double.Parse(textBox3.Text)); t[i++] = e1; textBox1.Clear(); textBox2.Clear(); textBox3.Clear(); }
private void button4_Click(object sender, EventArgs e) { Emp e1 = (Emp)t[1]; MessageBox.Show(e1.ToString()); }