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

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