Example #1
0
 private void btn_GenerateHtmlFile_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         listBox.Items.Clear();
         tblogs.Text = "";
         if (codeWatcher.sourceFolderPath != null && codeWatcher.targetFilePath != null)
         {
             List <string> exceptionList = codeWatcher.GenerateHtmlFile();
             foreach (string ex in exceptionList)
             {
                 tblogs.Text += ex;
             }
             tblogs.Text = "Successfully generated!";
         }
         else
         {
             tblogs.Text = "Enter a filename or enter a targetfile!!!";
         }
     }
     catch (Exception ex)
     {
         tblogs.Text = ex.ToString();
     }
 }