public MethodInvoke(UPnPAction action, UPnPService service)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.action  = action;
            this.service = service;

            this.Text        += " - " + action.Name;
            actionLabel.Text  = action.Name;
            serviceLabel.Text = service.ServiceID;
            deviceLabel.Text  = service.ParentDevice.FriendlyName;

            if (action.ArgumentList.Length > 0)
            {
                argControlList = new UPnpArgumentControl[action.ArgumentList.Length];

                for (int z = 0; z < action.ArgumentList.Length; ++z)
                {
//					if (action.ArgumentList[z].IsReturnValue == true) {returnArgPresent = true;}
                    argControlList[z]      = new UPnpArgumentControl(action.ArgumentList[z]);
                    argControlList[z].Dock = System.Windows.Forms.DockStyle.Top;

                    /*
                     * if (action.ArgumentList[z].RelatedStateVar.ValueType == "string")
                     * {
                     *      argControlList[z].Height = 60;
                     * }
                     */
                    argPanel.Controls.Add(argControlList[z]);
                    argPanel.Controls.SetChildIndex(argControlList[z], 0);

                    Splitter splitter = new Splitter();
                    splitter.Height    = 4;
                    splitter.MinExtra  = 0;
                    splitter.MinSize   = 32;
                    splitter.BackColor = Color.Gray;
                    splitter.Dock      = System.Windows.Forms.DockStyle.Top;
                    argPanel.Controls.Add(splitter);
                    argPanel.Controls.SetChildIndex(splitter, 0);
                }
            }

            service.OnInvokeError    += new UPnPService.UPnPServiceInvokeErrorHandler(HandleInvokeError);
            service.OnInvokeResponse += new UPnPService.UPnPServiceInvokeHandler(HandleInvoke);
        }
        public MethodInvoke(UPnPAction action, UPnPService service)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.action = action;
            this.service = service;

            this.Text += " - " + action.Name;
            actionLabel.Text = action.Name;
            serviceLabel.Text = service.ServiceID;
            deviceLabel.Text = service.ParentDevice.FriendlyName;

            if (action.ArgumentList.Length>0)
            {
                argControlList = new UPnpArgumentControl[action.ArgumentList.Length];

                for (int z=0;z<action.ArgumentList.Length;++z)
                {
            //					if (action.ArgumentList[z].IsReturnValue == true) {returnArgPresent = true;}
                    argControlList[z] = new UPnpArgumentControl(action.ArgumentList[z]);
                    argControlList[z].Dock = System.Windows.Forms.DockStyle.Top;
                    /*
                    if (action.ArgumentList[z].RelatedStateVar.ValueType == "string")
                    {
                        argControlList[z].Height = 60;
                    }
                    */
                    argPanel.Controls.Add(argControlList[z]);
                    argPanel.Controls.SetChildIndex(argControlList[z],0);

                    Splitter splitter = new Splitter();
                    splitter.Height = 4;
                    splitter.MinExtra = 0;
                    splitter.MinSize = 32;
                    splitter.BackColor = Color.Gray;
                    splitter.Dock = System.Windows.Forms.DockStyle.Top;
                    argPanel.Controls.Add(splitter);
                    argPanel.Controls.SetChildIndex(splitter,0);
                }
            }

            service.OnInvokeError += new UPnPService.UPnPServiceInvokeErrorHandler(HandleInvokeError);
            service.OnInvokeResponse += new UPnPService.UPnPServiceInvokeHandler(HandleInvoke);
        }