Well, one thing we could to is to provide an Action delegate for you to pass to. For example:Kris C wrote: ↑Fri Apr 14, 2023 12:06 pmThere are many different ways you could implement this. DevExpress XtraReports uses an ICommand where I can provide an implementation of an ICommand and provide that for a specific button in their UI. When that button is clicked, it would execute the command provided, in this case mine. Otherwise, it would use its own default command. The basic idea is to provide a hook so a custom code change by a user (i.e. me) is not required.
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
static void DoMyThing()
{
var form = new Form
{
Width = 300,
Height = 300
};
var label = new Label
{
Text = "Hello World"
};
form.Controls.Add(label);
form.StartPosition = FormStartPosition.CenterParent;
form.ShowDialog();
}
ExportEditor.ShowModal(tChart1, DoMyThing);
}
https://steema.com/files/public/support ... 33-00.webm
Is this the kind of thing you had in mind?