DirkSarodnick.GoogleSync.Addin.SyncOptionsForm.SaveOptions C# (CSharp) Method

SaveOptions() public method

Saves the options.
public SaveOptions ( ) : void
return void
        public void SaveOptions()
        {
            ApplicationData.GoogleUsername = this.txtUsername.Text;
            ApplicationData.GooglePassword = this.txtPassword.Text;
            ApplicationData.IncludeContactWithoutEmail = this.cbIncludeContactsWithoutEmail.Checked;
            if (rbContactMergeAuto.Checked) ApplicationData.ContactBehavior = ContactBehavior.Automatic;
            if (rbContactMergeGoogle.Checked) ApplicationData.ContactBehavior = ContactBehavior.GoogleOverOutlook;
            if (rbContactMergeOutlook.Checked) ApplicationData.ContactBehavior = ContactBehavior.OutlookOverGoogle;
        }