Esempio n. 1
0
        //Удаление выбранного уведомления
        private void delNoticeBtn_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Подтвердите удаление.", "Удаление", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); //диалоговое окно

            if (result == DialogResult.OK)
            {
                DBConnection.DeleteNotification(notificationsTable.Rows[notification_row].Cells[4].Value.ToString());
                DBConnection.GetNotifications(Form1.requestNum);
                notificationsTable.DataSource = DBConnection.dtNotifications;
                notification_row = 0;

                Form1.form.UpdateNoticesQty();
            }
        }