-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅Ъпдейтната АПИ система ✅Добавена автоматична проверка на версията ✅ Добавен бутон за актуализация на база данни ✅Поправени бъгове ✅Оптимизация на софтуера
- Loading branch information
Showing
97 changed files
with
59,931 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace ViggneteCheckBG.API | ||
{ | ||
class Update | ||
{ | ||
public class IsLatest | ||
{ | ||
public static bool Check() | ||
{ | ||
WebRequest request = WebRequest.Create("https://v-devs.online/api.php?getLatestVersion&source=vignette"); | ||
request.Credentials = CredentialCache.DefaultCredentials; | ||
HttpWebResponse response = (HttpWebResponse)request.GetResponse(); | ||
Console.WriteLine(response.StatusDescription); | ||
Stream dataStream = response.GetResponseStream(); | ||
StreamReader reader = new StreamReader(dataStream); | ||
string responseFromServer = reader.ReadToEnd(); | ||
String[] version = responseFromServer.Split('<'); | ||
reader.Close(); | ||
dataStream.Close(); | ||
response.Close(); | ||
if(version[0] == Properties.Settings.Default.softwareVersion) | ||
{ | ||
return true; | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
} | ||
public class getDownloadURL | ||
{ | ||
public static string Get() | ||
{ | ||
WebRequest request = WebRequest.Create("https://v-devs.online/api.php?getLatestVersion&source=vignette&getDownloadURL"); | ||
request.Credentials = CredentialCache.DefaultCredentials; | ||
HttpWebResponse response = (HttpWebResponse)request.GetResponse(); | ||
Console.WriteLine(response.StatusDescription); | ||
Stream dataStream = response.GetResponseStream(); | ||
StreamReader reader = new StreamReader(dataStream); | ||
string responseFromServer = reader.ReadToEnd(); | ||
String[] urlResponse = responseFromServer.Split('<'); | ||
reader.Close(); | ||
dataStream.Close(); | ||
response.Close(); | ||
return urlResponse[0]; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
Bunifu.UI.WinForms.BunifuTextBox, Bunifu.UI.WinForms.BunifuTextBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuDropdown, Bunifu.UI.WinForms.BunifuDropdown, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuImageButton, Bunifu.UI.WinForms.BunifuImageButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuRating, Bunifu.UI.WinForms.BunifuRating, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuButton.BunifuButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuRadialGauge, Bunifu.UI.WinForms.BunifuGauge, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuHScrollBar, Bunifu.UI.WinForms.BunifuScrollBar, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuTextBox, Bunifu.UI.WinForms.BunifuTextBox, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuButton.BunifuButton2, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuButton.BunifuButton, Bunifu.UI.WinForms.BunifuButton, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuPanel, Bunifu.UI.WinForms.BunifuPanel, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuDropdown, Bunifu.UI.WinForms.BunifuDropdown, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuSnackbar, Bunifu.UI.WinForms.BunifuSnackbar, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuRating, Bunifu.UI.WinForms.BunifuRating, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 | ||
Bunifu.UI.WinForms.BunifuRadialGauge, Bunifu.UI.WinForms.BunifuGauge, Version=5.3.0.0, Culture=neutral, PublicKeyToken=e8e24ccd28363fe9 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.