Пример #1
0
        public void Navigated(string fromEndpoint, object data)
        {
            var algo   = new BruteForceClassSelector();
            var result = algo.Calculate((ClassGroup)data);

            CurrentResult = result;
            ResultScheduleList.Results = result;
            ResultScheduleList.Update();
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DataFile file  = new DataFile("subjects.xml");
            var      infos = file.LoadClassInfo();

            ClassGroup root  = new ClassGroup();
            var        group = new ClassGroup();

            foreach (var i in infos.Groups["컴퓨터정보공학부"])
            {
                group.AddGroup(new ClassInfoPlus(i, group));
            }
            group.SelectCount = 1;
            root.AddGroup(group);

            BruteForceClassSelector algo = new BruteForceClassSelector();
            var result = algo.Calculate(root);

            Debug.Write(result);
        }