/// <summary> /// Load settings. /// </summary> /// <param name="storage">Settings storage.</param> public void Load(SettingsStorage storage) { if (_alertSchema == null) { return; } var alertSettings = storage.GetValue <SettingsStorage>("AlertSchema"); if (alertSettings != null) { _alertSchema.Load(alertSettings); } TryRegisterAlertSchema(); IsChecked = _alertSchema.AlertType != null; }