public SqlConnectionSettingsViewPresenter(ISqlConnectionSettingsView view, IWindowsIdentityProvider windowsIdentityProvider) { _view = view; _view.AuthMode = SqlAuthMode.Windows; _view.UserName = windowsIdentityProvider.CurrentUserName; _view.DisableUserNameAndPassword(); _view.AuthModeChanged += view_AuthModeChanged; }
public SqlConnectionSettingsViewPresenter(ISqlConnectionSettingsView view, IWindowsIdentityProvider windowsIdentityProvider) { _view = view; _view.AuthMode = SqlAuthMode.Windows; _view.UserName = windowsIdentityProvider.CurrentUserName; _view.DisableUserNameAndPassword(); _view.AuthModeChanged += view_AuthModeChanged; }