diff --git a/App.config b/App.config index 5e58d43..e6af6c7 100644 --- a/App.config +++ b/App.config @@ -22,6 +22,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Program.cs b/Program.cs index 1258ca1..9b505b5 100644 --- a/Program.cs +++ b/Program.cs @@ -168,29 +168,6 @@ private static void CaptureWebPage() GetSetting("Kuala Pembuang"), GetSetting("Seruyan Hilir") }; - - string[] Names = new string[] - { - "Baamang", - "Antang Kalang", - "Bukit Sentuai", - "Cempaga", - "Cempaga Hulu", - "Kota Besi", - "Mentawa Baru Ketapang", - "Mentaya Hilir Selatan", - "Mentaya Hilir Utara", - "Mentaya Hulu", - "Parenggean", - "Pulau Hanaut", - "Seranau", - "Telaga Antang", - "Telawang", - "Teluk Sampit", - "Tualan Hulu", - "Kuala Pembuang", - "Seruyan Hilir" - }; Console.WriteLine(""); Console.WriteLine("Sedang Menghidupkan Bot Aplikasinya ...", Console.ForegroundColor = ConsoleColor.Yellow); @@ -202,7 +179,7 @@ private static void CaptureWebPage() for (int i = 0; i < Links.Count(); i++) { Console.WriteLine(""); - Console.WriteLine("Sedang Memproses Tampilan Cuaca " + Names[i], Console.ForegroundColor = ConsoleColor.White); + Console.WriteLine("Sedang Memproses Tampilan Cuaca " + GetSetting(i.ToString()), Console.ForegroundColor = ConsoleColor.White); driver.Navigate().GoToUrl(Links[i]); @@ -212,9 +189,9 @@ private static void CaptureWebPage() wait.Until(ExpectedConditions.ElementIsVisible(By.TagName("img"))); Thread.Sleep(10000); Screenshot screenshot = screenshotDriver.GetScreenshot(); - screenshot.SaveAsFile(GetSetting(dir) + dir + "\\" + Names[i] + ".png"); + screenshot.SaveAsFile(GetSetting(dir) + dir + "\\" + GetSetting(i.ToString()) + ".png"); - Console.WriteLine(Names[i] + " Telah Berhasil di Save"); + Console.WriteLine(GetSetting(i.ToString()) + " Telah Berhasil di Save"); Console.WriteLine(""); } diff --git a/WAS Installer.msi b/WAS Installer.msi index 79528da..0c4178c 100644 Binary files a/WAS Installer.msi and b/WAS Installer.msi differ