/// <summary> /// Raises the SnaglLoadedEvent /// </summary> private static void RaiseSnaglLoadedEvent() { SnaglLoadedEventArgs args = new SnaglLoadedEventArgs { ExternalResourcesLoaded = true }; // Fire the event that indicates that the graph surface // has fully loaded SnaglEventAggregator.DefaultInstance.GetEvent <SnaglLoadedEvent>().Publish(args); }
/// <summary> /// Raises the SnaglLoadedEvent /// </summary> private static void RaiseSnaglLoadedEvent() { SnaglLoadedEventArgs args = new SnaglLoadedEventArgs { ExternalResourcesLoaded = true }; // Fire the event that indicates that the graph surface // has fully loaded SnaglEventAggregator.DefaultInstance.GetEvent<SnaglLoadedEvent>().Publish(args); }
/// <summary> /// Event handler for handling the SnaglLoaded event /// </summary> /// <param name="args">Any event arguments that might be passed</param> public void SnaglLoadedEventHandler(SnaglLoadedEventArgs args) { if (args.ExternalResourcesLoaded) { _externalResourcesLoaded = args.ExternalResourcesLoaded; } if (args.GraphLoaded) { _graphLoaded = args.GraphLoaded; } if (_externalResourcesLoaded && _graphLoaded && SnaglLoaded != null) { SnaglLoaded(this, EventArgs.Empty); } }
/// <summary> /// Handles the SnaglLoadedEvent /// </summary> /// <param name="args">The arguments for the events</param> public void SnaglLoadedEventHandler(SnaglLoadedEventArgs args) { IsAdvancedSearchVisible = ConfigurationManager.Instance.CurrentConfig.ApplicationMode == ApplicationMode.Evaluation ? true : false; }