public static void showAs_Update(frmManageCustomer.MsgHandler msg, string[] obj) { dbAction = "update"; modRefreshData = msg; frmCustomerDataEntry f = new frmCustomerDataEntry(); 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.textBox11.Text = obj[10]; f.textBox1.Enabled = false; f.textBox1.Visible = true; f.label1.Visible = true; f.btnSave.Text = "Update"; f.ShowDialog(); }
public static void showAs_Add(frmManageCustomer.MsgHandler msg) { dbAction = "add"; modRefreshData = msg; frmCustomerDataEntry f = new frmCustomerDataEntry(); f.ShowDialog(); }
public static void showAs_View(frmManageCustomer.MsgHandler msg, string[] obj) { modRefreshData = msg; frmCustomerDataEntry f = new frmCustomerDataEntry(); 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.textBox11.Text = obj[10]; f.textBox1.ReadOnly = true; f.textBox2.ReadOnly = true; f.textBox3.ReadOnly = true; f.textBox4.ReadOnly = true; f.textBox5.ReadOnly = true; f.textBox6.ReadOnly = true; f.textBox7.ReadOnly = true; f.textBox8.ReadOnly = true; f.textBox9.ReadOnly = true; f.textBox10.ReadOnly = true; f.textBox11.ReadOnly = true; f.textBox1.Visible = true; f.label1.Visible = true; f.btnSave.Visible = false; f.btnCancel.Text = "Close"; f.ShowDialog(); }