示例#1
0
        private void m_linkLabelReleaseNotes_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var path = FileLocationUtilities.GetFileDistributedWithApplication("ReleaseNotes.md");

            using (var dlg = new ShowReleaseNotesDialog(Icon, path))
                dlg.ShowDialog();
        }
示例#2
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();
            }
        }
示例#3
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();
            }
        }
示例#4
0
        public override void Execute()
        {
            var path = FileLocationUtilities.GetFileDistributedWithApplication("ReleaseNotes.md");

            using (var dlg = new ShowReleaseNotesDialog(System.Windows.Forms.Application.OpenForms.Count > 0 ? System.Windows.Forms.Application.OpenForms[0].Icon : null, path))
            {
                dlg.ShowDialog();
            }
        }
示例#5
0
        private void _releaseNotesMenuItem_Click(object sender, EventArgs e)
        {
            var path = FileLocator.GetFileDistributedWithApplication("ReleaseNotes.md");

            using (var dlg = new ShowReleaseNotesDialog(this.FindForm().Icon, path))
            {
                dlg.ShowDialog();
            }
        }
示例#6
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();
            }
        }
示例#7
0
        private void _trainingVideosMenuItem_Click(object sender, EventArgs e)
        {
            //note: markdown processors pass raw html through unchanged.  Bloom's localization process
            // is designed to produce HTML files, not Markdown files.
            var path = BloomFileLocator.GetBestLocalizableFileDistributedWithApplication(false, "infoPages", "TrainingVideos-en.htm");

            using (var dlg = new ShowReleaseNotesDialog(global::Bloom.Properties.Resources.BloomIcon, path))
            {
                dlg.ApplyMarkdown = false;
                dlg.Text          = LocalizationManager.GetString("HelpMenu.trainingVideos", "Training Videos");
                dlg.ShowDialog();
            }
        }
示例#8
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.
				"                ))
            {
                using (var dlg = new ShowReleaseNotesDialog(SystemIcons.WinLogo, tempFile.Path))
                    dlg.ShowDialog();
            }
        }