Exemple #1
0
        protected override WindowContent ParseContent(SystemWindow sw)
        {
            SystemListBox slb = SystemListBox.FromSystemWindow(sw);
            int           c   = slb.Count;

            string[] values = new string[c];
            for (int i = 0; i < c; i++)
            {
                values[i] = slb[i];
            }
            return(new ListContent("ListBox", slb.SelectedIndex, slb.SelectedItem, values));
        }
Exemple #2
0
 internal override bool CanParseContent(SystemWindow sw)
 {
     return(SystemListBox.FromSystemWindow(sw) != null);
 }
Exemple #3
0
        internal override WindowContent ParsePreviewContent(SystemWindow sw)
        {
            SystemListBox slb = SystemListBox.FromSystemWindow(sw);

            return(new ListContent("ListBox", slb.SelectedIndex, slb.SelectedItem, new string[0]));
        }