Exemple #1
0
 private void cmdOK_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (optGoOnlineHelp.IsChecked != null && optGoOnlineHelp.IsChecked.Value)
         {
             PNStatic.LoadPage(PNStrings.URL_HELP);
             DialogResult = true;
         }
         else if (optGetCHM.IsChecked != null && optGetCHM.IsChecked.Value)
         {
             m_FileToOpen = Path.Combine(System.Windows.Forms.Application.StartupPath, PNStrings.CHM_FILE);
             downloadFile(PNStrings.URL_DOWNLOAD_ROOT + PNStrings.CHM_FILE);
         }
         else
         {
             m_FileToOpen = Path.Combine(System.Windows.Forms.Application.StartupPath, PNStrings.PDF_FILE);
             downloadFile(PNStrings.URL_DOWNLOAD_ROOT + PNStrings.PDF_FILE);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
 private void cmdBrowser_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         PNStatic.LoadPage(PNStrings.URL_DICTIONARIES);
         DialogResult = false;
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Exemple #3
0
 private void AboutControl_AboutLinkClicked(object sender, AboutLinkClickedEventArgs e)
 {
     PNStatic.LoadPage(e.Link);
 }