Esempio n. 1
0
        public DetailsForms(SzwalniaEntities1 db, String employeeLastName)
        {
            InitializeComponent();
            Pracownicy employee = db.Pracownicy.Where(pracownik => pracownik.Nazwisko == employeeLastName).First();

            lblTitle.Text    = employee.Imie.TrimEnd() + " " + employee.Nazwisko;
            txtName.Text     = employee.Imie;
            txtLastName.Text = employee.Nazwisko;
            textPesel.Text   = employee.Pesel;
            txtAddress.Text  = employee.Adres;
        }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     btnClose.Enabled = false;
     db = new SzwalniaEntities1();
 }