private void butAdd_Click(object sender, EventArgs e) { connectBD_user.Close(); Avans_Pay_T avans = new Avans_Pay_T(); avans.ShowDialog(); Init(); }
private void butEdit_Click(object sender, EventArgs e) { connectBD_user.Close(); if (EID != null) { connectBD_user.Close(); Avans_Pay_T avans = new Avans_Pay_T(EID); avans.ShowDialog(); Init(); } else { MessageBox.Show("Сначала выбирите строку"); } }