Ejemplo n.º 1
0
 public TelaPrincipal()
 {
     InitializeComponent();
     FormMensagens           = new Mensagens();
     FormMensagens.MdiParent = this;
     FormMensagens.SincronizarAutomaticamente();
     FormMensagens.Show();
 }
Ejemplo n.º 2
0
 private async void btnMensagens_Click(object sender, EventArgs e)
 {
     InvisibleAllWindowsChid();
     if (FormMensagens == null)
     {
         FormMensagens           = new Mensagens();
         FormMensagens.MdiParent = this;
         FormMensagens.Show();
     }
     else
     {
         FormMensagens.WindowState = FormWindowState.Maximized;
         FormMensagens.Visible     = true;
     }
 }