Пример #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;
         }
     }
 }
Пример #3
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;
         }
     }
 }
Пример #4
0
 private void OnOpenSampleForm_Click(object sender, EventArgs e)
 {
     using (var f = new SampleForm())
     {
         f.ShowDialog();
     }
 }