internal void Initialize() { if (!initialized) { if (!Server.OfflineMode) { //Looking for a better place to do this PropertyRoute.SetFindImplementationsCallback(Navigator.FindImplementations); } EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotFocusEvent, new RoutedEventHandler(TextBox_GotFocus)); TaskNormalWindow += TaskSetIconNormalWindow; TaskNormalWindow += TaskSetLabelNormalWindow; if (Initializing != null) { Initializing(); } initialized = true; } }
static Schema() { PropertyRoute.SetFindImplementationsCallback(pr => Schema.Current.FindImplementations(pr)); ModifiableEntity.SetIsRetrievingFunc(() => EntityCache.HasRetriever); }