示例#1
0
 private void _releaseNotesMenuItem_Click(object sender, EventArgs e)
 {
     var path = FileLocator.GetFileDistributedWithApplication("ReleaseNotes.md");
     using (var dlg = new ShowReleaseNotesDialog(global::Bloom.Properties.Resources.BloomIcon, path))
     {
         dlg.ShowDialog();
     }
 }
示例#2
0
 private void _trainingVideosMenuItem_Click(object sender, EventArgs e)
 {
     var path = BloomFileLocator.GetBestLocalizableFileDistributedWithApplication(false, "infoPages", "TrainingVideos-en.md");
     //enhance: change the name of this class in SIL.Windows.Forms to just "MarkDownDialog"
     using(var dlg = new ShowReleaseNotesDialog(global::Bloom.Properties.Resources.BloomIcon, path))
     {
         dlg.Text = LocalizationManager.GetString("HelpMenu.trainingVideos", "Training Videos");
         dlg.ShowDialog();
     }
 }
示例#3
0
        private void OnShowReleaseNotesClicked(object sender, EventArgs e)
        {
            using (var tempFile = new TempFile(@"
            Release Notes Dialog
            ====================

            This dialog takes a [markdown](http://en.wikipedia.org/wiki/Markdown) file
            and displays it as HTML.

            ## 2.0
            * change one
            * change two
            ## 1.9
            * big change
              + little change
              - other little change
            ## 1.8

            * oldest change
                "))
            {
                using (var dlg = new ShowReleaseNotesDialog(SystemIcons.WinLogo, tempFile.Path))
                    dlg.ShowDialog();
            }
        }