コード例 #1
0
        private void LinkRDepartamentos_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LinkRDepartamentos.LinkColor = Color.DarkBlue;
            if (rd == null)
            {
                rd           = new Registro_Departamentos();
                rd.MdiParent = this;

                this.splitPrincipal.Panel2.Controls.Add(rd);
                rd.FormClosed += new FormClosedEventHandler(Rd_FormClosed);
                rd.Show();
                rd.Size = new Size(600, 320);
            }
            else
            {
                rd.Activate();
            }
        }
コード例 #2
0
 private void Rd_FormClosed(object sender, FormClosedEventArgs e)
 {
     rd = null;
     LinkRDepartamentos.LinkColor = Color.White;
 }