Ejemplo n.º 1
0
        private void OnControlLoaded(
            object sender,
            RoutedEventArgs e
            )
        {
            Utilities.Trace(this);

            if (!m_loaded)
            {
                HookChildElements(this.Children);

                if (m_bands.Count > 0 && m_mainBand != null)
                {
                    // we are in silverlight mode, so all bands and urls are specified in
                    // xaml and we can start data load immediately
                    m_isJavascriptMode = false;

                    m_notifier = new DataControlNotifier(m_dataUrls, m_bands);
                    m_notifier.LoadComplete += OnControlAndDataComlete;
                    m_notifier.Start();
                    m_notifier.CheckCompleted();
                }
                else
                {
                    // we will need to wait till Run method is called from javascript
                    m_isJavascriptMode       = true;
                    m_notifier               = new DataControlNotifier();
                    m_notifier.LoadComplete += OnControlAndDataComlete;
                }
                m_loaded = true;
            }

            // Do not remove copyright notice
            AddCopyrightElement();
        }
Ejemplo n.º 2
0
 public void Reload()
 {
     if (m_bands.Count > 0 && MainBand != null)
     {
         m_notifier = new DataControlNotifier(m_bands);
         m_notifier.LoadComplete += OnControlAndDataComlete;
         m_notifier.Start();
         m_notifier.CheckCompleted();
     }
 }
Ejemplo n.º 3
0
        public void Reload(
            )
        {
            if (m_bands.Count > 0 && m_mainBand != null)
            {
                m_isJavascriptMode = false;

                m_notifier = new DataControlNotifier(m_dataUrls, m_bands);
                m_notifier.LoadComplete += OnControlAndDataComlete;
                m_notifier.Start();
                m_notifier.CheckCompleted();
            }
        }
Ejemplo n.º 4
0
        ///
        /// <summary>
        /// Loads data and displays them in the control</summary>
        ///
        public void Run(
            )
        {
            Utilities.Trace(this);

            if (!m_isJavascriptMode)
            {
                throw new Exception("Run method should not be called if you specify timeline in xaml.");
            }

            m_notifier.AddUrls(m_dataUrls);

            m_notifier.Start();
            m_notifier.CheckCompleted();
        }
Ejemplo n.º 5
0
        ///
        /// <summary>
        /// Loads data and displays them in the control</summary>
        ///
        public void Run(
            )
        {
            Utilities.Trace(this);

            if (!m_isJavascriptMode)
            {
                Reload();
            }
            else
            {
                m_notifier.AddUrls(m_dataUrls);

                m_notifier.Start();
                m_notifier.CheckCompleted();
            }
        }
Ejemplo n.º 6
0
        private void OnControlLoaded(object sender, RoutedEventArgs e)
        {
            Utilities.Trace(this);

            if (!m_loaded)
            {
                HookChildElements(this.Children);

                if (m_bands.Count > 0 && MainBand != null)
                {
                    m_notifier = new DataControlNotifier(m_bands);
                    m_notifier.LoadComplete += OnControlAndDataComlete;
                    m_notifier.Start();
                    m_notifier.CheckCompleted();
                }
                m_loaded = true;
            }

            // Do not remove copyright notice
            AddCopyrightElement();
        }
Ejemplo n.º 7
0
        private void OnControlLoaded(
            object                                      sender, 
            RoutedEventArgs                             e
        )
        {

            Utilities.Trace(this);
            
            if (!m_loaded) 
            {
                HookChildElements(this.Children);
        
                if (m_bands.Count > 0 && m_mainBand != null)
                {
                    // we are in silverlight mode, so all bands and urls are specified in 
                    // xaml and we can start data load immediately
                    m_isJavascriptMode = false;

                    m_notifier = new DataControlNotifier(m_dataUrls, m_bands);
                    m_notifier.LoadComplete += OnControlAndDataComlete; 
                    m_notifier.Start();
                    m_notifier.CheckCompleted();
                }
                else
                {
                    // we will need to wait till Run method is called from javascript
                    m_isJavascriptMode = true;
                    m_notifier = new DataControlNotifier();
                    m_notifier.LoadComplete += OnControlAndDataComlete; 
                }
                m_loaded = true;
            }

            // Do not remove copyright notice
            AddCopyrightElement();
        }
Ejemplo n.º 8
0
        public void Reload(
        )
        {
            if (m_bands.Count > 0 && m_mainBand != null)
            {
                m_isJavascriptMode = false;

                m_notifier = new DataControlNotifier(m_dataUrls, m_bands);
                m_notifier.LoadComplete += OnControlAndDataComlete;
                m_notifier.Start();
                m_notifier.CheckCompleted();
            }
        }