Exemple #1
0
 protected RDMPSingleControlTab(RefreshBus refreshBus)
 {
     refreshBus.Subscribe(this);
     FormClosed += (s, e) => refreshBus.Unsubscribe(this);
 }
Exemple #2
0
 /// <summary>
 /// Creates instance and sets <see cref="Control"/> to <paramref name="c"/>.  You
 /// will still need to add and Dock the control etc yourself
 /// </summary>
 /// <param name="refreshBus"></param>
 /// <param name="c"></param>
 public RDMPSingleControlTab(RefreshBus refreshBus, Control c)
 {
     refreshBus.Subscribe(this);
     FormClosed += (s, e) => refreshBus.Unsubscribe(this);
     Control     = c;
 }