private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedIndex >= 0) { SelectedMethod = listBox1.Items[listBox1.SelectedIndex] as VplMethodPointer; buttonOK.Enabled = true; } else { buttonOK.Enabled = false; } }
private void buttonAdd_Click(object sender, EventArgs e) { EnumMethodWebUsage webuse = EnumMethodWebUsage.Server; if (_runatwebclient) { webuse = EnumMethodWebUsage.Client; } MethodClass mc = _root.CreateNewMethodFixParams(webuse, _paramTypes, _pnames, buttonAdd.ClientRectangle, this); if (mc != null) { SelectedMethod = new VplMethodPointer(mc.MethodID, mc.MethodName); this.DialogResult = DialogResult.OK; } }
public void SwitchEventHandler(string eventName, VplMethodPointer handler) { }