public Form_add_device(string Name, Form_Device fmd1, Form2 form2) { InitializeComponent(); txt_User_Login.Text = Name; txt_User_Login.Visible = false; txtId.Visible = false; this.fmd = fmd1; this.frm2 = form2; }
private void deviceToolStripMenuItem_Click(object sender, EventArgs e) { Form_Device frm_d = new Form_Device(label2.Text, this); frm_d.ShowDialog(); }