private void button_Click(object sender, RoutedEventArgs e) { _ctrlListIn.ItemsSource = OvWHLogic.OvWHGetNumbers(int.Parse(_ctrlTxb.Text)); StandList = OvWHLogic.OvWHFillList(); SortList = OvWHLogic.OvWHFillSortList(); FirstList = StandList.OvWhListPrint(); SecondList = SortList.OvWhListPrint(); _ctrlListUnsort.ItemsSource = FirstList; _ctrlListSort.ItemsSource = SecondList; }
public static OvWHList OvWHFillList() { OvWHList List = new OvWHList(); for (int i = 0; i < Numbers.Length; i++) List.OvWHListAdd(Numbers[i]); return List; }