123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OpenSEMI.ClientBase;
- namespace VirgoUI.Client.Models.Recipe
- {
- public class RecipeSequenceSelectDialogViewModel : DialogViewModel<string>
- {
- public void TreeSelectChanged(FileNode file)
- {
- this.currentFileNode = file;
- }
- public void OK()
- {
- if (this.currentFileNode!=null)
- {
- if (this.currentFileNode.IsFile)
- {
- this.DialogResult = this.currentFileNode.FullPath;
- IsCancel = false;
- TryClose(true);
- }
- }
- }
- public void Cancel()
- {
- IsCancel = true;
- TryClose(false);
- }
- public ObservableCollection<FileNode> Files { get; set; }
- private FileNode currentFileNode;
- }
- }
|