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);
        }
Esempio n. 2
0
 public static Microsoft.SqlServer.Dts.Runtime.Variable Get(
     this Microsoft.SqlServer.Dts.Runtime.Variables variables, string name)
 {
     foreach (Microsoft.SqlServer.Dts.Runtime.Variable item in variables)
     {
         if (item.Name == name)
         {
             return(item);
         }
     }
     return(null);
 }
        /// <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);
        }
        private static object GetVariable(Microsoft.SqlServer.Dts.Runtime.VariableDispenser vd, string varname, out DataType vartype)
        {
            object o = null;

            Microsoft.SqlServer.Dts.Runtime.Variables vars = null;
            try
            {
                vd.LockOneForRead(varname, ref vars);
                o       = vars[varname].Value;
                vartype = (DataType)vars[varname].DataType;
                return(o);
            }
            finally
            {
                if (vars != null)
                {
                    vars.Unlock();
                }
            }
        }
Esempio n. 5
0
 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);
 }