Esempio n. 1
0
        private void toolStripAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (BsfGlobal.FindPermission("Location-Add") == false)
            {
                MessageBox.Show("No Rights to Location-Add");
                return;
            }



            frmCityEntry CityEntry = new frmCityEntry();

            if (CityEntry.Execute(0, m_tCity) == true)
            {
                PopulateGrid();
            }
        }
Esempio n. 2
0
        private void toolStripEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (BsfGlobal.FindPermission("Location-Edit") == false)
            {
                MessageBox.Show("No Rights to Location-Edit");
                return;
            }



            int          lCityID   = Convert.ToInt32(TransView.GetRowCellValue(TransView.FocusedRowHandle, "CityId"));
            frmCityEntry CityEntry = new frmCityEntry();

            if (CityEntry.Execute(lCityID, m_tCity) == true)
            {
                PopulateGrid();
            }
        }