Example #1
0
 private void RefreshList(NewAccountWindow wnd)
 {
     while (wnd.Dispatcher.Invoke(() => { return(wnd.IsLoaded); }))
     {
     }
     Load();
 }
Example #2
0
        private async void CreateButton_Click(object sender, RoutedEventArgs e)
        {
            var newAccountWindow = new NewAccountWindow();

            newAccountWindow.Show();
            await Task.Run(() => RefreshList(newAccountWindow));
        }