Exemplo n.º 1
0
 public void CloseDisplay()
 {
     if (ShowForm == null)
     {
         return;
     }
     ShowForm.Close();
     ShowForm.Dispose();
     ShowForm = null;
 }
Exemplo n.º 2
0
 public void DisplayData(Panel displayPanel)
 {
     CloseDisplay();
     ShowForm          = new StudentCardForm();
     ShowForm.TopLevel = false;
     ShowForm.Parent   = displayPanel;
     ShowForm.NewCard  = this;
     ShowForm.Height   = displayPanel.Height;
     ShowForm.Width    = displayPanel.Width;
     ShowForm.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     ShowForm.Show();
 }