public void Navigated(string fromEndpoint, object data) { var algo = new BruteForceClassSelector(); var result = algo.Calculate((ClassGroup)data); CurrentResult = result; ResultScheduleList.Results = result; ResultScheduleList.Update(); }
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); }