1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-19 09:43:20 +00:00

First commit of MeshAgent for MeshCentral

This commit is contained in:
Ylian Saint-Hilaire
2017-10-12 14:28:03 -07:00
commit 75d86eb4c8
349 changed files with 210459 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
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 WebRTC_Sample
{
public partial class StunSettingsForm : Form
{
public StunSettingsForm()
{
InitializeComponent();
}
public Boolean StunServersInUse
{
get { return stunCheckBox.Checked; }
set { stunTextBox.Enabled = stunCheckBox.Checked = value; }
}
public String[] StunServers
{
get { return stunTextBox.Text.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); }
set { stunTextBox.Text = string.Join("\r\n", value); }
}
private void okButton_Click(object sender, EventArgs e)
{
DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void cancelButton_Click(object sender, EventArgs e)
{
DialogResult = System.Windows.Forms.DialogResult.Cancel;
}
private void stunCheckBox_CheckedChanged(object sender, EventArgs e)
{
stunTextBox.Enabled = stunCheckBox.Checked;
}
}
}