| | |
| | | using System; |
| | | using System.Collections.ObjectModel; |
| | | using System.ComponentModel; |
| | | using System.IO;
|
| | | using System.Runtime.CompilerServices; |
| | | using System.Windows.Controls; |
| | | using System.Xml.Serialization;
|
| | | using WPFProject.Models; |
| | | using WPFProject.Utils;
|
| | | |
| | | namespace WPFProject.UI.Test |
| | | { |
| | |
| | | |
| | | private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e) |
| | | { |
| | | ttt();
|
| | | if (e.AddedItems.Count > 0)
|
| | | { |
| | | ProgramChanged?.Invoke(this, e.AddedItems[0] as Program); |
| | | } |
| | | } |
| | |
|
| | | public void ttt()
|
| | | {
|
| | | string path = "X:\\vs\\WPFProject\\test.xml";
|
| | | XmlUtil.SerialToFile(Programs, path);
|
| | | }
|
| | | } |
| | | } |