private void btn_cautare_Click(object sender, EventArgs e) { using (Form_Cautare frm_cautare = new Form_Cautare()) { frm_cautare.ShowDialog(); } }
//public string CCurent_user //{ // get { return Curent_user; } // set { Curent_user = value; } //} private void btn_cautare_Click(object sender, EventArgs e) { using (Form_Cautare frm_cautare = new Form_Cautare()) { frm_cautare.ShowDialog(); if (frm_cautare.Dgv != null) { dataGridView1.DataSource = frm_cautare.Dgv.ToList(); } } }