private void SettingsDialog()
{
var vis = new AppVisualSettings();
vis.GetBrushes();
vis.BackgroundUrl = CustomBackgroundUrl;
if (String.IsNullOrEmpty(vis.BackgroundUrl))
vis.BackgroundUrl = BackgroundUrl;
vis.PropertyChanged += (s, e) =>
{
if (e.PropertyName == "BackgroundUrl")
{
CustomBackgroundUrl = vis.BackgroundUrl;
}
};
var sw = new SettingsWindow();
sw.DataContext = vis;
sw.ShowDialog();
}