예제 #1
0
 public frmMapTimes(ref SimulatonManager inSimManager, ref MapSwapTrigger tmpMst, String mMapType)
     : this(ref inSimManager)
 {
     myMST             = tmpMst;
     lblTimeInstr.Text = "Set time for " + mMapType + " map.";
     lblYear.Text      = myMST.YearGrp.ToString();
     lblSeason.Text    = myMST.SeasonGrp.ToString();
     lblDay.Text       = myMST.DayGrp.ToString();
 }
예제 #2
0
 public frmMapSelectForm(ref SimulatonManager inSimManager, ref MapSwapTrigger mst, String mMapType, string mapPath) : this()
 {
     lblMapType.Text = mMapType;
     mapType         = mMapType;
     mMst            = mst;
     mySimManager    = inSimManager;
     myMapManager    = MapManager.GetUniqueInstance();
     this.ofdCommon.InitialDirectory = mapPath;
 }
예제 #3
0
        public frmMapTimes(ref SimulatonManager sm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterParent;
            //         this.dateTimePicker1.Visible = false;

            this.mySimManager = sm;
        }
예제 #4
0
        public YearlyForm(string mapType, ref SimulatonManager sm, string description) : this()
        {
            this.mySimManager = sm;
            mMapType          = mapType;
            mapDescription    = description;
            switch (mapType)
            {
            case "Social":
                myMaps = myMapManager.mySocialMaps;
                break;

            case "Food":
                myMaps = myMapManager.myFoodMaps;
                break;

            case "Risk":
                myMaps = myMapManager.myPredationMaps;
                break;

            case "Predation":
                myMaps = myMapManager.myPredationMaps;
                break;

            case "Move":
                myMaps = myMapManager.myMoveMaps;
                break;

            case "Dispersal":
                myMaps = myMapManager.myDispersalMaps;
                break;

            default:
                break;
            }
            mapPath    = myMaps.MyPath;
            this.Text += " for " + mapType + " maps";
        }
예제 #5
0
 public frmMapSelectForm(string mapType, string mapPath, ref SimulatonManager inSimManager) : this()
 {
     this.ofdCommon.Title            = "Browse for " + mapType + " MapManager";
     this.ofdCommon.InitialDirectory = mapPath;
     mySimManager = inSimManager;
 }