private void SetWindowsCred() { loginTextBox.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name; }