Example #1
0
        private void panel4_click(object sender, EventArgs e)
        {
            Karnet_popup karnet_Popup = new Karnet_popup();

            karnet_Popup.Show();

            using (JippProjEntities jippProjEntities = new JippProjEntities())
            {
                Opis_Karnety karnet = jippProjEntities.Opis_Karnety.Single(a => a.ID == 4);

                karnet_Popup.KPlab2.Text = karnet.Ulga;
                karnet_Popup.KPlab3.Text = karnet.Opis;
            };
        }
Example #2
0
        private void panel6_click(object sender, EventArgs e)
        {
            Trener_popup trener_Popup = new Trener_popup();

            trener_Popup.Show();

            using (JippProjEntities jippProjEntities = new JippProjEntities())
            {
                Opis_Trenerzy trener = jippProjEntities.Opis_Trenerzy.Single(a => a.ID == 6);

                trener_Popup.TPlab1.Text = trener.Imie;
                trener_Popup.TPlab2.Text = trener.Nazwisko;
                trener_Popup.TPlab3.Text = trener.Opis;
            };
        }
Example #3
0
        private void panel5_click(object sender, EventArgs e)
        {
            Stanowiska_popup stanowiska_Popup = new Stanowiska_popup();

            stanowiska_Popup.Show();

            using (JippProjEntities jippProjEntities = new JippProjEntities())
            {
                Opis_Stanowiska stanowiska = jippProjEntities.Opis_Stanowiska.Single(a => a.ID == 5);

                stanowiska_Popup.SPlab1.Text = stanowiska.Kulochwyt;
                stanowiska_Popup.SPlab2.Text = stanowiska.Odleglosc_tarcz.ToString();
                stanowiska_Popup.SPlab3.Text = stanowiska.Opis;
            };
        }
Example #4
0
        private void panel1_click(object sender, EventArgs e)
        {
            Bron_popup bronPopup = new Bron_popup();

            bronPopup.Show();

            using (JippProjEntities jippProjEntities = new JippProjEntities()) {
                Opis_Bron bron = jippProjEntities.Opis_Bron.Single(a => a.Id == 1);

                bronPopup.BPlab1.Text = bron.Producent;
                bronPopup.BPlab2.Text = bron.Model;
                bronPopup.BPlab3.Text = bron.Typ;
                bronPopup.BPlab4.Text = bron.Kaliber;
                bronPopup.BPlab5.Text = bron.Opis;
            };
        }