Exemple #1
0
    public TShellReportModel ()
    {
      Authentication = TAuthentication.None;

      AuthenticationSQL = TDatabaseAuthentication.CreateDefault;
      AuthenticationWindows = TDatabaseAuthentication.CreateDefault;

      ComponentModelItem = TComponentModelItem.CreateDefault;

      PropertySettingsInfoCollection = new Collection<TPropertySettingsInfo> ();
    }
Exemple #2
0
    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);
        }
Exemple #4
0
    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;
        }
      }
    }
Exemple #5
0
 public void Select (TAuthentication authentication)
 {
   Authentication = authentication;
 }
Exemple #6
0
 public TArgumentInternal ()
   : base (TComponentModelItem.CreateDefault)
 {
   Authentication = TAuthentication.None;
 }
Exemple #7
0
 public TFactoryMessageInternal (TInternalMessageAction messageAction, TAuthentication authentication, TTypeInfo typeInfo)
   : base (TResource.TModule.Factory, messageAction, TNode.Create (typeInfo), typeInfo)
 {
   Support.Argument.Types.Select (authentication);
 }
Exemple #8
0
 public void SelectAuthentication (TAuthentication authentication)
 {
   Model.Select (authentication);
 }
Exemple #9
0
    void ChangeAuthenticationDispatcher (TAuthentication authentication)
    {
      DatabaseConnection.ChangeAuthentication (authentication);

      TDispatcher.Invoke (LoadSettingsDispatcher);
    }
Exemple #10
0
 public TArgumentModule()
 {
     Authentication = TAuthentication.None;
 }