mirror of
https://github.com/eRgo35/Server-Manager.git
synced 2026-02-04 11:26:10 +01:00
1.0.0 Release 🎉
This commit is contained in:
@@ -10,33 +10,35 @@ namespace Server_Manager
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void GroupBox2_Enter(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
button1.Text = "Saved!";
|
||||
|
||||
button1.Enabled = false;
|
||||
|
||||
Properties.Settings.Default.NetCardIP = textBox1.Text;
|
||||
Properties.Settings.Default.OSIP = textBox2.Text;
|
||||
Properties.Settings.Default.NetCardUser = textBox3.Text;
|
||||
Properties.Settings.Default.NetCardPass = textBox4.Text;
|
||||
Properties.Settings.Default.OSUser = textBox6.Text;
|
||||
Properties.Settings.Default.OSPass = textBox5.Text;
|
||||
Properties.Settings.Default.StartCmd = textBox7.Text;
|
||||
Properties.Settings.Default.ShutDwnCmd = textBox8.Text;
|
||||
Properties.Settings.Default.IP = textBox1.Text;
|
||||
Properties.Settings.Default.Username = textBox6.Text;
|
||||
Properties.Settings.Default.Password = textBox5.Text;
|
||||
Properties.Settings.Default.ShutdownCMD = textBox8.Text;
|
||||
Properties.Settings.Default.MAC = textBox9.Text;
|
||||
Properties.Settings.Default.BroadcastIP = textBox7.Text;
|
||||
Properties.Settings.Default.Port = textBox2.Text;
|
||||
|
||||
Properties.Settings.Default.Save();
|
||||
Properties.Settings.Default.Reload();
|
||||
|
||||
checkBox1.Checked = false;
|
||||
checkBox2.Checked = false;
|
||||
checkBox3.Checked = false;
|
||||
checkBox4.Checked = false;
|
||||
checkBox5.Checked = false;
|
||||
checkBox6.Checked = false;
|
||||
checkBox8.Checked = false;
|
||||
textBox1.Enabled = false;
|
||||
textBox2.Enabled = false;
|
||||
textBox5.Enabled = false;
|
||||
textBox6.Enabled = false;
|
||||
textBox7.Enabled = false;
|
||||
textBox8.Enabled = false;
|
||||
textBox9.Enabled = false;
|
||||
|
||||
System.Threading.Thread.Sleep(500);
|
||||
|
||||
@@ -71,28 +73,13 @@ namespace Server_Manager
|
||||
|
||||
private void Settings_Load(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = Properties.Settings.Default.NetCardIP;
|
||||
textBox2.Text = Properties.Settings.Default.OSIP;
|
||||
textBox3.Text = Properties.Settings.Default.NetCardUser;
|
||||
textBox4.Text = Properties.Settings.Default.NetCardPass;
|
||||
textBox6.Text = Properties.Settings.Default.OSUser;
|
||||
textBox5.Text = Properties.Settings.Default.OSPass;
|
||||
textBox7.Text = Properties.Settings.Default.StartCmd;
|
||||
textBox8.Text = Properties.Settings.Default.ShutDwnCmd;
|
||||
}
|
||||
|
||||
private void CheckBox3_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (textBox3.Enabled == true)
|
||||
{
|
||||
textBox3.Enabled = false;
|
||||
textBox4.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBox3.Enabled = true;
|
||||
textBox4.Enabled = true;
|
||||
}
|
||||
textBox1.Text = Properties.Settings.Default.IP;
|
||||
textBox6.Text = Properties.Settings.Default.Username;
|
||||
textBox5.Text = Properties.Settings.Default.Password;
|
||||
textBox8.Text = Properties.Settings.Default.ShutdownCMD;
|
||||
textBox9.Text = Properties.Settings.Default.MAC;
|
||||
textBox7.Text = Properties.Settings.Default.BroadcastIP;
|
||||
textBox2.Text = Properties.Settings.Default.Port;
|
||||
}
|
||||
|
||||
private void CheckBox4_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -109,14 +96,9 @@ namespace Server_Manager
|
||||
}
|
||||
}
|
||||
|
||||
private void TextBox3_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Button2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Created by Michał Czyż\n\nCopyright(C) 2020 All Rights Reserved\n\nVersion: 1.0", "About", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
MessageBox.Show("Created by Michał Czyż\n\nCopyright(c) 2021 All Rights Reserved\n\nVersion: 1.0.0", "About Server Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
private void checkBox5_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -142,5 +124,17 @@ namespace Server_Manager
|
||||
textBox8.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void checkBox8_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (textBox9.Enabled == true)
|
||||
{
|
||||
textBox9.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
textBox9.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user