AnfiniL.SqlExpressProfiler.Controls.GeneralTracePropertiesControl.AddPasswordBindingToSettings C# (CSharp) Method

AddPasswordBindingToSettings() private method

private AddPasswordBindingToSettings ( ) : void
return void
        private void AddPasswordBindingToSettings()
        {
            if (savePasswordCheckBox.Checked)
                passwordTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::AnfiniL.SqlExpressProfiler.Properties.Settings.Default, "Password", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
            else
            {
                Settings.Default.Password = string.Empty;
                passwordTextBox.Clear();
            }
        }