Beispiel #1
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            if (textBoxHostName.Text == "")
            {
                MessageBox.Show("Server hostname must not be empty!");
                return;
            }
            buttonSave.Enabled = false;
            SIP_Notifier.Accounts settings = SIP_Notifier.Accounts.Default;

            settings.HostName = textBoxHostName.Text;
            settings.UserName = textBoxUserName.Text;
            settings.Id       = textBoxUserName.Text;
            settings.Password = textBoxPassword.Text;

            settings.Save();
            RestartSip();
        }
Beispiel #2
0
 public void Save()
 {
     settings.Save();
 }