//Добавление нового уведомления к услуге в БД private void addNotice_Click(object sender, EventArgs e) { try { if (daysBefore.Text == "" || text.Text == "") { MessageBox.Show("Заполните все поля!"); return; } DBConnection.NewNotification(saleID, daysBefore.Text, text.Text); DBConnection.GetNotifications(Form1.requestNum); Notifications.form.notificationsTable.DataSource = DBConnection.dtNotifications; Notifications.notification_row = 0; Form1.form.UpdateNoticesQty(); this.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }