예제 #1
0
        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();
        }
예제 #2
0
파일: frmSettings.cs 프로젝트: cr4ck32/xRAT
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 private void txtFormat_TextChanged(object sender, EventArgs e)
 {
     XMLSettings.WriteValue("SaveFormat", txtFormat.Text);
 }
예제 #6
0
 private void btnAccept_Click(object sender, EventArgs e)
 {
     XMLSettings.WriteValue("ShowToU", (!chkDontShowAgain.Checked).ToString());
     _exit = false;
     this.Close();
 }