Just create 5 events; raise each event where your placeholders are. For example.
public event System.EventHandler StartingInitialization;
public event System.EventHandler StartedInitialization;
protected override void BeginInit() {
if (StartingInitialization != null)
StartingInitialization(this, new System.EventArgs());
base.BeginInit();
if (StartedInitialization != null)
StartedInitialization(this, new System.EventArgs());
}
Consider using custom event arguments by sub-classing
System.EventArgs
.
See, for example:
Using Events and Delegates in C#[
^],
Events and event handling in C#[
^].
—SA