예제 #1
0
 private void hundleSaveData()
 {
     File.Delete(k_savedDataFile);
     ;           if (settings.ToSaveData())
     {
         WiisyScreenSavedData dataToSave = new WiisyScreenSavedData();
         dataToSave.MainBubbels    = GetMainBubbelsData();
         dataToSave.RepositoryData = settings.GetRepository();
         WiisyScreenUIHelper.WriteToBinaryFile <WiisyScreenSavedData>(k_savedDataFile, dataToSave);
     }
 }
예제 #2
0
 private void initApps()
 {
     if (File.Exists(k_savedDataFile) == false)
     {
         initFirstUse();
         //settings first use???
     }
     else
     {
         WiisyScreenSavedData savedData = WiisyScreenUIHelper.ReadFromBinaryFile <WiisyScreenSavedData>(k_savedDataFile);
         initMainBubbels(savedData.MainBubbels);
         settings.initRepository(savedData.RepositoryData);
     }
 }