private void button1_Click(object sender, EventArgs e) { FRM_ADD_PRODUCT frm = new FRM_ADD_PRODUCT(); frm.fl = 2; frm.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { try { FRM_ADD_PRODUCT frm = new FRM_ADD_PRODUCT(); // frm.txtID.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); frm.txtCode.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); frm.txtName.Text = this.dataGridView1.CurrentRow.Cells[1].Value.ToString(); frm.txtDec.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString(); frm.txtCost.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString(); frm.txtPrice.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString(); // frm.txtReorderLevel.Text = this.dataGridView1.CurrentRow.Cells[6].Value.ToString(); // frm.txtTarget.Text = this.dataGridView1.CurrentRow.Cells[7].Value.ToString(); frm.txtQte.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString(); // frm.CheckDescount.Checked = Convert.ToBoolean(this.dataGridView1.CurrentRow.Cells[9].Value.ToString()); // frm.txtReorderQte.Text = this.dataGridView1.CurrentRow.Cells[10].Value.ToString(); frm.txtCat.Text = this.dataGridView1.CurrentRow.Cells[6].Value.ToString(); // frm.cmbsupp.SelectedValue = Convert.ToInt32( this.dataGridView1.CurrentRow.Cells[7].Value.ToString()); frm.txtCode.ReadOnly = true; frm.Text = "BADALKA : " + this.dataGridView1.CurrentRow.Cells[1].Value.ToString(); frm.btnOk.Text = "CUSBOONEESIIN"; frm.State = "update"; //frm.txtID.ReadOnly = true; /* * byte[] image = (byte[])prd.GET_IMAGE_PRDUCT(this.dataGridView1.CurrentRow.Cells[0].Value.ToString()).Rows[0][0]; * MemoryStream ms = new MemoryStream(image); * frm.pbox.Image = Image.FromStream(ms);*/ frm.fl = 2; frm.ShowDialog(); } catch { return; } }
private void kuDarAgabCusubToolStripMenuItem_Click(object sender, EventArgs e) { FRM_ADD_PRODUCT frm = new FRM_ADD_PRODUCT(); frm.ShowDialog(); }