/// <summary> /// Called when user double clicks the component to edit it. /// </summary> /// <param name="parentWindow">The parent window.</param> /// <param name="variables">The variables.</param> /// <param name="connections">The connections.</param> /// <returns>Boolean indicating where component has changed.</returns> public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { var dialog = new SetWebsiteAddressDialog(); var websiteAddressProperty = componentMeta.CustomPropertyCollection["Website Address"]; dialog.WebsiteAddress = websiteAddressProperty.Value; if (dialog.ShowDialog(parentWindow) == DialogResult.OK) { websiteAddressProperty.Value = dialog.WebsiteAddress; return(true); } return(false); }
public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { return(ShowUI(parentWindow) == DialogResult.OK); }
public bool Edit(IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections) { var propertiesEditor = new SSISPhoneLibDialog(); propertiesEditor.ComponentMetaData = _cmd; propertiesEditor.ServiceProvider = _sp; propertiesEditor.Varibles = variables; return(propertiesEditor.ShowDialog(parentWindow) == DialogResult.OK); }