Example #1
0
        protected void UpdateViewPanel()
        {
            UserControls.PlanetsVisibilityPanelView opv = null;
            switch (CurrentPlanetGroup)
            {
            case tPlanetsGroup.PG_MAIN:
                opv = pvMain;
                break;

            case tPlanetsGroup.PG_FICTITIOUS:
                opv = pvFict;
                break;

            case tPlanetsGroup.PG_SMALL:
                opv = pvSmall;
                break;
            }
            ;

            if (opv != null)
            {
                GroupMapPlanetsVisibilityCollection gmp = GroupMapPlanetsVisibilityCollectionLst.Where(x => x.PlanetGroup == CurrentPlanetGroup).FirstOrDefault();
                if (gmp != null)
                {
                    opv.MapPlanetsVisibilityCollection = gmp.MapPlanetsVisibilityCollection;
                }
                opv.Refresh();
            }
        }
Example #2
0
        protected void UpdateVisibility(tPlanetsGroup pg, tAstroMapType mt, tPlanetType pt)
        {
            GroupMapPlanetsVisibilityCollection     gmpvc = GroupMapPlanetsVisibilityCollectionLst.Where(x => x.PlanetGroup == pg).First();
            MapPlanetsVisibilityCollectionProcessor proc  = new MapPlanetsVisibilityCollectionProcessor();

            proc.Data = gmpvc.MapPlanetsVisibilityCollection;
            proc.ToggleValue(mt, pt);
        }
Example #3
0
        protected GroupMapPlanetsVisibilityCollection GetCollection(tPlanetsGroup pg)
        {
            GroupMapPlanetsVisibilityCollection gmpvc = GroupMapPlanetsVisibilityCollectionLst.Where(x => x.PlanetGroup == pg).First();

            return(gmpvc);
        }