private void btnSave_Click(object sender, EventArgs e) { XMLSettings.WriteValue("ListenPort", ncPort.Value.ToString(CultureInfo.InvariantCulture)); XMLSettings.ListenPort = ushort.Parse(ncPort.Value.ToString(CultureInfo.InvariantCulture)); XMLSettings.WriteValue("AutoListen", chkAutoListen.Checked.ToString()); XMLSettings.AutoListen = chkAutoListen.Checked; XMLSettings.WriteValue("ShowPopup", chkPopup.Checked.ToString()); XMLSettings.ShowPopup = chkPopup.Checked; XMLSettings.WriteValue("Password", txtPassword.Text); XMLSettings.Password = txtPassword.Text; XMLSettings.WriteValue("UseUPnP", chkUseUpnp.Checked.ToString()); XMLSettings.UseUPnP = chkUseUpnp.Checked; XMLSettings.WriteValue("ShowToolTip", chkShowTooltip.Checked.ToString()); XMLSettings.ShowToolTip = chkShowTooltip.Checked; XMLSettings.WriteValue("EnableNoIPUpdater", chkNoIPIntegration.Checked.ToString()); XMLSettings.IntegrateNoIP = chkNoIPIntegration.Checked; XMLSettings.WriteValue("NoIPHost", txtNoIPHost.Text); XMLSettings.NoIPHost = txtNoIPHost.Text; XMLSettings.WriteValue("NoIPUsername", txtNoIPUser.Text); XMLSettings.NoIPUsername = txtNoIPUser.Text; XMLSettings.WriteValue("NoIPPassword", txtNoIPPass.Text); XMLSettings.NoIPPassword = txtNoIPPass.Text; this.Close(); }
private void btnSave_Click(object sender, EventArgs e) { XMLSettings.WriteValue("ListenPort", ncPort.Value.ToString()); XMLSettings.ListenPort = ushort.Parse(ncPort.Value.ToString()); XMLSettings.WriteValue("AutoListen", chkAutoListen.Checked.ToString()); XMLSettings.AutoListen = chkAutoListen.Checked; XMLSettings.WriteValue("ShowPopup", chkPopup.Checked.ToString()); XMLSettings.ShowPopup = chkPopup.Checked; XMLSettings.WriteValue("Password", txtPassword.Text); XMLSettings.Password = txtPassword.Text; this.Close(); }
private void btnSave_Click(object sender, EventArgs e) { ushort port = GetPortSafe(); if (port == 0) { MessageBox.Show("Please enter a valid port > 0.", "Please enter a valid port", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } XMLSettings.WriteValue("ListenPort", port.ToString()); XMLSettings.ListenPort = port; XMLSettings.WriteValue("AutoListen", chkAutoListen.Checked.ToString()); XMLSettings.AutoListen = chkAutoListen.Checked; XMLSettings.WriteValue("ShowPopup", chkPopup.Checked.ToString()); XMLSettings.ShowPopup = chkPopup.Checked; XMLSettings.WriteValue("Password", txtPassword.Text); XMLSettings.Password = txtPassword.Text; XMLSettings.WriteValue("UseUPnP", chkUseUpnp.Checked.ToString()); XMLSettings.UseUPnP = chkUseUpnp.Checked; XMLSettings.WriteValue("ShowToolTip", chkShowTooltip.Checked.ToString()); XMLSettings.ShowToolTip = chkShowTooltip.Checked; XMLSettings.WriteValue("EnableNoIPUpdater", chkNoIPIntegration.Checked.ToString()); XMLSettings.IntegrateNoIP = chkNoIPIntegration.Checked; XMLSettings.WriteValue("NoIPHost", txtNoIPHost.Text); XMLSettings.NoIPHost = txtNoIPHost.Text; XMLSettings.WriteValue("NoIPUsername", txtNoIPUser.Text); XMLSettings.NoIPUsername = txtNoIPUser.Text; XMLSettings.WriteValue("NoIPPassword", txtNoIPPass.Text); XMLSettings.NoIPPassword = txtNoIPPass.Text; this.Close(); }
private void btnSave_Click(object sender, EventArgs e) { XMLSettings.WriteValue("ListenPort", ncPort.Value.ToString(CultureInfo.InvariantCulture)); XMLSettings.ListenPort = ushort.Parse(ncPort.Value.ToString(CultureInfo.InvariantCulture)); XMLSettings.WriteValue("AutoListen", chkAutoListen.Checked.ToString()); XMLSettings.AutoListen = chkAutoListen.Checked; XMLSettings.WriteValue("ShowPopup", chkPopup.Checked.ToString()); XMLSettings.ShowPopup = chkPopup.Checked; XMLSettings.WriteValue("Password", txtPassword.Text); XMLSettings.Password = txtPassword.Text; XMLSettings.WriteValue("UseUPnP", chkUseUpnp.Checked.ToString()); XMLSettings.UseUPnP = chkUseUpnp.Checked; XMLSettings.WriteValue("ShowToolTip", chkShowTooltip.Checked.ToString()); XMLSettings.ShowToolTip = chkShowTooltip.Checked; this.Close(); }
private void txtFormat_TextChanged(object sender, EventArgs e) { XMLSettings.WriteValue("SaveFormat", txtFormat.Text); }
private void btnAccept_Click(object sender, EventArgs e) { XMLSettings.WriteValue("ShowToU", (!chkDontShowAgain.Checked).ToString()); _exit = false; this.Close(); }