Beispiel #1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            DataGridViewRow delete_row = CustomerDataGridView.Rows[indexrow];

            db.print_informations.DeleteOnSubmit(db.print_informations.Single(p => p.id == Convert.ToInt16(delete_row.Cells[0].Value)));
            db.SubmitChanges();
            DetailsUI fr = new DetailsUI();

            fr.Show();
            this.Close();
            // LoadCustomerList();
        }
        private void btnCustomerView_Click(object sender, EventArgs e)
        {
            DetailsUI frm = new DetailsUI();

            frm.Show();
        }