Beispiel #1
0
 public findparam GetFindParam()
 {
     findparam findparam = new findparam();
     if (this.chb_optionf.Checked)
     {
         findparam.chboxf = this.chb_optionf.Checked;
         findparam.optlistboxf = this.cb_optionf.Text.ToString();
         if (this.cb_optionf.Text.ToString().Equals("TAC"))
         {
             findparam.optlistboxf = "LAC";
         }
         findparam.judgelistboxf = this.cb_judgef.Text.ToString();
         if (this.tb_valuef.Text != "")
         {
             findparam.textboxf = Convert.ToDecimal(this.tb_valuef.Text.Trim());
         }
     }
     if (this.chb_options.Checked)
     {
         findparam.chboxs = this.chb_options.Checked;
         findparam.optlistboxs = this.cb_options.Text.ToString();
         if (this.cb_options.Text.ToString().Equals("eNodeB Equipment"))
         {
             findparam.optlistboxs = "BTS Equipment";
         }
         findparam.judgelistboxs = this.cb_judges.Text.ToString();
         findparam.combboxs = this.cb_value.Text.ToString();
     }
     findparam.radiobtnand = this.rb_and.Checked;
     findparam.radiobtnor = this.rb_Or.Checked;
     return findparam;
 }
Beispiel #2
0
 private void FindOper()
 {
     this.lb_Result.Items.Clear();
     List<IASite> list = new List<IASite>();
     int num = 0;
     if (this.ValidateParams())
     {
         this.m_FindParam = this.GetFindParam();
         this.FindTranceivers = this.m_CellFinModule.FindLTETranceiver(this.m_FindParam);
     }
     this.lb_Result.Items.AddRange(this.FindTranceivers.ToArray());
     this.lb_counts.Text = this.lb_Result.Items.Count.ToString();
     Predicate<IASite> match = null;
     for (int i = 0; i < this.FindTranceivers.Count; i++)
     {
         if (match == null)
         {
             match = delegate (IASite tempSite) {
                 return tempSite.Name.Equals(this.FindTranceivers[i].Parent.Name);
             };
         }
         if (!list.Exists(match))
         {
             list.Add(this.FindTranceivers[i].Parent);
             num++;
         }
     }
     this.lb_SiteCount.Text = num.ToString();
 }