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

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

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