/// <summary>Create and show the window.</summary> private void ReportOptions_Load(object sender, EventArgs e) { // Adjust widgets before showing the window. if (_net != null) { try { unitsBox.SelectedIndex = _net.UnitsFlag == UnitsType.SI ? 0 : 1; reportPeriodBox.SelectedIndex = TimeStep.GetNearestStep(_net.RStep); hydComboBox.SelectedIndex = TimeStep.GetNearestStep(_net.HStep); qualComboBox.SelectedIndex = TimeStep.GetNearestStep(_net.QStep); textSimulationDuration.Text = _net.Duration.GetClockTime(); textReportStart.Text = _net.RStart.GetClockTime(); qualityCheckBox.Enabled = _net.QualFlag != QualType.NONE; } catch (ENException ex) { Debug.Print(ex.ToString()); } } if (_netMsx != null && _netMsx.GetSpeciesNames().Length > 0) { var speciesNames = Array.ConvertAll(_netMsx.GetSpeciesNames(), x => (object)x); speciesCheckList.Items.AddRange(speciesNames); //this.speciesCheckList.SelectionMode = SelectionMode.MultiExtended; // TODO: in designer } else { qualityMSXCheckBox.Enabled = false; } Visible = true; progressPanel.Visible = false; actions.Visible = true; UnlockInterface(); }