Esempio n. 1
0
        private void PrepareOperationCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Cancelled == false &&
                e.Error == null)
            {
                ejsCourseDocument[] documents =
                    e.Result as ejsCourseDocument[];
                if (documents != null)
                {
                    ObservableCourseDocumentList l =
                        App.Current.Resources["CompleteCourseDocumentsList"] as ObservableCourseDocumentList;

                    l.Clear();

                    for (int i = 0; i < documents.Length; i++)
                    {
                        l.Add(documents[i]);
                    }
                }
            }

            this.IsStageReady = true;
            this._isStageBusy = false;

            this.RaiseAsyncOperationCompletedEvent();
        }
Esempio n. 2
0
        private void UpdateData()
        {
            this.IsStageReady = false;
            ObservableCourseDocumentList l =
                App.Current.Resources["CompleteCourseDocumentsList"] as ObservableCourseDocumentList;

            l.Clear();
            this.PrepareStage();
        }