public static void showAs_Add(frmManageProduct.MsgHandler msg) { dbAction = "add"; modRefreshData = msg; frmProductDataEntry f = new frmProductDataEntry(); f.ShowDialog(); }
public static void showAs_Update(frmManageProduct.MsgHandler msg, string[] obj) { dbAction = "update"; modRefreshData = msg; frmProductDataEntry f = new frmProductDataEntry(); f.textBox1.Text = obj[0]; f.textBox2.Text = obj[1]; f.textBox3.Text = obj[2]; f.textBox4.Text = obj[3]; f.textBox5.Text = obj[4]; f.textBox6.Text = obj[5]; f.textBox7.Text = obj[6]; f.textBox8.Text = obj[7]; f.textBox9.Text = obj[8]; f.textBox10.Text = obj[9]; f.textBox1.Enabled = false; f.textBox1.Visible = true; f.label1.Visible = true; f.btnSave.Text = "Update"; f.ShowDialog(); }
public static void showAs_View(frmManageProduct.MsgHandler msg, string[] obj) { modRefreshData = msg; frmProductDataEntry f = new frmProductDataEntry(); f.textBox1.Text = obj[0]; f.textBox2.Text = obj[1]; f.textBox3.Text = obj[2]; f.textBox4.Text = obj[3]; f.textBox5.Text = obj[4]; f.textBox6.Text = obj[5]; f.textBox7.Text = obj[6]; f.textBox8.Text = obj[7]; f.textBox9.Text = obj[8]; f.textBox10.Text = obj[9]; f.textBox1.Enabled = false; f.textBox2.Enabled = false; f.textBox3.Enabled = false; f.textBox4.Enabled = false; f.textBox5.Enabled = false; f.textBox6.Enabled = false; f.textBox7.Enabled = false; f.textBox8.Enabled = false; f.textBox9.Enabled = false; f.textBox10.Enabled = false; f.textBox1.Visible = true; f.label1.Visible = true; f.btnSave.Visible = false; f.btnCancel.Text = "Close"; f.ShowDialog(); }