protected override void OnExit(ExitEventArgs e) { base.OnExit(e); ISafeData safeData = new SerialToFileJSON(); safeData.SafeData(DataToSerialaizes); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); AppDataContext = MyViewModel.GetMyViewObj; App.State = AppState.ChosseTrybe; ISafeData safeData = new SerialToFileJSON(); DataToSerialaizes = safeData.GetData(); if (DataToSerialaizes == null) { DataToSerialaizes = new List <DataToSerialaize>(); } }