示例#1
0
        /// <summary>
        /// 历史菜单栏->导入当前小区历史信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void servingZoneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //"chann", "rs", "dBm", "MCC", "MNC", "LAC", "cell", "NCC", "BCC", "PWR", "RXLev", "C1"
            openFileDialog1.Title            = "导出历史记录文件";
            openFileDialog1.Filter           = "当前小区信息历史记录文件(*.xml)|*.xml|All files(*.*)|*.*";
            openFileDialog1.InitialDirectory = @"c:\";
            openFileDialog1.ShowDialog();

            ServingZone_Info ServingXml = new ServingZone_Info();

            ServingXml.MdiParent = this;

            string[] servingTemp;
            string   servingTime;

            int i;

            recorder.infoRecorder.signalFilePath = openFileDialog1.FileName.ToString();
            while (recorder.infoRecorder.getNextSignalData(out servingTemp, out servingTime) != 1)
            {
                DataRow Servingrow = ServingXml.dt.NewRow();
                ServingXml.dt.Rows.Add(Servingrow);
                Servingrow["Time"] = servingTime;
                for (i = 0; i <= recorder.infoRecorder.signalDetail.GetLength(0) - 1; i++)
                {
                    Servingrow[recorder.infoRecorder.signalDetail[i]] = servingTemp[i];
                }
                Thread.Sleep(200);
            }
            ServingXml.Show();
        }
示例#2
0
        /// <summary>
        /// 历史菜单栏->导入当前小区历史信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void servingZoneToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //"chann", "rs", "dBm", "MCC", "MNC", "LAC", "cell", "NCC", "BCC", "PWR", "RXLev", "C1"
            openFileDialog1.Title = "导出历史记录文件";
            openFileDialog1.Filter = "当前小区信息历史记录文件(*.xml)|*.xml|All files(*.*)|*.*";
            openFileDialog1.InitialDirectory = @"c:\";
            openFileDialog1.ShowDialog();

            ServingZone_Info ServingXml = new ServingZone_Info();
            ServingXml.MdiParent = this;

            string[] servingTemp;
            string servingTime;

            int i;

            recorder.infoRecorder.signalFilePath = openFileDialog1.FileName.ToString();
            while (recorder.infoRecorder.getNextSignalData(out servingTemp, out servingTime) != 1)
            {
                DataRow Servingrow = ServingXml.dt.NewRow();
                ServingXml.dt.Rows.Add(Servingrow);
                Servingrow["Time"] = servingTime;
                for (i = 0; i <= recorder.infoRecorder.signalDetail.GetLength(0) - 1; i++)
                {
                    Servingrow[recorder.infoRecorder.signalDetail[i]] = servingTemp[i];
                }
                Thread.Sleep(200);
            }
            ServingXml.Show();
        }