예제 #1
0
 private void LinkRSeguro_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     LinkRSeguro.LinkColor = Color.DarkBlue;
     if (rs == null)
     {
         rs           = new Registro_Seguros();
         rs.MdiParent = this;
         this.splitPrincipal.Panel2.Controls.Add(rs);
         rs.FormClosed += new FormClosedEventHandler(Rs_FormClosed);
         rs.Show();
         rs.Size = new Size(600, 320);
     }
     else
     {
         rs.Activate();
     }
 }
예제 #2
0
 private void Rs_FormClosed(object sender, FormClosedEventArgs e)
 {
     rs = null;
     LinkRSeguro.LinkColor = Color.White;
 }