예제 #1
0
 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;
 }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }