예제 #1
0
        //质量显示函数初始化函数重载
        public QuaAssShowForm(TSQuaAssForm vTSQuaAssForm)
            : this()
        {
            this.vTSQuaAssForm = vTSQuaAssForm;
            //初始化评价影像下拉菜单
            List <string> cbxString = new List <string>();
            int           nFiles    = vTSQuaAssForm.sGlobal_Filename_Ass.Count();

            for (int i = 0; i < nFiles; i++)
            {
                string tempstr  = Path.GetFileNameWithoutExtension(vTSQuaAssForm.sGlobal_Filename_Ass[i]);
                string tempstr2 = vTSQuaAssForm.sGlobal_OutDir + tempstr + "_Qua.txt";
                cbxString.Add(tempstr2);
            }
            this.comboBox.DataSource    = cbxString;
            this.comboBox.SelectedIndex = 0;
            //初始化listBox
            this.listBox.Items.Clear();
            StreamReader objReader = new StreamReader(cbxString[0]);
            string       sLine     = string.Empty;
            int          n;
            ArrayList    linlist = new ArrayList();

            while (sLine != null)
            {
                sLine = objReader.ReadLine();
                if (!string.IsNullOrEmpty(sLine))
                {
                    linlist.Add(sLine);
                }
            }
            objReader.Close();
            n = linlist.Count;
            for (int i = 0; i < n; i++)
            {
                string str = linlist[i].ToString();
                listBox.Items.Add(str);
            }
        }
예제 #2
0
 //质量显示函数初始化函数重载
 public QuaAssShowForm(TSQuaAssForm vTSQuaAssForm)
     : this()
 {
     this.vTSQuaAssForm = vTSQuaAssForm;
     //初始化评价影像下拉菜单
     List<string> cbxString = new List<string>();
     int nFiles = vTSQuaAssForm.sGlobal_Filename_Ass.Count();
     for (int i = 0; i < nFiles; i++)
     {
         string tempstr = Path.GetFileNameWithoutExtension(vTSQuaAssForm.sGlobal_Filename_Ass[i]);
         string tempstr2 = vTSQuaAssForm.sGlobal_OutDir + tempstr + "_Qua.txt";
         cbxString.Add(tempstr2);
     }
     this.comboBox.DataSource = cbxString;
     this.comboBox.SelectedIndex = 0;
     //初始化listBox
     this.listBox.Items.Clear();
     StreamReader objReader = new StreamReader(cbxString[0]);
     string sLine = string.Empty;
     int n;
     ArrayList linlist = new ArrayList();
     while (sLine != null)
     {
         sLine = objReader.ReadLine();
         if (!string.IsNullOrEmpty(sLine))
         {
             linlist.Add(sLine);
         }
     }
     objReader.Close();
     n = linlist.Count;
     for (int i = 0; i < n; i++)
     {
         string str = linlist[i].ToString();
         listBox.Items.Add(str);
     }
 }
예제 #3
0
        private void barBtnItemSHRHZLPJ_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TSQuaAssForm vTSQuaAssForm = new TSQuaAssForm();

            vTSQuaAssForm.ShowDialog();
        }
예제 #4
0
 private void barBtnItemSHRHZLPJ_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     TSQuaAssForm vTSQuaAssForm = new TSQuaAssForm();
     vTSQuaAssForm.ShowDialog();
 }