/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDnevnikUnos)); this.gbPodaci = new System.Windows.Forms.GroupBox(); this.cbVozilo = new System.Windows.Forms.ComboBox(); this.dsVozila1 = new AutoSkola.DSetovi.dsVozila(); this.cbKategorija = new System.Windows.Forms.ComboBox(); this.dsKategorije1 = new AutoSkola.DSetovi.dsKategorije(); this.cbKandidat = new System.Windows.Forms.ComboBox(); this.dsKandidati1 = new AutoSkola.DSetovi.dsKandidati(); this.cbInstruktor = new System.Windows.Forms.ComboBox(); this.dsInstruktori1 = new AutoSkola.DSetovi.dsInstruktori(); this.lblKandidatID = new System.Windows.Forms.Label(); this.lblInstruktorID = new System.Windows.Forms.Label(); this.DTPdatumObuke = new System.Windows.Forms.DateTimePicker(); this.DTPvrijemeDo = new System.Windows.Forms.DateTimePicker(); this.DTPvrijemeOd = new System.Windows.Forms.DateTimePicker(); this.tbKategorijaID = new System.Windows.Forms.TextBox(); this.lbKategorija = new System.Windows.Forms.Label(); this.lbVrijemeDo = new System.Windows.Forms.Label(); this.tbVoziloID = new System.Windows.Forms.TextBox(); this.lbModel = new System.Windows.Forms.Label(); this.tbInstruktorID = new System.Windows.Forms.TextBox(); this.lbVrijemeOd = new System.Windows.Forms.Label(); this.tbMjestoObuke = new System.Windows.Forms.TextBox(); this.lbMjestoObuke = new System.Windows.Forms.Label(); this.tbKandidatID = new System.Windows.Forms.TextBox(); this.tbMetodskaJedinica = new System.Windows.Forms.TextBox(); this.tbCasID = new System.Windows.Forms.TextBox(); this.lbDatumObuke = new System.Windows.Forms.Label(); this.lbMetodskaJedinica = new System.Windows.Forms.Label(); this.gbOpcije = new System.Windows.Forms.GroupBox(); this.duZatvori = new System.Windows.Forms.Button(); this.duSpasi = new System.Windows.Forms.Button(); this.connDnevnikUnos = new System.Data.SqlClient.SqlConnection(); this.gbPodaci.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dsVozila1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsKategorije1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsKandidati1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInstruktori1)).BeginInit(); this.gbOpcije.SuspendLayout(); this.SuspendLayout(); // // gbPodaci // this.gbPodaci.BackColor = System.Drawing.SystemColors.Control; this.gbPodaci.Controls.Add(this.cbVozilo); this.gbPodaci.Controls.Add(this.cbKategorija); this.gbPodaci.Controls.Add(this.cbKandidat); this.gbPodaci.Controls.Add(this.cbInstruktor); this.gbPodaci.Controls.Add(this.lblKandidatID); this.gbPodaci.Controls.Add(this.lblInstruktorID); this.gbPodaci.Controls.Add(this.DTPdatumObuke); this.gbPodaci.Controls.Add(this.DTPvrijemeDo); this.gbPodaci.Controls.Add(this.DTPvrijemeOd); this.gbPodaci.Controls.Add(this.tbKategorijaID); this.gbPodaci.Controls.Add(this.lbKategorija); this.gbPodaci.Controls.Add(this.lbVrijemeDo); this.gbPodaci.Controls.Add(this.tbVoziloID); this.gbPodaci.Controls.Add(this.lbModel); this.gbPodaci.Controls.Add(this.tbInstruktorID); this.gbPodaci.Controls.Add(this.lbVrijemeOd); this.gbPodaci.Controls.Add(this.tbMjestoObuke); this.gbPodaci.Controls.Add(this.lbMjestoObuke); this.gbPodaci.Controls.Add(this.tbKandidatID); this.gbPodaci.Controls.Add(this.tbMetodskaJedinica); this.gbPodaci.Controls.Add(this.tbCasID); this.gbPodaci.Controls.Add(this.lbDatumObuke); this.gbPodaci.Controls.Add(this.lbMetodskaJedinica); this.gbPodaci.Location = new System.Drawing.Point(15, 13); this.gbPodaci.Name = "gbPodaci"; this.gbPodaci.Size = new System.Drawing.Size(319, 379); this.gbPodaci.TabIndex = 0; this.gbPodaci.TabStop = false; this.gbPodaci.Text = "Unos podataka"; // // cbVozilo // this.cbVozilo.DataSource = this.dsVozila1; this.cbVozilo.DisplayMember = "Vozila.Model"; this.cbVozilo.FormattingEnabled = true; this.cbVozilo.Location = new System.Drawing.Point(138, 303); this.cbVozilo.Name = "cbVozilo"; this.cbVozilo.Size = new System.Drawing.Size(159, 24); this.cbVozilo.TabIndex = 7; // // dsVozila1 // this.dsVozila1.DataSetName = "dsVozila"; this.dsVozila1.Locale = new System.Globalization.CultureInfo("hr-HR"); this.dsVozila1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // cbKategorija // this.cbKategorija.DataSource = this.dsKategorije1; this.cbKategorija.DisplayMember = "Kategorije.Kategorija"; this.cbKategorija.FormattingEnabled = true; this.cbKategorija.Location = new System.Drawing.Point(139, 265); this.cbKategorija.Name = "cbKategorija"; this.cbKategorija.Size = new System.Drawing.Size(158, 24); this.cbKategorija.TabIndex = 6; // // dsKategorije1 // this.dsKategorije1.DataSetName = "dsKategorije"; this.dsKategorije1.Locale = new System.Globalization.CultureInfo("hr-HR"); this.dsKategorije1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // cbKandidat // this.cbKandidat.DataSource = this.dsKandidati1; this.cbKandidat.DisplayMember = "Kandidati.Ime"; this.cbKandidat.FormattingEnabled = true; this.cbKandidat.Location = new System.Drawing.Point(138, 227); this.cbKandidat.Name = "cbKandidat"; this.cbKandidat.Size = new System.Drawing.Size(159, 24); this.cbKandidat.TabIndex = 5; // // dsKandidati1 // this.dsKandidati1.DataSetName = "dsKandidati"; this.dsKandidati1.Locale = new System.Globalization.CultureInfo("hr-HR"); this.dsKandidati1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // cbInstruktor // this.cbInstruktor.DataSource = this.dsInstruktori1; this.cbInstruktor.DisplayMember = "Instruktori.Ime"; this.cbInstruktor.FormattingEnabled = true; this.cbInstruktor.Location = new System.Drawing.Point(139, 341); this.cbInstruktor.Name = "cbInstruktor"; this.cbInstruktor.Size = new System.Drawing.Size(158, 24); this.cbInstruktor.TabIndex = 8; // // dsInstruktori1 // this.dsInstruktori1.DataSetName = "dsInstruktori"; this.dsInstruktori1.Locale = new System.Globalization.CultureInfo("hr-HR"); this.dsInstruktori1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // lblKandidatID // this.lblKandidatID.Location = new System.Drawing.Point(18, 227); this.lblKandidatID.Name = "lblKandidatID"; this.lblKandidatID.Size = new System.Drawing.Size(73, 23); this.lblKandidatID.TabIndex = 62; this.lblKandidatID.Text = "Kandidat:"; this.lblKandidatID.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblInstruktorID // this.lblInstruktorID.Location = new System.Drawing.Point(17, 342); this.lblInstruktorID.Name = "lblInstruktorID"; this.lblInstruktorID.Size = new System.Drawing.Size(76, 23); this.lblInstruktorID.TabIndex = 61; this.lblInstruktorID.Text = "Instruktor:"; this.lblInstruktorID.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // DTPdatumObuke // this.DTPdatumObuke.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.DTPdatumObuke.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.DTPdatumObuke.Location = new System.Drawing.Point(138, 32); this.DTPdatumObuke.Name = "DTPdatumObuke"; this.DTPdatumObuke.Size = new System.Drawing.Size(159, 22); this.DTPdatumObuke.TabIndex = 0; this.DTPdatumObuke.Value = new System.DateTime(2007, 4, 11, 0, 0, 0, 0); // // DTPvrijemeDo // this.DTPvrijemeDo.CustomFormat = "H\':\'mm"; this.DTPvrijemeDo.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.DTPvrijemeDo.Location = new System.Drawing.Point(138, 191); this.DTPvrijemeDo.Name = "DTPvrijemeDo"; this.DTPvrijemeDo.Size = new System.Drawing.Size(159, 22); this.DTPvrijemeDo.TabIndex = 4; // // DTPvrijemeOd // this.DTPvrijemeOd.CustomFormat = "H\':\'mm"; this.DTPvrijemeOd.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.DTPvrijemeOd.Location = new System.Drawing.Point(138, 155); this.DTPvrijemeOd.Name = "DTPvrijemeOd"; this.DTPvrijemeOd.Size = new System.Drawing.Size(159, 22); this.DTPvrijemeOd.TabIndex = 3; this.DTPvrijemeOd.Value = new System.DateTime(2007, 10, 31, 18, 56, 0, 0); // // tbKategorijaID // this.tbKategorijaID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsKategorije1, "Kategorije.KategorijaID", true)); this.tbKategorijaID.Location = new System.Drawing.Point(139, 266); this.tbKategorijaID.Name = "tbKategorijaID"; this.tbKategorijaID.ReadOnly = true; this.tbKategorijaID.Size = new System.Drawing.Size(24, 22); this.tbKategorijaID.TabIndex = 50; this.tbKategorijaID.TabStop = false; // // lbKategorija // this.lbKategorija.Location = new System.Drawing.Point(18, 264); this.lbKategorija.Name = "lbKategorija"; this.lbKategorija.Size = new System.Drawing.Size(88, 23); this.lbKategorija.TabIndex = 53; this.lbKategorija.Text = "Kategorija:"; this.lbKategorija.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbVrijemeDo // this.lbVrijemeDo.Location = new System.Drawing.Point(18, 190); this.lbVrijemeDo.Name = "lbVrijemeDo"; this.lbVrijemeDo.Size = new System.Drawing.Size(88, 23); this.lbVrijemeDo.TabIndex = 48; this.lbVrijemeDo.Text = "Vrijeme Do:"; this.lbVrijemeDo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbVoziloID // this.tbVoziloID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsVozila1, "Vozila.VoziloID", true)); this.tbVoziloID.Location = new System.Drawing.Point(139, 303); this.tbVoziloID.Name = "tbVoziloID"; this.tbVoziloID.ReadOnly = true; this.tbVoziloID.Size = new System.Drawing.Size(24, 22); this.tbVoziloID.TabIndex = 15; this.tbVoziloID.TabStop = false; // // lbModel // this.lbModel.Location = new System.Drawing.Point(18, 301); this.lbModel.Name = "lbModel"; this.lbModel.Size = new System.Drawing.Size(101, 23); this.lbModel.TabIndex = 46; this.lbModel.Text = "Model vozila:"; this.lbModel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbInstruktorID // this.tbInstruktorID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsInstruktori1, "Instruktori.ID", true)); this.tbInstruktorID.Location = new System.Drawing.Point(140, 342); this.tbInstruktorID.Name = "tbInstruktorID"; this.tbInstruktorID.ReadOnly = true; this.tbInstruktorID.Size = new System.Drawing.Size(24, 22); this.tbInstruktorID.TabIndex = 7; this.tbInstruktorID.TabStop = false; // // lbVrijemeOd // this.lbVrijemeOd.Location = new System.Drawing.Point(18, 155); this.lbVrijemeOd.Name = "lbVrijemeOd"; this.lbVrijemeOd.Size = new System.Drawing.Size(88, 23); this.lbVrijemeOd.TabIndex = 36; this.lbVrijemeOd.Text = "Vrijeme Od:"; this.lbVrijemeOd.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbMjestoObuke // this.tbMjestoObuke.Location = new System.Drawing.Point(139, 120); this.tbMjestoObuke.Name = "tbMjestoObuke"; this.tbMjestoObuke.Size = new System.Drawing.Size(159, 22); this.tbMjestoObuke.TabIndex = 2; // // lbMjestoObuke // this.lbMjestoObuke.Location = new System.Drawing.Point(18, 120); this.lbMjestoObuke.Name = "lbMjestoObuke"; this.lbMjestoObuke.Size = new System.Drawing.Size(104, 23); this.lbMjestoObuke.TabIndex = 34; this.lbMjestoObuke.Text = "Mjesto Obuke:"; this.lbMjestoObuke.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tbKandidatID // this.tbKandidatID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsKandidati1, "Kandidati.KandidatID", true)); this.tbKandidatID.Location = new System.Drawing.Point(138, 227); this.tbKandidatID.Name = "tbKandidatID"; this.tbKandidatID.ReadOnly = true; this.tbKandidatID.Size = new System.Drawing.Size(24, 22); this.tbKandidatID.TabIndex = 11; this.tbKandidatID.TabStop = false; // // tbMetodskaJedinica // this.tbMetodskaJedinica.Location = new System.Drawing.Point(139, 67); this.tbMetodskaJedinica.Multiline = true; this.tbMetodskaJedinica.Name = "tbMetodskaJedinica"; this.tbMetodskaJedinica.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.tbMetodskaJedinica.Size = new System.Drawing.Size(159, 40); this.tbMetodskaJedinica.TabIndex = 1; // // tbCasID // this.tbCasID.Location = new System.Drawing.Point(138, 32); this.tbCasID.Name = "tbCasID"; this.tbCasID.ReadOnly = true; this.tbCasID.Size = new System.Drawing.Size(24, 22); this.tbCasID.TabIndex = 0; this.tbCasID.TabStop = false; // // lbDatumObuke // this.lbDatumObuke.Location = new System.Drawing.Point(18, 32); this.lbDatumObuke.Name = "lbDatumObuke"; this.lbDatumObuke.Size = new System.Drawing.Size(88, 23); this.lbDatumObuke.TabIndex = 3; this.lbDatumObuke.Text = "Datum obuke:"; this.lbDatumObuke.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbMetodskaJedinica // this.lbMetodskaJedinica.Location = new System.Drawing.Point(18, 75); this.lbMetodskaJedinica.Name = "lbMetodskaJedinica"; this.lbMetodskaJedinica.Size = new System.Drawing.Size(88, 32); this.lbMetodskaJedinica.TabIndex = 2; this.lbMetodskaJedinica.Text = "Metodska Jedinica:"; this.lbMetodskaJedinica.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // gbOpcije // this.gbOpcije.BackColor = System.Drawing.SystemColors.Control; this.gbOpcije.Controls.Add(this.duZatvori); this.gbOpcije.Controls.Add(this.duSpasi); this.gbOpcije.Location = new System.Drawing.Point(15, 398); this.gbOpcije.Name = "gbOpcije"; this.gbOpcije.Size = new System.Drawing.Size(319, 72); this.gbOpcije.TabIndex = 8; this.gbOpcije.TabStop = false; this.gbOpcije.Text = "Opcije"; // // duZatvori // this.duZatvori.BackColor = System.Drawing.Color.Beige; this.duZatvori.Cursor = System.Windows.Forms.Cursors.Hand; this.duZatvori.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duZatvori.Image = ((System.Drawing.Image)(resources.GetObject("duZatvori.Image"))); this.duZatvori.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duZatvori.Location = new System.Drawing.Point(185, 24); this.duZatvori.Name = "duZatvori"; this.duZatvori.Size = new System.Drawing.Size(112, 32); this.duZatvori.TabIndex = 1; this.duZatvori.Text = " Zatvori"; this.duZatvori.UseVisualStyleBackColor = false; this.duZatvori.Click += new System.EventHandler(this.duZatvori_Click); // // duSpasi // this.duSpasi.BackColor = System.Drawing.Color.Beige; this.duSpasi.Cursor = System.Windows.Forms.Cursors.Hand; this.duSpasi.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duSpasi.Image = ((System.Drawing.Image)(resources.GetObject("duSpasi.Image"))); this.duSpasi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duSpasi.Location = new System.Drawing.Point(30, 24); this.duSpasi.Name = "duSpasi"; this.duSpasi.Size = new System.Drawing.Size(112, 32); this.duSpasi.TabIndex = 0; this.duSpasi.Text = " Spasi"; this.duSpasi.UseVisualStyleBackColor = false; this.duSpasi.Click += new System.EventHandler(this.duSpasi_Click); // // connDnevnikUnos // this.connDnevnikUnos.ConnectionString = "Data Source=(local);Initial Catalog=baza;integrated security=SSPI"; this.connDnevnikUnos.FireInfoMessageEventOnUserErrors = false; // // frmDnevnikUnos // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(350, 480); this.Controls.Add(this.gbOpcije); this.Controls.Add(this.gbPodaci); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.Name = "frmDnevnikUnos"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Unos u dnevnik Obuke"; this.Load += new System.EventHandler(this.frmDnevnikUnos_Load); this.gbPodaci.ResumeLayout(false); this.gbPodaci.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dsVozila1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsKategorije1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsKandidati1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsInstruktori1)).EndInit(); this.gbOpcije.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmVozila)); this.pictureBoxInst = new System.Windows.Forms.PictureBox(); this.gbPretraga = new System.Windows.Forms.GroupBox(); this.duPretraga = new System.Windows.Forms.Button(); this.cbPolje1 = new System.Windows.Forms.ComboBox(); this.tbVrijednost1 = new System.Windows.Forms.TextBox(); this.lbVrijednost1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.cbPolje = new System.Windows.Forms.ComboBox(); this.tbVrijednost = new System.Windows.Forms.TextBox(); this.lbVrijednost = new System.Windows.Forms.Label(); this.lbPolje = new System.Windows.Forms.Label(); this.gbOpcije = new System.Windows.Forms.GroupBox(); this.duOdstampaj = new System.Windows.Forms.Button(); this.duOdaberi = new System.Windows.Forms.Button(); this.duZatvori = new System.Windows.Forms.Button(); this.duIzbrisi = new System.Windows.Forms.Button(); this.duOsvjezi = new System.Windows.Forms.Button(); this.duIzmjeni = new System.Windows.Forms.Button(); this.duNovi = new System.Windows.Forms.Button(); this.connVozila = new System.Data.SqlClient.SqlConnection(); this.daVozila = new System.Data.SqlClient.SqlDataAdapter(); this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand(); this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand(); this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand(); this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand(); this.dsVozila1 = new AutoSkola.DSetovi.dsVozila(); this.dgVozila = new System.Windows.Forms.DataGrid(); this.dgTableStyleVozila = new System.Windows.Forms.DataGridTableStyle(); this.VoziloID = new System.Windows.Forms.DataGridTextBoxColumn(); this.Proizvodjac = new System.Windows.Forms.DataGridTextBoxColumn(); this.Model = new System.Windows.Forms.DataGridTextBoxColumn(); this.Boja = new System.Windows.Forms.DataGridTextBoxColumn(); this.GodinaProizvodnje = new System.Windows.Forms.DataGridTextBoxColumn(); this.RegistarskiBroj = new System.Windows.Forms.DataGridTextBoxColumn(); this.Motor = new System.Windows.Forms.DataGridTextBoxColumn(); this.OstaliDetalji = new System.Windows.Forms.DataGridTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxInst)).BeginInit(); this.gbPretraga.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.gbOpcije.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dsVozila1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dgVozila)).BeginInit(); this.SuspendLayout(); // // pictureBoxInst // this.pictureBoxInst.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxInst.Image"))); this.pictureBoxInst.Location = new System.Drawing.Point(-1, 0); this.pictureBoxInst.Name = "pictureBoxInst"; this.pictureBoxInst.Size = new System.Drawing.Size(786, 32); this.pictureBoxInst.TabIndex = 8; this.pictureBoxInst.TabStop = false; // // gbPretraga // this.gbPretraga.Controls.Add(this.duPretraga); this.gbPretraga.Controls.Add(this.cbPolje1); this.gbPretraga.Controls.Add(this.tbVrijednost1); this.gbPretraga.Controls.Add(this.lbVrijednost1); this.gbPretraga.Controls.Add(this.label2); this.gbPretraga.Controls.Add(this.pictureBox1); this.gbPretraga.Controls.Add(this.cbPolje); this.gbPretraga.Controls.Add(this.tbVrijednost); this.gbPretraga.Controls.Add(this.lbVrijednost); this.gbPretraga.Controls.Add(this.lbPolje); this.gbPretraga.Location = new System.Drawing.Point(10, 358); this.gbPretraga.Name = "gbPretraga"; this.gbPretraga.Size = new System.Drawing.Size(604, 114); this.gbPretraga.TabIndex = 7; this.gbPretraga.TabStop = false; this.gbPretraga.Text = " Pretraga"; // // duPretraga // this.duPretraga.BackColor = System.Drawing.Color.Beige; this.duPretraga.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duPretraga.Image = ((System.Drawing.Image)(resources.GetObject("duPretraga.Image"))); this.duPretraga.Location = new System.Drawing.Point(544, 43); this.duPretraga.Name = "duPretraga"; this.duPretraga.Size = new System.Drawing.Size(44, 44); this.duPretraga.TabIndex = 14; this.duPretraga.UseVisualStyleBackColor = false; this.duPretraga.Click += new System.EventHandler(this.duPretraga_Click); // // cbPolje1 // this.cbPolje1.Items.AddRange(new object[] { "Proizvodjac", "Model", "Boja", "GodinaProizvodnje", "RegistarskiBroj", "Motor" }); this.cbPolje1.Location = new System.Drawing.Point(120, 72); this.cbPolje1.Name = "cbPolje1"; this.cbPolje1.Size = new System.Drawing.Size(136, 24); this.cbPolje1.TabIndex = 11; this.cbPolje1.Text = "Model"; this.cbPolje1.SelectedValueChanged += new System.EventHandler(this.cbPolje1_SelectedValueChanged); // // tbVrijednost1 // this.tbVrijednost1.Location = new System.Drawing.Point(404, 75); this.tbVrijednost1.Name = "tbVrijednost1"; this.tbVrijednost1.Size = new System.Drawing.Size(128, 22); this.tbVrijednost1.TabIndex = 13; this.tbVrijednost1.TextChanged += new System.EventHandler(this.tbVrijednost1_TextChanged); // // lbVrijednost1 // this.lbVrijednost1.Location = new System.Drawing.Point(270, 75); this.lbVrijednost1.Name = "lbVrijednost1"; this.lbVrijednost1.Size = new System.Drawing.Size(132, 24); this.lbVrijednost1.TabIndex = 12; this.lbVrijednost1.Text = "Model vozila:"; // // label2 // this.label2.Location = new System.Drawing.Point(8, 75); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(112, 24); this.label2.TabIndex = 10; this.label2.Text = "Odaberite polje 2:"; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(8, -1); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(24, 22); this.pictureBox1.TabIndex = 4; this.pictureBox1.TabStop = false; // // cbPolje // this.cbPolje.Items.AddRange(new object[] { "Proizvodjac", "Model", "Boja", "GodinaProizvodnje", "RegistarskiBroj", "Motor" }); this.cbPolje.Location = new System.Drawing.Point(120, 32); this.cbPolje.Name = "cbPolje"; this.cbPolje.Size = new System.Drawing.Size(136, 24); this.cbPolje.TabIndex = 0; this.cbPolje.Text = "Proizvodjac"; this.cbPolje.SelectedValueChanged += new System.EventHandler(this.cbPolje_SelectedValueChanged); // // tbVrijednost // this.tbVrijednost.Location = new System.Drawing.Point(404, 35); this.tbVrijednost.Name = "tbVrijednost"; this.tbVrijednost.Size = new System.Drawing.Size(128, 22); this.tbVrijednost.TabIndex = 1; this.tbVrijednost.TextChanged += new System.EventHandler(this.tbVrijednost_TextChanged); // // lbVrijednost // this.lbVrijednost.Location = new System.Drawing.Point(270, 35); this.lbVrijednost.Name = "lbVrijednost"; this.lbVrijednost.Size = new System.Drawing.Size(132, 24); this.lbVrijednost.TabIndex = 1; this.lbVrijednost.Text = "Proizvodjac:"; // // lbPolje // this.lbPolje.Location = new System.Drawing.Point(8, 35); this.lbPolje.Name = "lbPolje"; this.lbPolje.Size = new System.Drawing.Size(112, 24); this.lbPolje.TabIndex = 0; this.lbPolje.Text = "Odaberite polje 1:"; // // gbOpcije // this.gbOpcije.Controls.Add(this.duOdstampaj); this.gbOpcije.Controls.Add(this.duOdaberi); this.gbOpcije.Controls.Add(this.duZatvori); this.gbOpcije.Controls.Add(this.duIzbrisi); this.gbOpcije.Controls.Add(this.duOsvjezi); this.gbOpcije.Controls.Add(this.duIzmjeni); this.gbOpcije.Controls.Add(this.duNovi); this.gbOpcije.Location = new System.Drawing.Point(628, 36); this.gbOpcije.Name = "gbOpcije"; this.gbOpcije.Size = new System.Drawing.Size(136, 280); this.gbOpcije.TabIndex = 6; this.gbOpcije.TabStop = false; this.gbOpcije.Text = "Opcije"; // // duOdstampaj // this.duOdstampaj.BackColor = System.Drawing.Color.Beige; this.duOdstampaj.Cursor = System.Windows.Forms.Cursors.Hand; this.duOdstampaj.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duOdstampaj.Image = ((System.Drawing.Image)(resources.GetObject("duOdstampaj.Image"))); this.duOdstampaj.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duOdstampaj.Location = new System.Drawing.Point(12, 192); this.duOdstampaj.Name = "duOdstampaj"; this.duOdstampaj.Size = new System.Drawing.Size(112, 32); this.duOdstampaj.TabIndex = 6; this.duOdstampaj.Text = " Odštampaj"; this.duOdstampaj.UseVisualStyleBackColor = false; this.duOdstampaj.Click += new System.EventHandler(this.duOdstampaj_Click); // // duOdaberi // this.duOdaberi.BackColor = System.Drawing.Color.Beige; this.duOdaberi.Cursor = System.Windows.Forms.Cursors.Hand; this.duOdaberi.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duOdaberi.Image = ((System.Drawing.Image)(resources.GetObject("duOdaberi.Image"))); this.duOdaberi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duOdaberi.Location = new System.Drawing.Point(12, 192); this.duOdaberi.Name = "duOdaberi"; this.duOdaberi.Size = new System.Drawing.Size(112, 32); this.duOdaberi.TabIndex = 4; this.duOdaberi.Text = " Odaberi"; this.duOdaberi.UseVisualStyleBackColor = false; this.duOdaberi.Click += new System.EventHandler(this.duOdaberi_Click); // // duZatvori // this.duZatvori.BackColor = System.Drawing.Color.Beige; this.duZatvori.Cursor = System.Windows.Forms.Cursors.Hand; this.duZatvori.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duZatvori.Image = ((System.Drawing.Image)(resources.GetObject("duZatvori.Image"))); this.duZatvori.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duZatvori.Location = new System.Drawing.Point(12, 232); this.duZatvori.Name = "duZatvori"; this.duZatvori.Size = new System.Drawing.Size(112, 32); this.duZatvori.TabIndex = 5; this.duZatvori.Text = " Zatvori"; this.duZatvori.UseVisualStyleBackColor = false; this.duZatvori.Click += new System.EventHandler(this.duZatvori_Click); // // duIzbrisi // this.duIzbrisi.BackColor = System.Drawing.Color.Beige; this.duIzbrisi.Cursor = System.Windows.Forms.Cursors.Hand; this.duIzbrisi.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duIzbrisi.Image = ((System.Drawing.Image)(resources.GetObject("duIzbrisi.Image"))); this.duIzbrisi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duIzbrisi.Location = new System.Drawing.Point(12, 152); this.duIzbrisi.Name = "duIzbrisi"; this.duIzbrisi.Size = new System.Drawing.Size(112, 32); this.duIzbrisi.TabIndex = 3; this.duIzbrisi.Text = "Izbriši"; this.duIzbrisi.UseVisualStyleBackColor = false; this.duIzbrisi.Click += new System.EventHandler(this.duIzbrisi_Click); // // duOsvjezi // this.duOsvjezi.BackColor = System.Drawing.Color.Beige; this.duOsvjezi.Cursor = System.Windows.Forms.Cursors.Hand; this.duOsvjezi.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duOsvjezi.Image = ((System.Drawing.Image)(resources.GetObject("duOsvjezi.Image"))); this.duOsvjezi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duOsvjezi.Location = new System.Drawing.Point(12, 112); this.duOsvjezi.Name = "duOsvjezi"; this.duOsvjezi.Size = new System.Drawing.Size(112, 32); this.duOsvjezi.TabIndex = 2; this.duOsvjezi.Text = " Osvježi"; this.duOsvjezi.UseVisualStyleBackColor = false; this.duOsvjezi.Click += new System.EventHandler(this.duOsvjezi_Click); // // duIzmjeni // this.duIzmjeni.BackColor = System.Drawing.Color.Beige; this.duIzmjeni.Cursor = System.Windows.Forms.Cursors.Hand; this.duIzmjeni.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duIzmjeni.Image = ((System.Drawing.Image)(resources.GetObject("duIzmjeni.Image"))); this.duIzmjeni.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duIzmjeni.Location = new System.Drawing.Point(12, 72); this.duIzmjeni.Name = "duIzmjeni"; this.duIzmjeni.Size = new System.Drawing.Size(112, 32); this.duIzmjeni.TabIndex = 1; this.duIzmjeni.Text = " Izmjeni"; this.duIzmjeni.UseVisualStyleBackColor = false; this.duIzmjeni.Click += new System.EventHandler(this.duIzmjeni_Click); // // duNovi // this.duNovi.BackColor = System.Drawing.Color.Beige; this.duNovi.Cursor = System.Windows.Forms.Cursors.Hand; this.duNovi.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.duNovi.Image = ((System.Drawing.Image)(resources.GetObject("duNovi.Image"))); this.duNovi.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.duNovi.Location = new System.Drawing.Point(12, 32); this.duNovi.Name = "duNovi"; this.duNovi.Size = new System.Drawing.Size(112, 32); this.duNovi.TabIndex = 0; this.duNovi.Text = " Dodaj novi"; this.duNovi.UseVisualStyleBackColor = false; this.duNovi.Click += new System.EventHandler(this.duNovi_Click); // // connVozila // this.connVozila.ConnectionString = "Data Source=(local);Initial Catalog=baza;integrated security=SSPI"; this.connVozila.FireInfoMessageEventOnUserErrors = false; // // daVozila // this.daVozila.DeleteCommand = this.sqlDeleteCommand1; this.daVozila.InsertCommand = this.sqlInsertCommand1; this.daVozila.SelectCommand = this.sqlSelectCommand1; this.daVozila.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] { new System.Data.Common.DataTableMapping("Table", "Vozila", new System.Data.Common.DataColumnMapping[] { new System.Data.Common.DataColumnMapping("VoziloID", "VoziloID"), new System.Data.Common.DataColumnMapping("Proizvodjac", "Proizvodjac"), new System.Data.Common.DataColumnMapping("Model", "Model"), new System.Data.Common.DataColumnMapping("Boja", "Boja"), new System.Data.Common.DataColumnMapping("GodinaProizvodnje", "GodinaProizvodnje"), new System.Data.Common.DataColumnMapping("RegistarskiBroj", "RegistarskiBroj"), new System.Data.Common.DataColumnMapping("Motor", "Motor"), new System.Data.Common.DataColumnMapping("OstaliDetalji", "OstaliDetalji") }) }); this.daVozila.UpdateCommand = this.sqlUpdateCommand1; // // sqlDeleteCommand1 // this.sqlDeleteCommand1.CommandText = resources.GetString("sqlDeleteCommand1.CommandText"); this.sqlDeleteCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { new System.Data.SqlClient.SqlParameter("@Original_VoziloID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "VoziloID", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Boja", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Boja", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_GodinaProizvodnje", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "GodinaProizvodnje", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Model", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Model", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Motor", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Motor", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_OstaliDetalji", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "OstaliDetalji", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Proizvodjac", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Proizvodjac", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_RegistarskiBroj", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "RegistarskiBroj", System.Data.DataRowVersion.Original, null) }); // // sqlInsertCommand1 // this.sqlInsertCommand1.CommandText = resources.GetString("sqlInsertCommand1.CommandText"); this.sqlInsertCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { new System.Data.SqlClient.SqlParameter("@Proizvodjac", System.Data.SqlDbType.VarChar, 50, "Proizvodjac"), new System.Data.SqlClient.SqlParameter("@Model", System.Data.SqlDbType.VarChar, 50, "Model"), new System.Data.SqlClient.SqlParameter("@Boja", System.Data.SqlDbType.VarChar, 50, "Boja"), new System.Data.SqlClient.SqlParameter("@GodinaProizvodnje", System.Data.SqlDbType.VarChar, 50, "GodinaProizvodnje"), new System.Data.SqlClient.SqlParameter("@RegistarskiBroj", System.Data.SqlDbType.VarChar, 50, "RegistarskiBroj"), new System.Data.SqlClient.SqlParameter("@Motor", System.Data.SqlDbType.VarChar, 50, "Motor"), new System.Data.SqlClient.SqlParameter("@OstaliDetalji", System.Data.SqlDbType.VarChar, 50, "OstaliDetalji") }); // // sqlSelectCommand1 // this.sqlSelectCommand1.CommandText = "SELECT VoziloID, Proizvodjac, Model, Boja, GodinaProizvodnje, RegistarskiBroj, Mo" + "tor, OstaliDetalji FROM Vozila ORDER BY VoziloID"; // // sqlUpdateCommand1 // this.sqlUpdateCommand1.CommandText = resources.GetString("sqlUpdateCommand1.CommandText"); this.sqlUpdateCommand1.Parameters.AddRange(new System.Data.SqlClient.SqlParameter[] { new System.Data.SqlClient.SqlParameter("@Proizvodjac", System.Data.SqlDbType.VarChar, 50, "Proizvodjac"), new System.Data.SqlClient.SqlParameter("@Model", System.Data.SqlDbType.VarChar, 50, "Model"), new System.Data.SqlClient.SqlParameter("@Boja", System.Data.SqlDbType.VarChar, 50, "Boja"), new System.Data.SqlClient.SqlParameter("@GodinaProizvodnje", System.Data.SqlDbType.VarChar, 50, "GodinaProizvodnje"), new System.Data.SqlClient.SqlParameter("@RegistarskiBroj", System.Data.SqlDbType.VarChar, 50, "RegistarskiBroj"), new System.Data.SqlClient.SqlParameter("@Motor", System.Data.SqlDbType.VarChar, 50, "Motor"), new System.Data.SqlClient.SqlParameter("@OstaliDetalji", System.Data.SqlDbType.VarChar, 50, "OstaliDetalji"), new System.Data.SqlClient.SqlParameter("@Original_VoziloID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "VoziloID", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Boja", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Boja", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_GodinaProizvodnje", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "GodinaProizvodnje", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Model", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Model", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Motor", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Motor", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_OstaliDetalji", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "OstaliDetalji", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_Proizvodjac", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "Proizvodjac", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@Original_RegistarskiBroj", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "RegistarskiBroj", System.Data.DataRowVersion.Original, null), new System.Data.SqlClient.SqlParameter("@VoziloID", System.Data.SqlDbType.Int, 4, "VoziloID") }); // // dsVozila1 // this.dsVozila1.DataSetName = "dsVozila"; this.dsVozila1.Locale = new System.Globalization.CultureInfo("hr-HR"); this.dsVozila1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // dgVozila // this.dgVozila.DataMember = ""; this.dgVozila.DataSource = this.dsVozila1.Vozila; this.dgVozila.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dgVozila.Location = new System.Drawing.Point(10, 42); this.dgVozila.Name = "dgVozila"; this.dgVozila.ReadOnly = true; this.dgVozila.Size = new System.Drawing.Size(604, 302); this.dgVozila.TabIndex = 9; this.dgVozila.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] { this.dgTableStyleVozila }); this.dgVozila.DoubleClick += new System.EventHandler(this.dgVozila_DoubleClick); // // dgTableStyleVozila // this.dgTableStyleVozila.DataGrid = this.dgVozila; this.dgTableStyleVozila.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] { this.VoziloID, this.Proizvodjac, this.Model, this.Boja, this.GodinaProizvodnje, this.RegistarskiBroj, this.Motor, this.OstaliDetalji }); this.dgTableStyleVozila.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dgTableStyleVozila.MappingName = "Vozila"; // // VoziloID // this.VoziloID.Format = ""; this.VoziloID.FormatInfo = null; this.VoziloID.HeaderText = "VoziloID"; this.VoziloID.MappingName = "VoziloID"; this.VoziloID.Width = 0; // // Proizvodjac // this.Proizvodjac.Format = ""; this.Proizvodjac.FormatInfo = null; this.Proizvodjac.HeaderText = "Proizvodjac"; this.Proizvodjac.MappingName = "Proizvodjac"; this.Proizvodjac.Width = 80; // // Model // this.Model.Format = ""; this.Model.FormatInfo = null; this.Model.HeaderText = "Model"; this.Model.MappingName = "Model"; this.Model.Width = 75; // // Boja // this.Boja.Format = ""; this.Boja.FormatInfo = null; this.Boja.HeaderText = "Boja"; this.Boja.MappingName = "Boja"; this.Boja.Width = 70; // // GodinaProizvodnje // this.GodinaProizvodnje.Format = ""; this.GodinaProizvodnje.FormatInfo = null; this.GodinaProizvodnje.HeaderText = "Godina Proizvodnje"; this.GodinaProizvodnje.MappingName = "GodinaProizvodnje"; this.GodinaProizvodnje.Width = 125; // // RegistarskiBroj // this.RegistarskiBroj.Format = ""; this.RegistarskiBroj.FormatInfo = null; this.RegistarskiBroj.HeaderText = "Registarski Broj"; this.RegistarskiBroj.MappingName = "RegistarskiBroj"; this.RegistarskiBroj.Width = 105; // // Motor // this.Motor.Format = ""; this.Motor.FormatInfo = null; this.Motor.HeaderText = "Motor"; this.Motor.MappingName = "Motor"; this.Motor.Width = 65; // // OstaliDetalji // this.OstaliDetalji.Format = ""; this.OstaliDetalji.FormatInfo = null; this.OstaliDetalji.HeaderText = "Ostali Detalji"; this.OstaliDetalji.MappingName = "OstaliDetalji"; this.OstaliDetalji.Width = 95; // // frmVozila // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(777, 484); this.Controls.Add(this.dgVozila); this.Controls.Add(this.pictureBoxInst); this.Controls.Add(this.gbPretraga); this.Controls.Add(this.gbOpcije); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(785, 524); this.Name = "frmVozila"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Vozila"; this.Load += new System.EventHandler(this.frmVozila_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxInst)).EndInit(); this.gbPretraga.ResumeLayout(false); this.gbPretraga.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.gbOpcije.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dsVozila1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dgVozila)).EndInit(); this.ResumeLayout(false); }