public async Task <SavedData> Load() { LoadSaveDataDialog d = new LoadSaveDataDialog { Path = SavedDataPath }; Grid.SetColumn(d, MainWindow.PAGES_COLUMN_INDEX); MainWindow.Instance.Paths.Children.Add(d); return(await d.Select()); }
public async Task <SavedData> Load() { loadDialog = new LoadSaveDataDialog { Path = SavedDataPath }; Grid.SetColumn(loadDialog, MainWindow.PAGES_COLUMN_INDEX); Panel.SetZIndex(loadDialog, 2); MainWindow.Instance.Paths.Children.Add(loadDialog); SavedData selected = await loadDialog.Select(); loadDialog = null; return(selected); }