Пример #1
0
        void test()
        {
            List <Model.CVScored> data = new List <Model.CVScored>();
            Random rand = new Random();

            for (int i = 0; i < 100; i++)
            {
                Model.CVScored item = new Model.CVScored()
                {
                    name               = "user " + rand.NextDouble(),
                    workScore          = 100 * rand.NextDouble(),
                    skillScore         = 100 * rand.NextDouble(),
                    qualificationScore = 100 * rand.NextDouble()
                };
                data.Add(item);
            }
            dataGridUsers.DataContext = new[] { new Model.CVScored() };
            dataGridUsers.ItemsSource = null;
            dataGridUsers.ItemsSource = data;
        }
Пример #2
0
        public SearchCandidates()
        {
            InitializeComponent();

            List <Model.CVScored> data = new List <Model.CVScored>();
            Random rand = new Random();

            for (int i = 0; i < 100; i++)
            {
                Model.CVScored item = new Model.CVScored()
                {
                    name               = "user " + rand.NextDouble(),
                    workScore          = 100 * rand.NextDouble(),
                    skillScore         = 100 * rand.NextDouble(),
                    qualificationScore = 100 * rand.NextDouble()
                };
                data.Add(item);
            }
            dataGridUsers.DataContext = new[] { new Model.CVScored() };
            dataGridUsers.ItemsSource = data;
        }