Esempio n. 1
0
    public void OnKillLeaf(KillLeafType KillLeaf)
    {
        //DateTime Today = DateUtility.JulianDayNumberToDateTime(Convert.ToInt32(MetData.today));
        string Indent = "     ";
        string Title  = Indent + Clock.Today.ToString("d MMMM yyyy") + "  - Killing " + KillLeaf.KillFraction + " of leaves on " + Plant.Name;

        Console.WriteLine("");
        Console.WriteLine(Title);
        Console.WriteLine(Indent + new string('-', Title.Length));

        foreach (LeafCohort L in Leaves)
        {
            L.DoKill(KillLeaf.KillFraction);
        }
    }
Esempio n. 2
0
        private void OnKillLeaf(KillLeafType KillLeaf)
        {
            Summary.WriteMessage(this, "Killing " + KillLeaf.KillFraction + " of leaves on plant");

            foreach (LeafCohort L in Leaves)
                L.DoKill(KillLeaf.KillFraction);
        }