private static Control recursiveFind(Control parent, string id) { Control control = parent.FindControl(id); if (control != null) { return(control); } foreach (Control parent2 in parent.Controls) { control = HMSNavigator.recursiveFind(parent2, id); if (control != null) { return(control); } } return(null); }
private Control findCalendar(string id) { if (string.IsNullOrEmpty(id)) { return(null); } Control control = HMSNavigator.recursiveFind(this.NamingContainer, id); if (control is HMSCalendar) { return(control); } if (control is HMSMonth) { return(control); } if (control is HMSScheduler) { return(control); } throw new ArgumentException("The control specified in BoundHMSID is not a bindable HMS control."); }
internal JsInitNavigator(HMSNavigator calendar) { this._calendar = calendar; }