| | |
| | | using AIStudio.Wpf.Controls; |
| | | using GongSolutions.Wpf.DragDrop;
|
| | | using System.Collections.ObjectModel; |
| | | using System.ComponentModel; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Windows.Controls; |
| | | using WPFProject.Models; |
| | | using WPFProject.Utils;
|
| | | |
| | | namespace WPFProject.UI.Test |
| | | { |
| | |
| | | |
| | | InitializeComponent(); |
| | | } |
| | | private ObservableCollection<Program> _ps = new ObservableCollection<Program>();
|
| | | public ObservableCollection<Program> Ps
|
| | | {
|
| | | get => _ps;
|
| | | set => RaiseAndSetIfChanged(ref _ps, value);
|
| | | }
|
| | |
|
| | |
|
| | | private ObservableCollection<Sequence> _Sequences; |
| | | public ObservableCollection<Sequence> Sequences |
| | | { |
| | |
| | | this.Sequences = program.Sequences; |
| | | } |
| | | |
| | | private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
| | | {
|
| | | if (e.AddedItems.Count > 0)
|
| | | {
|
| | | Steps = (e.AddedItems[0] as Sequence).Steps;
|
| | | }
|
| | | }
|
| | |
|
| | | public IDropTarget dropHandler { get; set; } = new DdDropHandler();
|
| | |
|
| | | } |
| | | } |