Exemplo n.º 1
0
 private void cToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     panel1.Controls.Clear();
     AddClient control = new AddClient();
     control.Name = "addclient";
     control.Dock = DockStyle.Fill;
     panel1.Controls.Add(control);
 }
Exemplo n.º 2
0
        private void cToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            AddClient control = new AddClient();
            control.Name = "addclient";
            control.Dock = DockStyle.Fill;
            panel1.Controls.Add(control);

            control.addBtnSubmitClickHandler(new EventHandler(SubmitClickHandler));
            control.addBtnCancelClickHandler(new EventHandler(CloseClickHandler));
        }