Exemple #1
0
        private void OnCLEMInitialiseActivity(object sender, EventArgs e)
        {
            this.InitialiseHerd(true, true);

            // link to graze food store type pasture to move to
            // "Not specified" is general yards.
            pastureName = "";
            if (!ManagedPastureName.StartsWith("Not specified"))
            {
                pastureName = ManagedPastureName.Split('.')[1];
            }

            if (PerformAtStartOfSimulation)
            {
                Move();
            }
        }
Exemple #2
0
        private void OnCLEMInitialiseActivity(object sender, EventArgs e)
        {
            this.InitialiseHerd(true, true);

            // link to graze food store type pasture to muster to
            // "Not specified" is general yards.
            pastureName = "";
            if (!ManagedPastureName.StartsWith("Not specified"))
            {
                pastureName = ManagedPastureName.Split('.')[1];
                //Pasture = Resources.GetResourceItem(this, pastureName, OnMissingResourceActionTypes.ReportErrorAndStop, OnMissingResourceActionTypes.ReportErrorAndStop) as GrazeFoodStoreType;
            }

            if (PerformAtStartOfSimulation)
            {
                Muster();
            }
        }