| 1234567891011121314151617181920212223242526272829303132333435363738394041 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Input;using OpenSEMI.ClientBase;namespace VirgoUI.Client.Models.Recipe{    public class InputFileNameDialogViewModel : DialogViewModel<string>    {        public InputFileNameDialogViewModel(string dialogName = "")        {            this.DisplayName = dialogName;        }        public string FileName { get; set; }        public void Cancel()        {            IsCancel = true;            TryClose(false);        }        protected override void OnViewLoaded(object view)        {            base.OnViewLoaded(view);            InputFileNameDialogView v = (InputFileNameDialogView)view;            FocusManager.SetFocusedElement(v, v.tbName);        }        public void OK()        {            this.DialogResult = FileName;            IsCancel = false;            TryClose(true);        }    }}
 |