private void CancelLayoutChanges() { if (_backup != null) { _settings.RestoreSelectedModel(_backup); _backup = null; } }
// EditLayout: Cancel changes private void EditLayoutDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { // restore model properties from settings _settings.RestoreSelectedModel(_backup); _backup = null; Select(_settings.AppliedModel); }