ShowStyles() private method

private ShowStyles ( ) : void
return void
示例#1
0
 void HandleButtonOkClicked(object sender, EventArgs e)
 {
     ApplyStyle(colorSheme);
     try {
         colorSheme.Save(fileName);
         panel.ShowStyles();
     } catch (Exception ex) {
         MessageService.ShowException(ex);
     }
 }
示例#2
0
 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();
 }