private void button2_Click(object sender, EventArgs e)
        {
            frmAddPergunta frmAP = new frmAddPergunta();

            frmAP.Size     = Size;
            frmAP.Location = Location;
            Hide();
            frmAP.ShowDialog();
            this.Size = frmAP.Size;
            Location  = frmAP.Location;
            Show();
        }
Exemplo n.º 2
0
        private void OpenAddPergunta_EditMode(object sender, EventArgs e)
        {
            frmAddPergunta frmAP = new frmAddPergunta((sender as Label).Name);

            frmAP.Size     = Size;
            frmAP.Location = Location;
            Hide();
            frmAP.ShowDialog();
            this.Size = frmAP.Size;
            Location  = frmAP.Location;
            Show();
            UpdateTable();
        }