private void addActionMenuItem_Click(object sender, System.EventArgs e)
        {
            if (upnpService == null) return;

            ActionEditForm actionEditForm = new ActionEditForm(upnpService);
            DialogResult r = actionEditForm.ShowDialog(this);
            if (r == DialogResult.OK)
            {
                UPnPAction act = actionEditForm.Action;
                upnpService.AddMethod(act);
                updateUserInterface();
            }
        }
        private void actionListView_DoubleClick(object sender, System.EventArgs e)
        {
            UPnPService ts;
            if (upnpService == null) return;

            if (actionListView.SelectedItems.Count == 1)
            {
                UPnPAction act = (UPnPAction)actionListView.SelectedItems[0].Tag;
                ts = (UPnPService)upnpService.Clone();
                ActionEditForm actionEditForm = new ActionEditForm(ts);
                actionEditForm.Action = ts.GetAction(act.Name);
                DialogResult r = actionEditForm.ShowDialog(this);
                if (r == DialogResult.OK)
                {
                    upnpService.RemoveMethod(act);
                    act = actionEditForm.Action;
                    upnpService.AddMethod(actionEditForm.Action);
                    updateUserInterface();
                }
            }
        }