Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
        /// <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);
            }
        }
Beispiel #4
0
 /// <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;
 }