private void fillingFields(PartialReportSettingsDlgType eType)
        {
            if (reportData == null)
            {
                return;
            }

            List <PressureLossParameter> avaliableParams = new List <PressureLossParameter>();

            if (eType == PartialReportSettingsDlgType.Segment)
            {
                avaliableParams = reportData.StraightSegFields;
            }
            else
            {
                avaliableParams = reportData.FittingFields;
            }
            UIHelperFunctions.fillingListBoxFields(avaliableParams, listBoxAvailableFields, listBoxReportFields);

            listBoxAvailableFields.Focus();
            if (listBoxAvailableFields.Items.Count > 0)
            {
                listBoxAvailableFields.SetSelected(0, true);
            }
        }
        private void fillSettingsControlsFromFormat(PressureLossReportData data)
        {
            if (data == null)
            {
                return;
            }

            checkBoxDisplaySystemInfo.Checked = data.DisplaySysInfo;
            checkBoxCriticalPath.Checked      = data.DisplayCriticalPath;
            checkBoxFittingInfo.Checked       = data.DisplayFittingLCSum;
            checkBoxSegmentInfo.Checked       = data.DisplayDetailInfoForStraightSeg;
            checkBoxOpenAfterCreated.Checked  = data.OpenAfterCreated;

            listBoxAvailableFields.Items.Clear();
            listBoxReportFields.Items.Clear();

            //fill in the fields
            UIHelperFunctions.fillingListBoxFields(data.AvailableFields, listBoxAvailableFields, listBoxReportFields);
        }