in src/AccessibilityInsights.SharedUx/Controls/SettingsTabs/ApplicationSettingsControl.xaml.cs [141:225]
public bool IsConfigurationChanged(ConfigurationModel config)
{
if (config == null)
throw new ArgumentNullException(nameof(config));
if (config.HotKeyForActivatingMainWindow != (string)this.btnHotkeyActivateWindow.Content)
{
return true;
}
if (config.HotKeyForRecord != (string)this.btnHotkeyRecord.Content)
{
return true;
}
if (config.HotKeyForPause != (string)this.btnHotkeyPause.Content)
{
return true;
}
if (config.HotKeyForSnap != (string)this.btnHotkeyToggle.Content)
{
return true;
}
if (config.HotKeyForMoveToParent != (string)this.btnHotkeyToParent.Content)
{
return true;
}
if (config.HotKeyForMoveToPreviousSibling != (string)this.btnHotkeyToBefore.Content)
{
return true;
}
if (config.HotKeyForMoveToNextSibling != (string)this.btnHotekyToNext.Content)
{
return true;
}
if (config.HotKeyForMoveToFirstChild != (string)this.btnHotkeyToFirstChild.Content)
{
return true;
}
if (config.HotKeyForMoveToLastChild != (string)this.btnTHotkeyoLastChild.Content)
{
return true;
}
if (config.SelectionByFocus != this.DataContextVM.SelectionByFocus)
{
return true;
}
if (config.SelectionByMouse != this.DataContextVM.SelectionByMouse)
{
return true;
}
// make sure that text is parsable.
int milsec;
var conv = int.TryParse(this.tbMouseDelay.Text, out milsec);
if (conv == true && config.MouseSelectionDelayMilliSeconds != milsec)
{
return true;
}
if (config.AlwaysOnTop != this.DataContextVM.AlwaysOnTop)
{
return true;
}
if (config.EnableTelemetry != this.DataContextVM.EnableTelemetry)
{
return true;
}
if (config.PlayScanningSound != (this.DataContextVM.PlayScanningSound))
{
return true;
}
if (config.HighlighterMode != (HighlighterMode)(this.DataContextVM.HighlighterMode))
{
return true;
}
if (config.FontSize != (FontSize)(this.DataContextVM.FontSize))
{
return true;
}
if (ctrlChannelConfig.GetConfigChanged(config))
{
return true;
}
return false;
}