public void watch(String username1, String password1, String context, Main ui, int fromSelf) { if (fromSelf != 1) { writeToLog("Started Watching."); ui.EnableButton(false); ui.set_button1_text("Watching..."); setVars(username1, password1, context, ui); login(username, password); } readAndParse(); downloadVids(); ui.set_statusbar_text("Waiting " + Settings.Default.Delay.ToString() + " minute(s)..."); ui.set_list_text(new List <string>()); if ((Settings.Default.Async) && (currentlyDownloading.Count > 0)) { window.set_statusbar_text("Downloading " + currentlyDownloading.Count + " video(s)."); } Thread.Sleep(Convert.ToInt32(Settings.Default.Delay * 1000) * 60); ui.newThread(); }
public void watch(String username1, String password1, String context, Main ui, int fromSelf) { if (fromSelf != 1) { writeToLog("Started Watching."); ui.EnableButton(false); ui.set_button1_text("Watching..."); setVars(username1, password1, context, ui); login(username, password); } readAndParse(); downloadVids(); ui.set_statusbar_text("Waiting " + Settings.Default.Delay.ToString() + " minute(s)..."); ui.set_list_text(new List<string>()); if ((Settings.Default.Async) && (currentlyDownloading.Count > 0)) { window.set_statusbar_text("Downloading " + currentlyDownloading.Count + " video(s)."); } Thread.Sleep(Convert.ToInt32(Settings.Default.Delay * 1000) * 60); ui.newThread(); }