/// <summary> /// Button_6_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_6_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Button_6_Click"); // Load list from Json ReFillList(LST.LToO <Data>(LST.LoadListFromJson <Data>("Datas.json"))); }
/// <summary> /// Button_Load_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Load_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Button_Load_Click"); Courses = LST.LToO <Course>(LST.LoadList <Course>(AppDomain.CurrentDomain.BaseDirectory + "Courses.xml")); Students = LST.LToO <Student>(LST.LoadList <Student>(AppDomain.CurrentDomain.BaseDirectory + "Students.xml")); Bindings = LST.LToO <Binding>(LST.LoadList <Binding>(AppDomain.CurrentDomain.BaseDirectory + "Bindings.xml")); _bindingsWindow.Bindings = Bindings; Message = "We load Courses.xml, Students.xml and Bindings.xml"; }