コード例 #1
0
        private void BtnTool_Click(object sender, EventArgs e)
        {
            frmSearchTool fm = new frmSearchTool();

            //   fm.FormClosed += new FormClosedEventHandler(ShowFormInitialCloseForms);
            OpenFormPanel(fm);
        }
コード例 #2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            frmMessageBoxBack frm = new frmMessageBoxBack();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (flag == 1)
                {
                    reiniciar();
                    frmSearchTool fm = Owner as frmSearchTool;
                    fm.dgvSearch.DataSource = "";
                    fm.btnAddTool.Enabled   = false;
                    this.Close();
                }
                else
                {
                }
            }
        }