using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Tester { public partial class RetrieveDataPanel : UserControl, IExecutePanel { public RetrieveDataPanel() { InitializeComponent(); } public object[] GetObjectArg() { var res = new List(); res.Add(txtResPath.Text); res.Add(string.IsNullOrEmpty(txtExt.Text) ? null : txtExt.Text); res.Add(string.IsNullOrEmpty(txtFilter.Text) ? null : txtFilter.Text); res.Add(string.IsNullOrEmpty(txtTop.Text) ? null : txtTop.Text); res.Add(string.IsNullOrEmpty(txtSkip.Text) ? null : txtSkip.Text); res.Add(string.IsNullOrEmpty(txtSelect.Text) ? null : txtSelect.Text); return res.ToArray(); } } }