Ejemplo n.º 1
0
        /// <summary>SubWindow.ViewModel</summary>
        public SubWindow()
        {
            Items = new ObservableCollection <CollectionData>();

            var rnd = RandomValue.GetValue();

            for (var iLoop = 0; iLoop < rnd.Next(10000) + 1; iLoop++)
            {
                Items.Add(new CollectionData(iLoop + 1, rnd.Next()));
            }

            SelectedItem = Items[0];

            Values = new ObservableCollection <CollectionData>();

            rnd = RandomValue.GetValue();
            for (var iLoop = 0; iLoop < RandomValue.GetValue().Next(10000) + 1; iLoop++)
            {
                Values.Add(new CollectionData(iLoop + 1, rnd.Next()));
            }

            SelectedValue = Values[0];

            Close();
        }