private void yesbut_Click(object sender, EventArgs e) { int id = Convert.ToInt32(textBox2.Text); try { DeleterStyle(connection, id, "`rezume`", "`User` =", "`soiskateli`", "`id_users` ="); string sql = "DELETE FROM `soiskateli` WHERE `soiskateli`.`id_users` = " + id.ToString(); connection.Close(); OpenServer(); MySqlCommand command2 = new MySqlCommand(sql, connection); command2.ExecuteReader(); MessageBox.Show("Собеседование назначено!", "Отлично!", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); } catch { MessageBox.Show("ОШИБКА!", "ПЛОХО!", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } RefresherOrb(); Add.Show(); Refresh.Show(); Take.Show(); Otmena.Hide(); textBox2.Hide(); yesbut.Hide(); label.Hide(); }
private void Otmena_Click(object sender, EventArgs e) { Add.Show(); Refresh.Show(); Take.Show(); Otmena.Hide(); textBox2.Hide(); yesbut.Hide(); label.Hide(); }