void HandleButtonOkClicked(object sender, EventArgs e) { ApplyStyle(colorSheme); try { colorSheme.Save(fileName); panel.ShowStyles(); } catch (Exception ex) { MessageService.ShowException(ex); } }
void HandleButtonOkClicked(object sender, EventArgs e) { ApplyStyle(colorSheme); try { if (fileName.EndsWith(".vssettings", StringComparison.Ordinal)) { System.IO.File.Delete(fileName); fileName += "Style.json"; } colorSheme.Save(fileName); panel.ShowStyles(); } catch (Exception ex) { MessageService.ShowException(ex); } RefreshAllColors(); }