private void button1_Click(object sender, EventArgs e) { Ortak ortak = new Ortak(); ortak.deviceIndex = comboBox1.SelectedIndex + 1; Form2 frm = new Form2(ortak); frm.Show(); this.Hide(); }
public Form2(Ortak o) : this() { deviceIndex = o.deviceIndex; }