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); } }
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); } }