Ejemplo n.º 1
0
        public WinResultSearch(Window owner, List <object> items, SearchTemplate_2 searchT) : this()
        {
            this.Owner = owner; this.listStringViewResult.AddRangeToSourceData(items);
            win        = (WinDpkMain)this.Owner;
            labelResultAddresses.Content = "Адреса:";
            foreach (int adr in searchT.ListAddresses)
            {
                labelResultAddresses.Content += " " + adr.ToString() + ";";
            }
            /*подчёркиваем значивые позиции - Выделяем */
            string strVal = Service.ConvertFrom(searchT.Value);

            for (int i = 0; i < searchT.Check.Count; i++)
            {
                if (searchT.Check[i])
                {
                    textBlock_Data.TextEffects.Add(new TextEffect(null, Brushes.Green, null, i, 1));
                }
            }
            /**/
            textBlock_Data.Text = strVal;
        }
Ejemplo n.º 2
0
 public WinSearch(Window owner) : this()
 {
     this.Owner = owner; searchTemplate = new SearchTemplate_2();
 }