Exemplo n.º 1
0
 /// <summary>
 /// Init the control
 /// </summary>
 private void _init()
 {
     StatusManager.AddStatusListenner(this);
     // Handler for loading complete
     this.Loaded += (se, args) => {
         try {
             this._parentWindow = (MainWindow)Window.GetWindow(this);
             if (this._parentWindow != null)
             {
                 this._parentWindow.lblControlLoading.Visibility = System.Windows.Visibility.Hidden;
                 TimelineManager.Update();
             }
         } catch (Exception) {
             // this shouldn't happen
         }
     };
 }
Exemplo n.º 2
0
        /// <summary>
        /// Init the control
        /// </summary>
        private void _init()
        {
            ListCollectionView myCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(gridBase.DataContext);

            myCollectionView.Filter = _filterMoodleAccounts;
            StatusManager.AddStatusListenner(this);
            // Handler for loading complete
            this.Loaded += (se, args) => {
                try {
                    this._parentWindow = (MainWindow)Window.GetWindow(this);
                    if (this._parentWindow != null)
                    {
                        this._parentWindow.lblControlLoading.Visibility = System.Windows.Visibility.Hidden;
                        TimelineManager.Update();
                    }
                } catch (Exception) {
                    // this shouldn't happen
                }
            };
        }