2015-01-27 22:56:52 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
2015-06-25 20:22:45 +00:00
|
|
|
|
using xServer.Core.Helper;
|
2015-07-25 22:10:59 +00:00
|
|
|
|
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)
|
|
|
|
|
{
|
2015-07-25 22:10:59 +00:00
|
|
|
|
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)
|
|
|
|
|
{
|
2015-07-25 22:10:59 +00:00
|
|
|
|
this.Text = WindowHelper.GetWindowTitle("Download & Execute", _selectedClients);
|
|
|
|
|
txtURL.Text = DownloadAndExecute.URL;
|
|
|
|
|
chkRunHidden.Checked = DownloadAndExecute.RunHidden;
|
2015-01-27 22:56:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|