private void btn_uninstall_Click(object sender, EventArgs e) { ExtensionListControl parent = Parent.Parent as ExtensionListControl; if (parent == null) { return; } parent.OnUninstallExtension(this); }
private void btn_conf_Click(object sender, EventArgs e) { ExtensionListControl parent = Parent.Parent as ExtensionListControl; if (parent == null) { return; } parent.OnConfigureExtension(this); }
private void testToolStripMenuItem_Click(object sender, EventArgs e) { ToolStripMenuItem menu = sender as ToolStripMenuItem; ExtensionListControl parent = Parent.Parent as ExtensionListControl; if (parent == null) { return; } parent.OnInstallExtension(this, menu.Tag as PackageClass); }