コード例 #1
0
 public static void LaunchHelp()
 {
     try {
         //throw new Exception();
         System.Diagnostics.Process.Start(SharedBO.GetHelpFile());
     }
     catch (Exception) {
         LlamaCarbonCopy.Controls.Forms.CopyURLForm frm = new LlamaCarbonCopy.Controls.Forms.CopyURLForm();
         frm.Website = SharedBO.GetHelpFile();
         frm.Msg     =
             "Llama Carbon Copy tried to open the Help for you.  " +
             "An error was encountered possibly caused by your security configurations, therefore " +
             "Llama Carbon Copy cannot automatically open the Help information for you.  \n\n" +
             "Please click the button below to copy the help webpage, so that you can paste it into " +
             "your web browser.  The Help file is local to your machine, so you do not need to be connected \n" +
             "to the internet.";
         frm.ShowDialog();
     }
 }
コード例 #2
0
 public static void LaunchWebsite(string website)
 {
     try {
         //throw new Exception();
         System.Diagnostics.Process.Start(website);
     }
     catch (Exception) {
         LlamaCarbonCopy.Controls.Forms.CopyURLForm frm = new LlamaCarbonCopy.Controls.Forms.CopyURLForm();
         frm.Website = website;
         frm.Msg     = String.Format(
             "Llama Carbon Copy tried to open the purchase website for you.  " +
             "An error was encountered possibly caused by your security configurations, therefore " +
             "Llama Carbon Copy cannot automatically open the purchase website for you.  \n\n" +
             "Please click the button below to copy the purchase website link, so that you can paste it into " +
             "your web browser.\n" +
             "The purchase webpage is located at: {0}",
             website);
         frm.ShowDialog();
     }
 }