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);
            }
        }
 public void initializeData(PartialReportSettingsDlgType eInputType, PressureLossReportData inputReportData)
 {
     eType = eInputType;
      reportData = inputReportData;
      fillingFields(eType);
 }
        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);
        }
 public void initializeData(PartialReportSettingsDlgType eInputType, PressureLossReportData inputReportData)
 {
     eType      = eInputType;
     reportData = inputReportData;
     fillingFields(eType);
 }