private void mnuNew_Click(object sender, EventArgs e)
        {
            FrmVendorInfor ChildForm = new FrmVendorInfor("New", 0, Source1);

            ChildForm.ShowDialog();
            //if (Source1 == "STAFF")
            LoadLvList(strQryMain);
            //else
            //    LoadLvList("");
        }
 private void dGrid_DoubleClick(object sender, EventArgs e)
 {
     if (mnuEdit.Enabled == true)
     {
         FrmVendorInfor ChildForm = new FrmVendorInfor("Edit", ReturnCode, Source1);
         ChildForm.ShowDialog();
         //if (Source1 == "STAFF")
         LoadLvList(strQryMain);
         //else
         //    LoadLvList("");
     }
 }
        private void mnuBrowse_Click(object sender, EventArgs e)
        {
            FrmVendorInfor ChildForm = new FrmVendorInfor("Browse", ReturnCode, Source1);

            ChildForm.ShowDialog();
            if (Source1 == "STAFF")
            {
                LoadLvList(strQryMain);
            }
            else
            {
                LoadLvList("");
            }
        }