private void SetAuthentificationMode(bool value) { if (value) SetWindowsCred(); SetTextBoxEnabed(); checkBox1.Checked = value; }