Exemplo n.º 1
0
        /// <summary>
        /// Empty data context is used when the from is loaded without ID (the from is in "insert mode")
        /// </summary>
        public RegionDataContext GetEmptyDataContext(out string error)
        {
            RegionDataContext dataContext = new RegionDataContext();

            error = null;
            dataContext.modelNotifiedForRegionMain = new ModelNotifiedForRegion();;
            return(dataContext);
        }
Exemplo n.º 2
0
        public RegionDataContext GetDataContext(int RegionID, out string error)
        {
            RegionDataContext dataContext = new RegionDataContext();

            error = null;
            dataContext.modelNotifiedForRegionMain = GetRegionByID(RegionID, out error);


            return(dataContext);
        }