private void Btn_continue_Click(object sender, EventArgs e) { int cbc = 0; cbc = ComboBoxCheckerNurseStation(cmbo_tpVid.Text, cmbo_tpPower.Text, cmbo_printer.Text, cmbo_musicPort.Text); List <string> nurseStation = NurseStation(cmbo_tpVid.Text, cmbo_tpPower.Text, cmbo_printer.Text, cmbo_musicPort.Text, (double)num_audioCount.Value, (double)num_inputCount.Value); List <int> orInfo = OrInfo(BoomChecker(), (int)num_sfd.Value, (int)num_wallDisp.Value, (int)Convert.ToInt32(cmbo_spkr.Text), (int)num_easyPort.Value, CameraChecker(), MicrophoneChecker()); string rtn = this.Text; if (cbc == 0) { this.Hide(); RoomInfoTwo frm = new RoomInfoTwo(this, nurseStation, orInfo, rtn); frm.Show(); } else { } }
// NurseStation List // [0] tpVideo [2] printer [4] audioCount // [1] tpPower [3] musicPort [5] inputCount // orInfo List // [0] booms [2] wallDisp [4] easyPort [6] microphone // [1] sfd [3] spkr [5] camera // EasyPortTotals List // [0] singleEq [3] dualAn [6] singleWall // [1] dualEq [4] singlePerf [7] dualWall // [2] singleAn [5] dualPerf public RoomInfoThree(RoomInfoTwo roomInfoTwo, List <string> _NurseStation, List <int> _OrInfo, List <int> _EasyPortTotals, string _specialInstructions, string _roomTypeName) { InitializeComponent(); this.Text = _roomTypeName; _roomInfoTwo = roomInfoTwo; NurseStation = _NurseStation; OrInfo = _OrInfo; EasyPortTotals = _EasyPortTotals; specialInstructions = _specialInstructions; VideoInput = _VideoInput; VideoOutput = _VideoOutput; FutureCable = _futureInput; MicFuture = _futureInput; dgv_eqBoom.AllowUserToAddRows = false; dgv_anBoom.AllowUserToAddRows = false; dgv_perfBoom.AllowUserToAddRows = false; dgv_camera.AllowUserToAddRows = false; dgv_nrs.AllowUserToAddRows = false; dgv_wallplates.AllowUserToAddRows = false; dgv_sfd.AllowUserToAddRows = false; dgv_wallDisp.AllowUserToAddRows = false; dgv_spkr.AllowUserToAddRows = false; }