/// <summary> /// Button_4_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_4_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Button_4_Click"); // Save list to Json LST.SaveListToJson <Data>(LST.OToL <Data>(Datas), "Datas.json"); }
/// <summary> /// Button_3_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_3_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Button_3_Click"); // Save list to Xml LST.SaveListToXml <Data>(LST.OToL <Data>(Datas), "Datas.xml"); }
/// <summary> /// Button_Save_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Save_Click(object sender, RoutedEventArgs e) { Debug.WriteLine("Button_Save_Click"); LST.SaveList(LST.OToL <Course>(Courses), AppDomain.CurrentDomain.BaseDirectory + "Courses.xml"); LST.SaveList(LST.OToL <Student>(Students), AppDomain.CurrentDomain.BaseDirectory + "Students.xml"); LST.SaveList(LST.OToL <Binding>(Bindings), AppDomain.CurrentDomain.BaseDirectory + "Bindings.xml"); Message = "We save Courses.xml, Students.xml and Bindings.xml"; }