/// <summary> /// Method for downloading html /// </summary> public void DownloadHTMLExecute() { try { HTMLClass htmlClass = new HTMLClass(); string html = htmlClass.GetHTMLFromURL(folderLocation, HTMLPath); if (html == null) { InfoText = "The following html path is not accessable"; InfoColor = "#FFF34A4A"; } else { InfoText = "Successfuly downloaded the file"; InfoColor = "#FF8BC34A"; } } catch (Exception) { InfoText = "Currently the html downloader is unavaiable..."; InfoColor = "#FFF34A4A"; } finally { SnackInfo(); } }
} // <-- Working ✓ public static void LoadMenuOption(char menuChoice) { DecimalClass decimalInput = new DecimalClass(); StringClass stringInput = new StringClass(); HexClass hexInput = new HexClass(); switch (menuChoice) { case 'A': DecimalClass.ConvertString(); // <-- If choice 'A' Console.WriteLine(" "); break; case 'B': HexClass.ConvertString(); // <-- If choice 'B' Console.WriteLine(" "); break; case 'C': StringClass.ConvertDecimal(); // <-- If choice 'C' Console.WriteLine(" "); break; case 'D': StringClass.ConvertHex(); // <-- If choice 'D' Console.WriteLine(" "); break; case 'E': HTMLClass.ConvertPHP(); // <-- If choice 'E' Console.WriteLine(" "); break; case 'X': Console.WriteLine("Goodbye!"); // <-- If choice 'X' break; default: break; } } // <-- Working ✓
public static void Init(AppPressDemo p, HTMLClass HTML) { HTML.Help.val = "<a href='https://docs.google.com/document/d/1goW6BxoZp1WK12ZCcmg8RqVgADifn8yYZSZoGjpUeRo/edit#heading=h.9815q1w8j2iw' target='_blank'><i class=\"fa fa-question-circle\"></i></a>"; HTML.HTML.val = "<span style='font-size:24px'>Display Text in HTML</span>"; }