private void lstConcurrentMethod_SelectedIndexChanged(object sender, EventArgs e) { ConcurrentMethod _m = (lstConcurrentMethod.SelectedItem as ConcurrentMethodOption).Method; if (_m == ConcurrentMethod.Meanwhile) { this.panel1.Visible = false; this.panel2.Visible = false; } else if (_m == ConcurrentMethod.Order) { this.panel1.Visible = false; this.panel2.Visible = true; } else if (_m == ConcurrentMethod.Random) { this.panel1.Visible = true; this.panel2.Visible = false; } }
public ConcurrentMethodOption(ConcurrentMethod m) { Method = m; }