private void OnCLEMInitialiseResource(object sender, EventArgs e) { // look for a shuffler shuffler = Apsim.Children(this, typeof(RainfallShuffler)).FirstOrDefault() as RainfallShuffler; }
private void OnCLEMInitialiseResource(object sender, EventArgs e) { // look for a shuffler shuffler = this.FindAllChildren <RainfallShuffler>().FirstOrDefault() as RainfallShuffler; }