示例#1
0
 private void generateBtn_Click(object sender, EventArgs e)
 {
     Report report = new Report();
     if (this.testResultDirTextBox.Text != string.Empty)
     {
         try
         {
             this.Cursor = Cursors.WaitCursor;
             if (this._reportTypeString.Contains("SDO"))
             {
                 report.ConvertCSVToSDOFormat(this.testResultDirTextBox.Text);
             }
             else if (this._reportTypeString.Contains("MPM"))
             {
                 report.Summary_MPM(this.testResultDirTextBox.Text);
             }
             this.Cursor = Cursors.Default;
         }
         catch (Exception exception)
         {
             string str = "Error";
             if (this._reportTypeString.Contains("SDO"))
             {
                 str = "Error encounters while SDO files are being generated\r\n";
             }
             else if (this._reportTypeString.Contains("MPM"))
             {
                 str = "Error encounters while processing MPM files\r\n";
             }
             MessageBox.Show(str + exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             this.Cursor = Cursors.Default;
         }
         report.Dispose();
         report = null;
     }
 }
示例#2
0
 private void LSMReportGenBut_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     Report report = new Report();
     if (this.reportDirVal.Text.Length > 0)
     {
         report.Percentile = this.LSMReportPerVal.Text;
         report.TTFFLimit = this.LSMReportTTFFPerVal.Text;
         report.HrErrLimit = this.LSMReportHrErrPerVal.Text;
         report.TimeoutVal = this.LSMReportTimeoutVal.Text;
         report.LimitVal = this.LSMReportTTFFLimitVal.Text;
         double refLat = 0.0;
         double refLon = 0.0;
         double refAlt = 0.0;
         int ttffIdx = 0;
         int latIdx = 0;
         int lonIdx = 0;
         int altIdx = 0;
         int startCNoIdx = 0;
         try
         {
             refLat = Convert.ToDouble(this.frmLSMReportRefLatitudeTextBox.Text);
             refLon = Convert.ToDouble(this.frmLSMReportRefLongitudeTextBox.Text);
             refAlt = Convert.ToDouble(this.frmLSMReportRefAltitudeTextBox.Text);
             latIdx = Convert.ToInt32(this.LSMReportLatIndexTextBox.Text);
             lonIdx = Convert.ToInt32(this.LSMLonIndexTextBox.Text);
             altIdx = Convert.ToInt32(this.LSMAltIndexTextBox.Text);
             ttffIdx = Convert.ToInt32(this.LSMReportTTFFIndexTextBox.Text);
             startCNoIdx = Convert.ToInt32(this.LSMReportCNoIndexTextBox.Text);
         }
         catch (Exception exception)
         {
             MessageBox.Show(exception.Message);
             return;
         }
         report.Summary_LSM(this.reportDirVal.Text, refLat, refLon, refAlt, latIdx, lonIdx, altIdx, ttffIdx, startCNoIdx);
     }
     else
     {
         MessageBox.Show("No directory found", "Error");
     }
     this.Cursor = Cursors.Default;
 }
示例#3
0
 private void e911ReportGenBut_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     Report report = new Report();
     if (this.e911ReportDirVal.Text.Length <= 0)
     {
         MessageBox.Show("No directory found", "Error");
     }
     else
     {
         report.Percentile = this.e911ReportPerVal.Text;
         report.TTFFLimit = this.e911ReportTTFFPerVal.Text;
         report.HrErrLimit = this.e911ReportHrErrPerVal.Text;
         report.TimeoutVal = this.e911ReportTimeoutVal.Text;
         report.LimitVal = this.e911ReportTTFFLimitVal.Text;
         report.TTFFReportType = this.e911ReportTTFFTypeComBox.SelectedIndex + 4;
         string str = this._testName;
         if (str != null)
         {
             if (!(str == "E911"))
             {
                 if (str == "3GPP")
                 {
                     report.TTFFReportType = 3;
                     report.Summary_3GPP(this.e911ReportDirVal.Text);
                 }
                 else if (str == "TIA916")
                 {
                     report.TTFFReportType = 3;
                     report.Summary_TIA916(this.e911ReportDirVal.Text);
                 }
                 else if (str == "Reset")
                 {
                     report.ReportLayout = (Report.ReportLayoutType) this.e911ReporGroupByComBox.SelectedIndex;
                     report.Summary_Reset_V2(this.e911ReportDirVal.Text);
                 }
             }
             else
             {
                 report.TTFFReportType = 3;
                 report.E911_Summary(this.e911ReportDirVal.Text);
             }
         }
     }
     this.Cursor = Cursors.Default;
 }
        private void reportGenBut_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            Report report = new Report();
            if (this.reportDirVal.Text.Length > 0)
            {
                report.HrErrLimit = this.reportSingleHrErrVal.Text;
                report.LimitVal = this.reportNumHrErrval.Text;
                report.InvalidSV = this.reportInvSVVal.Text;
                switch (this.reportSelectionCB.SelectedIndex)
                {
                    case 0:
                        report.CW_Summary(this.reportDirVal.Text);
                        break;

                    case 1:
                        report.Spur_Summary(this.reportDirVal.Text);
                        break;
                }
            }
            else
            {
                MessageBox.Show("No directory found", "Error");
            }
            this.Cursor = Cursors.Default;
        }
示例#5
0
 private void ProcessFiles()
 {
     Report report = new Report();
     base.Invoke((MethodInvoker)delegate
     {
         this.Cursor = Cursors.WaitCursor;
     });
     foreach (string str in this.ToProcessList)
     {
         report.PointToPointErrorCalculation(str, this.RefDirFileVal.Text, this._startPoint, this._endPoint);
     }
     report.Summary_CompareWithRef(this.CompareDirVal.Text);
     base.Invoke((MethodInvoker)delegate
     {
         this.Cursor = Cursors.Default;
     });
 }
示例#6
0
        public frmMDIMain()
        {
            InitializeComponent();

            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false);
            clsGlobal.MyCulture = Thread.CurrentThread.CurrentCulture;
            clsGlobal.SiRFLiveAppConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            clsGlobal.InstalledDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).Parent.FullName;
            clsGlobal.SiRFLiveAppConfig.AppSettings.Settings.Remove("InstalledDirectory");
            clsGlobal.SiRFLiveAppConfig.AppSettings.Settings.Add("InstalledDirectory", clsGlobal.InstalledDirectory);
            clsGlobal.SiRFLiveAppConfig.Save(ConfigurationSaveMode.Modified);
            ConfigurationManager.RefreshSection("appSettings");
            string xmlFile = clsGlobal.InstalledDirectory + @"\Config\UserAccessConfig.xml";

            UserAccess = new UserAccessMgr(xmlFile);
            CurrentUser = UserAccess.GetCurrentUser();
            clsGlobal.CurrentUser = CurrentUser;
            clsGlobal.userAccessNum = UserAccess.GetAccessNum();
            clsGlobal.SiRFLiveVersion = "SiRFLive " + SiRFLiveVersion.VersionNum + " " + CurrentUser;
            clsGlobal.SiRFLiveChangeNum = StripDollarSigns(SiRFLiveVersion.ChangeNum);
            clsGlobal.SiRFLiveChangeDate = StripDollarSigns(SiRFLiveVersion.DateTime);
            Text = clsGlobal.SiRFLiveVersion;
            _defaultWindowsRestoredFilePath = clsGlobal.InstalledDirectory + @"\Config\DefaultWindowsRestore.xml";
            _lastWindowsRestoredFilePath = clsGlobal.InstalledDirectory + @"\Config\LastWindowsRestore.xml";
            SearchMenu(CurrentUser);
            SearchToolStrip(CurrentUser);
            try
            {
                IniHelper helper = new IniHelper(clsGlobal.InstalledDirectory + @"\Config\SiRFLiveAutomation.cfg");
                clsGlobal.ResetPeriodRandomizationSec = int.Parse(helper.GetIniFileString("SETUP", "RESET_PERIOD_RANDOMIZATION_SEC", "5"));
            }
            catch
            {
                clsGlobal.ResetPeriodRandomizationSec = 5;
            }
            ReportCtrl = new Report();
            HostAppCtrl = new sysCmdExec();
            SpazCtrl = new SPAzMgr(0x378);
            SimCtrl = new Simplex();
            gcTimer.Elapsed += new ElapsedEventHandler(OnGCTimerEvent);
            gcTimer.Interval = 1800000.0;
            gcTimer.AutoReset = true;
            setDefaultWindowsLocation();
        }