private void cmdbrand_Click(object sender, EventArgs e) { if (Gvar._SuperUserid == 1) { Gvar.frm_priv = "111"; } else { Gvar.frm_priv = "100"; // MdiParent.mnubrand.Tag.ToString(); } Gvar.Gind = 8; Form childForm = new FrmBrand(); // childForm.MdiParent = MDIParent1.ActiveForm; //childForm.Text = "Window " + childFormNumber++; childForm.Text = "Customer Category Entry Screen"; childForm.ShowDialog(); sql = "select Cus_cat_Code,Cus_Cat_Name from Veh_Cus_Category "; SqlDataAdapter ada2 = new SqlDataAdapter(sql, Conn); DataTable dt2 = new DataTable("Veh_Cus_Category"); ada2.Fill(dt2); cmbcat.DisplayMember = "Cus_Cat_Name"; cmbcat.ValueMember = "Cus_cat_Code"; cmbcat.DataSource = dt2; }
private void toolStripMenuItem27_Click(object sender, EventArgs e) { if (Gvar._SuperUserid == 1) { Gvar.frm_priv = "111"; } else { Gvar.frm_priv = mnuAreaMaster.Tag.ToString(); } Gvar.Gind = 3; Form childForm = new FrmBrand(); childForm.MdiParent = this; //childForm.Text = "Window " + childFormNumber++; childForm.Text = "Area/Location Master Entry Screen"; childForm.Show(); }
private void mnudept_Click(object sender, EventArgs e) { if (Gvar._SuperUserid == 1) { Gvar.frm_priv = "111"; } else { Gvar.frm_priv = mnubrand.Tag.ToString(); } Gvar.Gind = 2; Form childForm = new FrmBrand(); childForm.MdiParent = this; //childForm.Text = "Window " + childFormNumber++; childForm.Text = "Departmemnt Entry Screen"; childForm.Show(); }