예제 #1
0
 private void label1_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         _pause = true;
         BrowserForm bf = new BrowserForm();
         if (e.Button == MouseButtons.Left)
         {
             bf.OpenUrl(_diggStory.url);
         }
         else
         {
             bf.OpenUrl(_diggStory.diggUrl.Replace("digg.com", "duggmirror.com"));
         }
         bf.Show();
         bf.FormClosed += new FormClosedEventHandler(bf_FormClosed);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, "Unhandled error opening a browser: " + ex.Message, "Jedi Digg Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 private void opendigg_Click(object sender, EventArgs e)
 {
     try
     {
         _pause = true;
         BrowserForm bf = new BrowserForm();
         bf.OpenUrl(_diggStory.diggUrl);
         bf.Show();
         bf.FormClosed += new FormClosedEventHandler(bf_FormClosed);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, "Unhandled error opening a browser: " + ex.Message, "Jedi Digg Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }