Quasar/Server/Forms/FrmDownloadAndExecute.cs

34 lines
985 B
C#
Raw Normal View History

2015-01-27 22:56:52 +00:00
using System;
using System.Windows.Forms;
using xServer.Core.Helper;
using xServer.Core.Utilities;
2015-01-27 22:56:52 +00:00
namespace xServer.Forms
{
public partial class FrmDownloadAndExecute : Form
{
private readonly int _selectedClients;
public FrmDownloadAndExecute(int selected)
{
_selectedClients = selected;
InitializeComponent();
}
private void btnDownloadAndExecute_Click(object sender, EventArgs e)
{
DownloadAndExecute.URL = txtURL.Text;
DownloadAndExecute.RunHidden = chkRunHidden.Checked;
2015-01-27 22:56:52 +00:00
this.DialogResult = DialogResult.OK;
this.Close();
}
private void FrmDownloadAndExecute_Load(object sender, EventArgs e)
{
this.Text = WindowHelper.GetWindowTitle("Download & Execute", _selectedClients);
txtURL.Text = DownloadAndExecute.URL;
chkRunHidden.Checked = DownloadAndExecute.RunHidden;
2015-01-27 22:56:52 +00:00
}
}
}