예제 #1
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();
			}
		}
예제 #2
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();
     }
 }