Ejemplo n.º 1
0
 public void SetConnection(IArasConnection conn, string name = null)
 {
     if (conn == null)
     {
         throw new ArgumentNullException("inn");
     }
     _conn = conn;
     ((Editor.AmlEditorHelper)inputEditor.Helper).InitializeConnection(ApplyAction);
     lblConnectionName.Text = string.Format("{0} ({1})", name ?? conn.GetDatabaseName(), conn.GetIomVersion());
 }
Ejemplo n.º 2
0
        public void SetConnection(ConnectionData conn)
        {
            string msg;
            var    arasConn = ConnectionEditor.Login(conn, out msg);

            if (arasConn == null)
            {
                MessageBox.Show(msg);
            }
            else
            {
                _conn     = arasConn;
                _connData = conn;
                ((Editor.AmlEditorHelper)inputEditor.Helper).InitializeConnection(ApplyAction);
            }
            lblConnectionName.Text = string.Format("{0} ({1})", conn.ConnectionName, _conn.GetIomVersion());
        }
Ejemplo n.º 3
0
 public void SetConnection(ConnectionData conn)
 {
     string msg;
       var arasConn = ConnectionEditor.Login(conn, out msg);
       if (arasConn == null)
       {
     MessageBox.Show(msg);
       }
       else
       {
     _conn = arasConn;
     _connData = conn;
     ((Editor.AmlEditorHelper)inputEditor.Helper).InitializeConnection(ApplyAction);
       }
       lblConnectionName.Text = string.Format("{0} ({1})", conn.ConnectionName, _conn.GetIomVersion());
 }
Ejemplo n.º 4
0
 public void SetConnection(IArasConnection conn, string name = null)
 {
     if (conn == null) throw new ArgumentNullException("inn");
       _conn = conn;
       ((Editor.AmlEditorHelper)inputEditor.Helper).InitializeConnection(ApplyAction);
       lblConnectionName.Text = string.Format("{0} ({1})", name ?? conn.GetDatabaseName(), conn.GetIomVersion());
 }
Ejemplo n.º 5
0
 public ImportProcessor(IArasConnection conn)
 {
     _conn = new Connection(conn);
 }
Ejemplo n.º 6
0
 public DatabasePackage(IArasConnection conn)
 {
     _conn = new Connection(conn);
 }
Ejemplo n.º 7
0
 public InstallProcessor(IArasConnection conn)
 {
     _conn        = new Connection(conn);
     _exportTools = new ExportProcessor(conn);
     _currLine    = -1;
 }
Ejemplo n.º 8
0
 public InstallProcessor(IArasConnection conn)
 {
     _conn = new Connection(conn);
       _exportTools = new ExportProcessor(conn);
       _currLine = -1;
 }
Ejemplo n.º 9
0
 public Connection(IArasConnection extConn)
 {
     _extConn = extConn;
 }
Ejemplo n.º 10
0
 public ArasVaultConnection(IArasConnection conn)
 {
   _conn = conn;
 }
Ejemplo n.º 11
0
 public ImportProcessor(IArasConnection conn)
 {
     _conn = new Connection(conn);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArasVaultConnection"/> class for
 /// a given <see cref="IArasConnection"/>
 /// </summary>
 /// <param name="conn">The corresponding <see cref="IArasConnection"/>.</param>
 /// <param name="client">The <see cref="HttpClient"/> to use</param>
 public ArasVaultConnection(IArasConnection conn, HttpClient client)
 {
     _conn    = conn;
     _factory = new DefaultVaultFactory(client);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArasVaultConnection"/> class for
 /// a given <see cref="IArasConnection"/>
 /// </summary>
 /// <param name="conn">The corresponding <see cref="IArasConnection"/>.</param>
 public ArasVaultConnection(IArasConnection conn) : this(conn, ConnectionPreferences.GetService())
 {
 }
Ejemplo n.º 14
0
 public DatabasePackage(IArasConnection conn)
 {
     _conn = new Connection(conn);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ArasVaultConnection"/> class for
 /// a given <see cref="IArasConnection"/>
 /// </summary>
 /// <param name="conn">The corresponding <see cref="IArasConnection"/>.</param>
 public ArasVaultConnection(IArasConnection conn)
 {
     _conn = conn;
 }