VRDash/VDash/UI/ProcessSelectorEditor.xaml.cs

44 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VDash.WindowSelectors;
namespace VDash.UI
{
/// <summary>
/// Interaction logic for ProcessSelectorEditor.xaml
/// </summary>
public partial class ProcessSelectorEditor : UserControl,ISelectorEditor
{
public FromProcessName Selector { get; private set; }
public ProcessSelectorEditor(ref FromProcessName selector)
{
InitializeComponent();
Selector = selector;
DataContext = Selector;
}
public string[] ValidateInput()
{
List<string> issues = new List<string>();
if (String.IsNullOrWhiteSpace(Selector.ProcessName))
{
issues.Add("You must enter a process name.");
}
return issues.ToArray();
}
}
}