void exp_Unloaded(object sender, IsoFileExplorerEventArgs e) { if (!e.Status.Equals(IsoFileExplorerStatus.Cancelled)) { IsoFileExplorerUI exp = (IsoFileExplorerUI)sender; if (exp.Mode == IsoFileExplorerMode.Load) { if (exp.FileLocation == FileLocation.IsolatedStorage) { LoadFromIsolatedStorage(exp.FileName); } else if (exp.FileLocation == FileLocation.Assembly) { LoadFromAssembly(exp.FileName); } } else { IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream fileStream = file.CreateFile(exp.FileName); sudoku.SaveNewSudoku(fileStream); } } tip.Child = null; tip.IsOpen = false; }
private void IsoLaden_Click(object sender, RoutedEventArgs e) { IsoFileExplorerUI ife = new IsoFileExplorerUI(IsoFileExplorerMode.Load); ife.OnUnloaded += new IsoFileExplorerUI.Unload(exp_Unloaded); tip.Child = ife; tip.IsOpen = true; }
private void Opslaan_Click(object sender, RoutedEventArgs e) { IsoFileExplorerUI exp = new IsoFileExplorerUI(IsoFileExplorerMode.Save); exp.OnUnloaded += new IsoFileExplorerUI.Unload(exp_Unloaded); tip.Child = exp; tip.IsOpen = true; }