private void ConnectionsCombo_SelectedIndexChanged(ComboBox comboxBox, ref string connMgrNameVariable, string connMgrType, ConnectionManagerUIArgs connUIargs, DTSFileConnectionUsageType?uType) { // Check for index 0 and <New Item...> if (comboxBox.SelectedIndex == 0) { // Use connection service to create a new connection. ArrayList newConns = _dtsConnectionService.CreateConnection(connMgrType, connUIargs); if (newConns.Count > 0) { // A new connection has been created, so populate and select ConnectionManager newConn = (ConnectionManager)newConns[0]; connMgrNameVariable = newConn.Name; PopulateConnectionsCombo(comboxBox, connMgrType, newConn.Name, uType); } else { // Create connection has been cancelled //comboxBox.SelectedIndex = -1; } } else { connMgrNameVariable = comboxBox.SelectedItem.ToString(); } }
public bool New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { // コピー&ペーストされた場合でもNewメソッドが呼ばれるため、Fromを表示しないよう制御する必要がある。 var clipboardService = (IDtsClipboardService)ServiceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null && clipboardService.IsPasteActive) return true; return OpenEditor(parentWindow); }
public bool New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { // コピー&ペーストされた場合でもNewメソッドが呼ばれるため、Fromを表示しないよう制御する必要がある。 var clipboardService = (IDtsClipboardService)ServiceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null && clipboardService.IsPasteActive) { return(true); } return(OpenEditor(parentWindow)); }
bool IDtsConnectionManagerUI.New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { // If the user is pasting a new connection manager into this window, we can just return true. // We don't need to bring up the edit dialog ourselves IDtsClipboardService clipboardService = _serviceProvider.GetService(typeof(IDtsClipboardService)) as IDtsClipboardService; if ((clipboardService != null) && (clipboardService.IsPasteActive)) { return true; } return EditSharePointCredentialConnection(parentWindow, connections); }
public bool Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { SmtpPersoUIFormCS smtpPersoUIForm = new SmtpPersoUIFormCS(); smtpPersoUIForm.Initialize(_connectionManager, _serviceProvider); if (smtpPersoUIForm.ShowDialog(parentWindow) == DialogResult.OK) { return(true); } else { return(false); } }
public bool New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { IDtsClipboardService clipboardService; clipboardService = (IDtsClipboardService)this._serviceProvider.GetService(typeof(IDtsClipboardService)); // If connection manager has been copied and pasted, take no action. if (clipboardService != null) { if (clipboardService.IsPasteActive) { return true; } } return editSSHConnection(parentWindow); }
public bool New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { IDtsClipboardService clipboardService; clipboardService = (IDtsClipboardService)serviceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null) // If connection manager has been copied and pasted, take no action. { if (clipboardService.IsPasteActive) { return(true); } } return(EditConnection(parentWindow)); }
public bool New(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { IDtsClipboardService clipboardService; clipboardService = (IDtsClipboardService)serviceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null) // If connection manager has been copied and pasted, take no action. { if (clipboardService.IsPasteActive) { return true; } } return EditConnection(parentWindow); }
public bool Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(editSSHConnection(parentWindow)); }
bool IDtsConnectionManagerUI.Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return EditSharePointCredentialConnection(parentWindow, connections); }
bool IDtsConnectionManagerUI.Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return EditCloudDBConnection(parentWindow, connections); }
bool IDtsConnectionManagerUI.New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { // If the user is pasting a new connection manager into this window, we can just return true. // We don't need to bring up the edit dialog ourselves IDtsClipboardService clipboardService = _serviceProvider.GetService(typeof(IDtsClipboardService)) as IDtsClipboardService; Debug.Assert(clipboardService != null); if ((clipboardService != null) && (clipboardService.IsPasteActive)) { return(true); } return(EditCloudDBConnection(parentWindow, connections)); }
bool IDtsConnectionManagerUI.Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(EditCloudDBConnection(parentWindow, connections)); }
private void ConnectionsCombo_SelectedIndexChanged(ComboBox comboxBox, ref string connMgrNameVariable, string connMgrType, ConnectionManagerUIArgs connUIargs, DTSFileConnectionUsageType? uType) { // Check for index 0 and <New Item...> if (comboxBox.SelectedIndex == 0) { // Use connection service to create a new connection. ArrayList newConns = _dtsConnectionService.CreateConnection(connMgrType, connUIargs); if (newConns.Count > 0) { // A new connection has been created, so populate and select ConnectionManager newConn = (ConnectionManager)newConns[0]; connMgrNameVariable = newConn.Name; PopulateConnectionsCombo(comboxBox, connMgrType, newConn.Name, uType); } else { // Create connection has been cancelled //comboxBox.SelectedIndex = -1; } } else { connMgrNameVariable = comboxBox.SelectedItem.ToString(); } }
public bool Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(OpenEditor(parentWindow)); }
public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { return EditConnection(parentWindow); }
public bool Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return OpenEditor(parentWindow); }
public bool New(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(this.Edit(parentWindow, connections, connectionUIArg)); }
public bool Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return editSSHConnection(parentWindow); }
public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(ShowUI(parentWindow)); }
public bool New(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Connections connections, ConnectionManagerUIArgs connectionUIArg) { IDtsClipboardService clipboardService; clipboardService = (IDtsClipboardService)serviceProvider.GetService(typeof(IDtsClipboardService)); if (clipboardService != null) // If connection manager has been copied and pasted, take no action. { if (clipboardService.IsPasteActive) { return(true); } } return(ShowUI(parentWindow)); }
bool IDtsConnectionManagerUI.Edit(IWin32Window parentWindow, Connections connections, ConnectionManagerUIArgs connectionUIArg) { return(EditSharePointCredentialConnection(parentWindow, connections)); }