private void HasStylesheet(object sender, System.EventArgs e) { OleMenuCommand menuCommand = sender as OleMenuCommand; bool fileExist = File.Exists(MarkdownMargin.GetCustomStylesheetFilePath()); var projects = ProjectHelpers.GetAllProjects(); menuCommand.Enabled = projects.Any() && !fileExist; }
private async static System.Threading.Tasks.Task AddStylesheet() { await MarkdownMargin.CreateStylesheet(); }
private void HasStylesheet(object sender, System.EventArgs e) { OleMenuCommand menuCommand = sender as OleMenuCommand; menuCommand.Enabled = !File.Exists(MarkdownMargin.GetCustomStylesheetFilePath()); }
private void HasHtmlTemplate(object sender, System.EventArgs e) { OleMenuCommand menuCommand = sender as OleMenuCommand; menuCommand.Enabled = !File.Exists(MarkdownMargin.GetCustomSolutionHtmlTemplateFilePath()); }
private async static System.Threading.Tasks.Task AddHtmlTemplate() { await MarkdownMargin.CreateHtmlTemplate(); }
private static void AddStylesheet() { MarkdownMargin.CreateStylesheet(); }