Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form_Contacts form_contacts = new Form_Contacts("Member");

            form_contacts.ShowDialog();
            textbox_contact.Text = form_contacts.selectedContactId.ToString();
        }
        private void btn_contact_publisher_Click(object sender, EventArgs e)
        {
            Form_Contacts form_contacts = new Form_Contacts("Publisher");

            form_contacts.ShowDialog();
            //var current_row = FunctionsClass.GetCurrentRowIndex(dgv_publishers);
            //dgv_publishers.Rows[current_row].Cells["contact_id"].Value = form_contacts.selectedContactId;
            //dgv_publishers.Rows[current_row + 1].Cells["contact_id"].Selected = false;
            //dgv_publishers.CurrentCell = dgv_publishers.Rows[current_row + 1].Cells["name"];
            //dgv_publishers.BeginEdit(true);
        }