Exemple #1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            indigeneListCache = new List <Indigene>();

            if (!dataLoaded)
            {
                TaskFactory tf = new TaskFactory();
                tf.StartNew(() => {
                    this.Dispatcher.Invoke((Action)(() => {
                        loadData();
                        parentWindow.HideDialog();
                    }));
                });
                parentWindow.setHeaderTitle(controlTitle);
                parentWindow.ShowDialog("Loading data...", false);
            }

            indigeneEditForm = new IndigeneEditFormControl(parentWindow, this);
        }
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     parentWindow.setHeaderTitle(controlTitle);
 }