Exemplo n.º 1
0
 public virtual void OpenForm(Form mdiParent = null)
 {
     Create();
     ChildForm.MdiParent = mdiParent;
     ChildForm.Show();
     StageStatusChanged?.Invoke(this, StageStatus.OpenedForm);
 }
Exemplo n.º 2
0
 public virtual void Dispose()
 {
     CloseForm();
     StageStatusChanged?.Invoke(this, StageStatus.Disposed);
 }
Exemplo n.º 3
0
 public virtual void CloseForm()
 {
     ChildForm?.Close();
     StageStatusChanged?.Invoke(this, StageStatus.ClosedForm);
 }
Exemplo n.º 4
0
 public virtual void Create()
 {
     Dispose();
     StageStatusChanged?.Invoke(this, StageStatus.Created);
 }