コード例 #1
0
 private void OnOpenSampleForm_Click(object sender, EventArgs e)
 {
     using (var f = new SampleForm())
     {
         f.ShowDialog();
     }
 }
コード例 #2
0
 /// <summary>
 /// On specific link click handle it here.
 /// </summary>
 private static void OnLinkClicked(object sender, HtmlLinkClickedEventArgs e)
 {
     if (e.Link == "SayHello")
     {
         MessageBox.Show("Hello you!");
         e.Handled = true;
     }
     else if (e.Link == "ShowSampleForm")
     {
         using (var f = new SampleForm())
         {
             f.ShowDialog();
             e.Handled = true;
         }
     }
 }