private void dgvSpendings_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            int id = int.Parse(dgvSpendings.CurrentRow.Cells[0].Value.ToString());

            if (e.ColumnIndex == 5)
            {
                if (MessageBox.Show($"¿Seguro que desea eliminar {dgvSpendings.CurrentRow.Cells[1].Value}?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
                {
                    Spending model = db.Spendings.Where(x => x.SpendingID == id).FirstOrDefault();
                    var      entry = db.Entry(model);
                    if (entry.State == EntityState.Unchanged)
                    {
                        db.Spendings.Remove(model);
                        db.SaveChanges();
                        Filldgv();
                    }
                }
            }

            if (e.ColumnIndex == 4)
            {
                Spending model = db.Spendings.Where(x => x.SpendingID == id).FirstOrDefault();
                Visible = false;
                frmAddSpending edit = new frmAddSpending(model);
                edit.ShowDialog();
                Filldgv();
                Visible = true;
            }
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Visible = false;
            frmAddSpending add = new frmAddSpending(null);

            add.ShowDialog();
            Filldgv();
            Visible = true;
        }