Ejemplo n.º 1
0
        public PairReportForm()
        {
            InitializeComponent();
            GraphSpanEditor.Text = mIniFile.ReadString("General", "PairReportSpan", "500").Trim();
            if (!Regex.IsMatch(GraphSpanEditor.Text, @"^[1-9]\d*(\.\d+)?$"))
                GraphSpanEditor.Text = "500";

            mExportStatusForm = new ExportStatusForm(this);
        }
Ejemplo n.º 2
0
        public VenezuelaReportForm(LimitSetting limitSetting, double azimuthA, double azimuthB, EMIFileData emiA, EMIFileData emiB, List<ChannelSetting> channelSettings)
        {
            InitializeComponent();

            mLimitSetting = limitSetting;
            mAzimuthA = azimuthA;
            mAzimuthB = azimuthB;
            mEmiA = emiA;
            mEmiB = emiB;
            mChannelSettings = channelSettings;

            //int graphCount = mIniFile.ReadInt("General", "VenezuelaReportGraphCount", 1);
            mExportStatusForm = new ExportStatusForm(this);
        }
Ejemplo n.º 3
0
        public MalaysiaReportForm(bool isFiveAzimuthReport, LimitSetting limitSetting, EMIFileData emiA, EMIFileData emiB, List<ChannelSetting> channelSettings)
        {
            InitializeComponent();

            mIsFiveAzimuthReport = isFiveAzimuthReport;

            mLimitSetting = limitSetting;
            mEmiA = emiA;
            mEmiB = emiB;
            mChannelSettings = channelSettings;

            EmiComboBox.Items.Add(mEmiA.Site_ID + " (User: "******", Time: " + mEmiA.PA_TestTime + ")");
            EmiComboBox.Items.Add(mEmiB.Site_ID + " (User: "******", Time: " + mEmiB.PA_TestTime + ")");

            mExportStatusForm = new ExportStatusForm(this);
        }
Ejemplo n.º 4
0
        public MalaysiaMaxisReportForm(LimitSetting limitSetting, 
            EMIFileData emiFileData, List<ChannelSetting> channelSettings)
        {
            mLimitSetting = limitSetting;
            mEmi = emiFileData;

            string bandName;
            foreach (ChannelSetting channelSetting in channelSettings)
            {
                bandName = GetBandName(channelSetting);
                if (!mAllBandChannels.ContainsKey(bandName))
                {
                    mAllBandChannels[bandName] = new List<ChannelSetting>();
                }
                mAllBandChannels[bandName].Add(channelSetting);
            }

            mEmiDataMgr = Utility.GetEmiDataManager(mEmi, channelSettings);
            mExportStatusForm = new ExportStatusForm(this);

            InitializeComponent();
        }
Ejemplo n.º 5
0
        public ReportForm(bool isFiveAzimuthReport, LimitSetting limitSetting, EMIFileData emiFileData, List<ChannelSetting> channelSettings)
        {
            InitializeComponent();

            mIsFiveAzimuthReport = isFiveAzimuthReport;

            mLimitSetting = limitSetting;
            mEmiFileData = emiFileData;
            mChannelSettings = channelSettings;

            SiteIDLabel.Text = mEmiFileData.Site_ID;
            SiteNameLabel.Text = mEmiFileData.Site_ID;
            AddressLabel.Text = mEmiFileData.Site_Address;
            DateLabel.Text = mEmiFileData.PA_TestTime;
            EngineerLabel.Text = mEmiFileData.PA_UserName;
            LongtitudeLabel.Text = Utility.ConvertLongtitude(mEmiFileData.Site_Longitude);
            LatitudeLabel.Text = Utility.ConvertLatitude(mEmiFileData.Site_Longitude); ;

            if (mLimitSetting.UseChannelPowerLimit)
                PChannelLimitLabel.Text = mLimitSetting.ChannelPowerLimit.ToString();
            else
                PChannelLimitLabel.Text = "";

            if (mLimitSetting.UseDeltaPowerLimit)
                LevelLimitLabel.Text = mLimitSetting.DeltaPowerLimit.ToString();
            else
                LevelLimitLabel.Text = "";

            if (mIniFile.ReadInt("General", "ChannelPreferred", 1) == 1)
                ChannelPreferredRadioButton.Checked = true;
            else
                FrequencePreferredRadioButton.Checked = true;

            DisplayChannelCheckBox.Enabled = (!ChannelPreferredRadioButton.Checked);
            DisplayChannelCheckBox.Checked = (mIniFile.ReadInt("General", "DisplayChannel", 1) == 1);
            SpanEditor.Text = mIniFile.ReadString("General", "Span", "300").Trim();
            if (!Regex.IsMatch(SpanEditor.Text, @"^[1-9]\d*(\.\d+)?$"))
                SpanEditor.Text = "300";

            mDefaultStartFreq = channelSettings[0].StartFreq;
            mDefaultEndFreq = channelSettings[channelSettings.Count -1].Pair.EndFreq;
            SetDefaultFreq();

            mExportStatusForm = new ExportStatusForm(this);
        }