mirror of
https://github.com/SlothDpal/Relaunch-Process.git
synced 2026-02-22 17:27:38 +03:00
Renaming. Disabled settings discord if start work
This commit is contained in:
@@ -13,9 +13,9 @@ using RelaunchProcess.Properties;
|
||||
|
||||
namespace RelaunchProcess
|
||||
{
|
||||
public partial class DiscordSettings : Form
|
||||
public partial class WebhookSettings : Form
|
||||
{
|
||||
public DiscordSettings()
|
||||
public WebhookSettings()
|
||||
{
|
||||
InitializeComponent();
|
||||
RestoreSettings();
|
||||
@@ -38,6 +38,16 @@ namespace RelaunchProcess
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
public void UpdateUI()
|
||||
{
|
||||
groupBoxSettingsDiscord.Enabled = !chbxDiscordEnabled.Checked;
|
||||
}
|
||||
|
||||
private void WebhookSettings_FormLoad(object sender, EventArgs e)
|
||||
{
|
||||
UpdateUI();
|
||||
}
|
||||
|
||||
private void BtnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.Cancel;
|
||||
@@ -69,5 +79,10 @@ namespace RelaunchProcess
|
||||
if ( (Button)sender == btnClearUrlField ) textDwhURL.Text = "";
|
||||
if ( (Button)sender == btnClearAvatarUrlField ) textDwhAvatarUrl.Text = "";
|
||||
}
|
||||
|
||||
private void chbxDiscordEnabled_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateUI();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user