Delete frmUploadAndExecute.cs

This commit is contained in:
MaxXor 2015-01-29 10:00:10 +01:00
parent 73e08763b7
commit 1a26173acc
1 changed files with 0 additions and 47 deletions

View File

@ -1,47 +0,0 @@
using System;
using System.IO;
using System.Windows.Forms;
namespace xServer.Forms
{
public partial class FrmUploadAndExecute : Form
{
private readonly int _selectedClients;
public FrmUploadAndExecute(int selected)
{
_selectedClients = selected;
InitializeComponent();
}
private void FrmUploadAndExecute_Load(object sender, EventArgs e)
{
this.Text = string.Format("xRAT 2.0 - Upload & Execute [Selected: {0}]", _selectedClients);
chkRunHidden.Checked = Core.Misc.UploadAndExecute.RunHidden;
}
private void btnBrowse_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Multiselect = false;
ofd.Filter = "Executable (*.exe)|*.exe";
if (ofd.ShowDialog() == DialogResult.OK)
{
var filePath = Path.Combine(ofd.InitialDirectory, ofd.FileName);
txtPath.Text = filePath;
Core.Misc.UploadAndExecute.File = (File.Exists(filePath) ? File.ReadAllBytes(filePath) : new byte[0]);
Core.Misc.UploadAndExecute.FileName = ofd.SafeFileName;
Core.Misc.UploadAndExecute.RunHidden = chkRunHidden.Checked;
}
}
}
private void btnUploadAndExecute_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}