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(); }
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; }
public frmMapTimes(ref SimulatonManager sm) { // // Required for Windows Form Designer support // InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; // this.dateTimePicker1.Visible = false; this.mySimManager = sm; }
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"; }
public frmMapSelectForm(string mapType, string mapPath, ref SimulatonManager inSimManager) : this() { this.ofdCommon.Title = "Browse for " + mapType + " MapManager"; this.ofdCommon.InitialDirectory = mapPath; mySimManager = inSimManager; }