Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 private async static System.Threading.Tasks.Task AddStylesheet()
 {
     await MarkdownMargin.CreateStylesheet();
 }
Ejemplo n.º 3
0
        private void HasStylesheet(object sender, System.EventArgs e)
        {
            OleMenuCommand menuCommand = sender as OleMenuCommand;

            menuCommand.Enabled = !File.Exists(MarkdownMargin.GetCustomStylesheetFilePath());
        }
Ejemplo n.º 4
0
        private void HasHtmlTemplate(object sender, System.EventArgs e)
        {
            OleMenuCommand menuCommand = sender as OleMenuCommand;

            menuCommand.Enabled = !File.Exists(MarkdownMargin.GetCustomSolutionHtmlTemplateFilePath());
        }
Ejemplo n.º 5
0
 private async static System.Threading.Tasks.Task AddHtmlTemplate()
 {
     await MarkdownMargin.CreateHtmlTemplate();
 }
Ejemplo n.º 6
0
 private static void AddStylesheet()
 {
     MarkdownMargin.CreateStylesheet();
 }