예제 #1
0
        private void ShowServiceDetails(object sender, EventArgs e)
        {
            int rowID = Convert.ToInt32(ShowServices.selectedRow.Cells["id"].Value.ToString());
            SerwisUrzadzenia su;

            using (InzynierkaDBEntities db = new InzynierkaDBEntities())
            {
                su = su = db.SerwisUrzadzenia.Where(x => x.serwis_id == rowID).First();
            }

            ShowService f = new ShowService(su);

            f.ShowDialog();
        }