private void bttnAdd_Click(object sender, EventArgs e) { UIform u = new UIform(); u.Show(); GetDataReal(); GetDataDone(); }
private void insertDataTOGrid(DataGridView needle) { UIform uif = new UIform(); helpingFill hf = new helpingFill(); uif.Show(); if (needle == dataGridViewDone) { uif.bttnZapisz.Enabled = false; uif.bttnEdytuj.Enabled = false; uif.bttnUsun.Enabled = true; uif.bttnZakoncz.Enabled = false; //uif.lblSt.Visible = true; //uif.lblStworzyl.Visible = true; } else { uif.bttnZapisz.Enabled = false; } uif.lblId.Text = needle.SelectedRows[0].Cells[0].Value.ToString(); uif.txtKlient.Text = needle.SelectedRows[0].Cells[1].Value.ToString(); uif.dtPicker.Text = needle.SelectedRows[0].Cells[2].Value.ToString(); uif.txtCena.Text = needle.SelectedRows[0].Cells[3].Value.ToString(); uif.txtModel.Text = needle.SelectedRows[0].Cells[4].Value.ToString(); hf.fComCase(uif, needle.SelectedRows[0].Cells[5].Value.ToString()); uif.txtRozmiar.Text = needle.SelectedRows[0].Cells[6].Value.ToString(); hf.fDisc1Type(uif, needle.SelectedRows[0].Cells[7].Value.ToString()); hf.fDisc1Old(uif, needle.SelectedRows[0].Cells[8].Value.ToString()); uif.txtRozmiar2.Text = needle.SelectedRows[0].Cells[9].Value.ToString(); hf.fDisc2Type(uif, needle.SelectedRows[0].Cells[10].Value.ToString()); hf.fDisc2Old(uif, needle.SelectedRows[0].Cells[11].Value.ToString()); hf.fCD(uif, needle.SelectedRows[0].Cells[12].Value.ToString()); hf.fComSystem(uif, needle.SelectedRows[0].Cells[13].Value.ToString()); hf.fComSystemBit(uif, needle.SelectedRows[0].Cells[14].Value.ToString()); hf.fComSystemB(uif, needle.SelectedRows[0].Cells[15].Value.ToString()); hf.fComSystemHmPr(uif, needle.SelectedRows[0].Cells[16].Value.ToString()); hf.fComSystemOrig(uif, needle.SelectedRows[0].Cells[17].Value.ToString()); uif.txtUwagi.Text = needle.SelectedRows[0].Cells[18].Value.ToString(); uif.txtKGraficzna.Text = needle.SelectedRows[0].Cells[19].Value.ToString(); uif.txtRAM.Text = needle.SelectedRows[0].Cells[20].Value.ToString(); uif.txtMatryca.Text = needle.SelectedRows[0].Cells[21].Value.ToString(); uif.txtKlawiatura.Text = needle.SelectedRows[0].Cells[22].Value.ToString(); hf.fOrder(uif, needle.SelectedRows[0].Cells[23].Value.ToString()); hf.fPayment(uif, needle.SelectedRows[0].Cells[24].Value.ToString()); uif.txtTransport.Text = needle.SelectedRows[0].Cells[25].Value.ToString(); uif.txtInstrukcje.Text = needle.SelectedRows[0].Cells[26].Value.ToString(); //uif.lblStworzyl.Text = needle.SelectedRows[0].Cells[27].Value.ToString(); }