public TShellReportModel () { Authentication = TAuthentication.None; AuthenticationSQL = TDatabaseAuthentication.CreateDefault; AuthenticationWindows = TDatabaseAuthentication.CreateDefault; ComponentModelItem = TComponentModelItem.CreateDefault; PropertySettingsInfoCollection = new Collection<TPropertySettingsInfo> (); }
public void OnAuthenticationChecked (object tag) { if (tag is string authentication) { TAuthentication auth = (TAuthentication) Enum.Parse (typeof (TAuthentication), authentication); // to module var messageModule = new TFactoryMessage (TMessageAction.Authentication, TypeInfo); messageModule.Support.Argument.Types.Select (auth); DelegateCommand.PublishMessage.Execute (messageModule); } }
internal TDatabaseAuthentication Request(TAuthentication authentication) { switch (authentication) { case TAuthentication.SQL: return(AuthenticationSQL); case TAuthentication.Windows: return(AuthenticationWindows); } return(TDatabaseAuthentication.CreateDefault); }
internal void Select (TDatabaseAuthentication authentication) { if (authentication.NotNull ()) { switch (authentication.Authentication) { case TAuthentication.SQL: AuthenticationSQL.CopyFrom (authentication); if (authentication.IsActive) { Authentication = TAuthentication.SQL; } break; case TAuthentication.Windows: AuthenticationWindows.CopyFrom (authentication); if (authentication.IsActive) { Authentication = TAuthentication.Windows; } break; } } }
public void Select (TAuthentication authentication) { Authentication = authentication; }
public TArgumentInternal () : base (TComponentModelItem.CreateDefault) { Authentication = TAuthentication.None; }
public TFactoryMessageInternal (TInternalMessageAction messageAction, TAuthentication authentication, TTypeInfo typeInfo) : base (TResource.TModule.Factory, messageAction, TNode.Create (typeInfo), typeInfo) { Support.Argument.Types.Select (authentication); }
public void SelectAuthentication (TAuthentication authentication) { Model.Select (authentication); }
void ChangeAuthenticationDispatcher (TAuthentication authentication) { DatabaseConnection.ChangeAuthentication (authentication); TDispatcher.Invoke (LoadSettingsDispatcher); }
public TArgumentModule() { Authentication = TAuthentication.None; }