bool ExelConverter.Core.Settings.ILogIn.LogIn() { if (authenticated) { return(authenticated); } if (this.IsDesignMode()) { authenticated = true; } else { LogInView lv = new LogInView(); var res = lv.ShowDialog(); authenticated = (res == null ? false : res.Value); if (authenticated) { lv.Client.SetAsDefault(); alphaEntities.ProviderConnectionString = lv.Client.ConnectionStringMain; exelconverterEntities2.ProviderConnectionString = lv.Client.ConnectionStringApp; } } return(authenticated); }
bool ExelConverter.Core.Settings.ILogIn.LogIn() { if (authenticated) return authenticated; if (this.IsDesignMode()) { authenticated = true; } else { LogInView lv = new LogInView(); var res = lv.ShowDialog(); authenticated = (res == null ? false : res.Value); if (authenticated) { lv.Client.SetAsDefault(); alphaEntities.ProviderConnectionString = lv.Client.ConnectionStringMain; exelconverterEntities2.ProviderConnectionString = lv.Client.ConnectionStringApp; } } return authenticated; }