diff --git a/ControlApp.csproj b/ControlApp.csproj
index 54326d5..f6684e1 100644
--- a/ControlApp.csproj
+++ b/ControlApp.csproj
@@ -17,7 +17,7 @@
-
+
diff --git a/ControlApp/ConfigSettingsForm.cs b/ControlApp/ConfigSettingsForm.cs
index 2f029ed..1723199 100644
--- a/ControlApp/ConfigSettingsForm.cs
+++ b/ControlApp/ConfigSettingsForm.cs
@@ -119,15 +119,15 @@ public class ConfigSettingsForm : Form
}
switch (ConfigurationManager.AppSettings["Delay"])
{
- case "30":
- delaycmb.SelectedIndex = 0;
- break;
- case "60":
- delaycmb.SelectedIndex = 1;
- break;
- case "120":
- delaycmb.SelectedIndex = 2;
- break;
+ case "30":
+ delaycmb.SelectedIndex = 0;
+ break;
+ case "60":
+ delaycmb.SelectedIndex = 1;
+ break;
+ case "120":
+ delaycmb.SelectedIndex = 2;
+ break;
}
}
diff --git a/ControlApp/ControlApp.cs b/ControlApp/ControlApp.cs
index 8aab510..9786008 100644
--- a/ControlApp/ControlApp.cs
+++ b/ControlApp/ControlApp.cs
@@ -444,14 +444,14 @@ public class ControlApp : Form
{
switch (Path.GetExtension(file))
{
- case ".jpg":
- case ".jpeg":
- case ".png":
- createmessageline("P");
- break;
- default:
- MessageBox.Show("Incorrect file type. Please use only image files.");
- break;
+ case ".jpg":
+ case ".jpeg":
+ case ".png":
+ createmessageline("P");
+ break;
+ default:
+ MessageBox.Show("Incorrect file type. Please use only image files.");
+ break;
}
}
catch
@@ -509,19 +509,19 @@ public class ControlApp : Form
{
switch (Path.GetExtension(file))
{
- case ".jpg":
- case ".jpeg":
- case ".webm":
- case ".webp":
- case ".png":
- case ".mp4":
- case ".gif":
- case ".avi":
- createmessageline("U");
- break;
- default:
- MessageBox.Show("Incorrect file type. Please use only image or movie files");
- break;
+ case ".jpg":
+ case ".jpeg":
+ case ".webm":
+ case ".webp":
+ case ".png":
+ case ".mp4":
+ case ".gif":
+ case ".avi":
+ createmessageline("U");
+ break;
+ default:
+ MessageBox.Show("Incorrect file type. Please use only image or movie files");
+ break;
}
}
catch
@@ -701,19 +701,19 @@ public class ControlApp : Form
{
switch (Path.GetExtension(file))
{
- case ".jpg":
- case ".jpeg":
- case ".webp":
- case ".webm":
- case ".png":
- case ".mp4":
- case ".gif":
- case ".avi":
- createmessageline("S");
- break;
- default:
- MessageBox.Show("Incorrect file type. Please use only image or movie files");
- break;
+ case ".jpg":
+ case ".jpeg":
+ case ".webp":
+ case ".webm":
+ case ".png":
+ case ".mp4":
+ case ".gif":
+ case ".avi":
+ createmessageline("S");
+ break;
+ default:
+ MessageBox.Show("Incorrect file type. Please use only image or movie files");
+ break;
}
}
catch
diff --git a/ControlApp/Utils.cs b/ControlApp/Utils.cs
index 0e0848f..b86cbdc 100644
--- a/ControlApp/Utils.cs
+++ b/ControlApp/Utils.cs
@@ -316,11 +316,11 @@ internal class Utils
ToReturn = ToReturn.Replace("]", "aaa");
ToReturn = ToReturn.Replace("G0", "ppp");
ToReturn = ToReturn.Replace("0x", "lll");
- writetolog("Encrypted: " + Line , ToReturn, true);
+ writetolog("Encrypted: " + Line, ToReturn, true);
}
catch (Exception ex)
{
- writetolog("Error enrypt " + Line , ex.Message, true);
+ writetolog("Error enrypt " + Line, ex.Message, true);
}
return ToReturn;
}
@@ -349,11 +349,11 @@ internal class Utils
cryptoStream.Write(inputbyteArray, 0, inputbyteArray.Length);
cryptoStream.FlushFinalBlock();
ToReturn = Encoding.UTF8.GetString(ms.ToArray());
- writetolog("Decrypted: " + Line , ToReturn, true);
+ writetolog("Decrypted: " + Line, ToReturn, true);
}
catch (Exception ex)
{
- writetolog("Decrypt error for : " + Line , ex.Message, true);
+ writetolog("Decrypt error for : " + Line, ex.Message, true);
}
return ToReturn;
}
@@ -383,7 +383,7 @@ internal class Utils
catch (Exception ex)
{
filename = "FAILED";
- writetolog("Error getting file for : " + url , ex.Message);
+ writetolog("Error getting file for : " + url, ex.Message);
}
return filename;
}
@@ -1031,7 +1031,7 @@ internal class Utils
}
catch (Exception ex2)
{
- writetolog("Error proccessing for : " + line , ex2.Message);
+ writetolog("Error proccessing for : " + line, ex2.Message);
}
}
}
diff --git a/ControlApp/WatchForMe.cs b/ControlApp/WatchForMe.cs
index 05c67b8..ba0efb3 100644
--- a/ControlApp/WatchForMe.cs
+++ b/ControlApp/WatchForMe.cs
@@ -75,84 +75,84 @@ public class WatchForMe : Form
textBox1.Focus();
switch (Path.GetExtension(Url))
{
- case ".mp4":
- case ".webm":
- case ".webp":
- case ".gif":
- pub_Url = Url;
- axWindowsMediaPlayer1.Ctlenabled = false;
- axWindowsMediaPlayer1.uiMode = "None";
- axWindowsMediaPlayer1.settings.autoStart = true;
- axWindowsMediaPlayer1.settings.setMode("loop", varfMode: true);
- if (IsWebPage(Url))
- {
- if (u.Get_File(Url) != "FAILED")
+ case ".mp4":
+ case ".webm":
+ case ".webp":
+ case ".gif":
+ pub_Url = Url;
+ axWindowsMediaPlayer1.Ctlenabled = false;
+ axWindowsMediaPlayer1.uiMode = "None";
+ axWindowsMediaPlayer1.settings.autoStart = true;
+ axWindowsMediaPlayer1.settings.setMode("loop", varfMode: true);
+ if (IsWebPage(Url))
{
- FileInfo fileInfo = new FileInfo(Url);
- axWindowsMediaPlayer1.URL = fileInfo.ToString();
+ if (u.Get_File(Url) != "FAILED")
+ {
+ FileInfo fileInfo = new FileInfo(Url);
+ axWindowsMediaPlayer1.URL = fileInfo.ToString();
+ }
+ else
+ {
+ axWindowsMediaPlayer1.URL = Url;
+ }
}
else
{
- axWindowsMediaPlayer1.URL = Url;
+ FileInfo fileInfo2 = new FileInfo(Url);
+ axWindowsMediaPlayer1.URL = fileInfo2.ToString();
}
- }
- else
- {
- FileInfo fileInfo2 = new FileInfo(Url);
- axWindowsMediaPlayer1.URL = fileInfo2.ToString();
- }
- webView21.Visible = false;
- break;
- case ".png":
- case ".jpg":
- case ".jepg":
- {
- string file = "";
- webView21.Visible = false;
- file = u.Get_File(Url);
- if (file == "FAILED")
- {
- Close();
+ webView21.Visible = false;
break;
- }
- Image i = Image.FromFile(file);
- Screen my = Screen.AllScreens[0];
- if (i.Width > my.Bounds.Width)
- {
- base.Width = my.Bounds.Width;
- }
- else
- {
- base.Width = i.Width;
- }
- if (i.Height > my.Bounds.Height)
- {
- base.Height = my.Bounds.Height;
- }
- else
- {
- base.Height = i.Height;
- }
- axWindowsMediaPlayer1.Visible = false;
- PictureBox pictureBox = new PictureBox
- {
- Dock = DockStyle.Fill,
- Image = i
- };
- base.Controls.Add(pictureBox);
- break;
- }
- default:
- {
- axWindowsMediaPlayer1.Visible = false;
- if (Url.Substring(0, 4).ToUpper() != "HTTP")
- {
- Url = "http://" + Url;
- }
- Uri uri = new Uri(Url);
- webView21.Source = uri;
- break;
- }
+ case ".png":
+ case ".jpg":
+ case ".jepg":
+ {
+ string file = "";
+ webView21.Visible = false;
+ file = u.Get_File(Url);
+ if (file == "FAILED")
+ {
+ Close();
+ break;
+ }
+ Image i = Image.FromFile(file);
+ Screen my = Screen.AllScreens[0];
+ if (i.Width > my.Bounds.Width)
+ {
+ base.Width = my.Bounds.Width;
+ }
+ else
+ {
+ base.Width = i.Width;
+ }
+ if (i.Height > my.Bounds.Height)
+ {
+ base.Height = my.Bounds.Height;
+ }
+ else
+ {
+ base.Height = i.Height;
+ }
+ axWindowsMediaPlayer1.Visible = false;
+ PictureBox pictureBox = new PictureBox
+ {
+ Dock = DockStyle.Fill,
+ Image = i
+ };
+ base.Controls.Add(pictureBox);
+ break;
+ }
+ default:
+ {
+ axWindowsMediaPlayer1.Visible = false;
+ if (Url.Substring(0, 4).ToUpper() != "HTTP")
+ {
+ Url = "http://" + Url;
+ }
+ Uri uri = new Uri(Url);
+ webView21.Source = uri;
+ break;
+ }
}
AutoSize = true;
timewatched = 0;