private void vozilaDataGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = this.vozilaDataGridView.Rows[e.RowIndex]; this.ime_vlasnikaTextBox.Text = row.Cells[1].Value.ToString(); this.prezime_vlasnikaTextBox.Text = row.Cells[2].Value.ToString(); this.kontaktTextBox.Text = row.Cells[3].Value.ToString(); this.voziloTextBox.Text = row.Cells[4].Value.ToString(); this.registracijaTextBox.Text = row.Cells[5].Value.ToString(); v = new Vozilo(Int32.Parse(row.Cells[0].Value.ToString()), this.ime_vlasnikaTextBox.Text, this.prezime_vlasnikaTextBox.Text, this.kontaktTextBox.Text, this.voziloTextBox.Text, this.registracijaTextBox.Text); } }
//H:\Documents\Faks\9. semestar\Računarski praktikum 3\Projekt\Servis\RP3_projekt //C:\Users\marko\Documents\GitHub\AutoServis\RP3_projekt\RP3_projekt //private SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=H:\Documents\Faks\9. semestar\Računarski praktikum 3\Projekt\Servis\RP3_projekt\BazaPodataka.mdf;Integrated Security=True"); #region Load public NalogRadov(Vozilo v, Zaposlenik z) { radnik = z; voz = v; InitializeComponent(); }
//H:\Documents\Faks\9. semestar\Računarski praktikum 3\Projekt\Servis\RP3_projekt //C:\Users\marko\Documents\GitHub\Servis\RP3_projekt //private SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=H:\Documents\Faks\9. semestar\Računarski praktikum 3\Projekt\Servis\RP3_projekt\BazaPodataka.mdf;Integrated Security=True"); #region Load public NalogZaposlenik(Vozilo v) { voz = v; InitializeComponent(); }