Ich habe dieses C# Plugin
namespace Custom_Query {
public class Plugin: IPlugin {
public Plugin() {
// constructor logic
}
public IPluginHost myHost = null;
public System.Windows.Forms.UserControl myMainInterface = new ctlMain();
public IPluginHost Host {
get {
return myHost;
}
set {
myHost = value;
}
}
public System.Windows.Forms.UserControl MainInterface {
get {
return myMainInterface;
}
}
public void Initialize() {}
public void Dispose() {}
}
}Und dieses UI dazu
namespace Custom_Query {
public class ctlMain: System.Windows.Forms.UserControl {
public ctlMain() {
InitializeComponent();
}
protected override void Dispose(bool disposing) {
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Component Designer generated code
private void InitializeComponent() {
}
#endregion
private void ctlMain_Load(object sender, System.EventArgs e) {
}
private void button1_Click(object sender, EventArgs e) {
this.Host.Feedback("Hello from Plugin 1", this);
}
}
}Wieso kann ich im ctlmain nicht
this.Host.Feedback("Hello from Plugin 1", this); machen?