private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
private const string CURRENT_FILLUP_KEY = "CurrentFillup" ; private const string HAS_UNSAVED_CHANGES_KEY = "HasUnsavedChanges" ; private Fillup currentFillup; private bool hasUnsavedChanges; protected override void OnNavigatedFrom(NavigationEventArgs e) { base .OnNavigatedFrom(e); if (cacheChanges) { CommitTextBoxes(); this .State[CURRENT_FILLUP_KEY] = currentFillup; this .State[HAS_UNSAVED_CHANGES_KEY] = hasUnsavedChanges; } } protected override void OnNavigatedTo(NavigationEventArgs e) { base .OnNavigatedTo(e); CarHeader.DataContext = CarDataStore.Car; DataContext = currentFillup = State.ContainsKey(CURRENT_FILLUP_KEY) ? (Fillup) this .State[CURRENT_FILLUP_KEY] : new Fillup() { Date = DateTime .Now }; hasUnsavedChanges = State.ContainsKey(HAS_UNSAVED_CHANGES_KEY) ? ( bool )State[HAS_UNSAVED_CHANGES_KEY] : false ; } * This source code was highlighted with Source Code Highlighter .
Source: https://habr.com/ru/post/118459/
All Articles