Skip to content

Commit

Permalink
Glow has been updated to version v24.20
Browse files Browse the repository at this point in the history
  • Loading branch information
turkaysoftware committed Nov 19, 2024
1 parent d9a7f93 commit 7156971
Show file tree
Hide file tree
Showing 35 changed files with 1,301 additions and 885 deletions.
641 changes: 370 additions & 271 deletions Glow/Glow.Designer.cs

Large diffs are not rendered by default.

697 changes: 420 additions & 277 deletions Glow/Glow.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Glow/Glow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>24.19.0.%2a</ApplicationVersion>
<ApplicationVersion>24.20.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
Expand Down
6 changes: 6 additions & 0 deletions Glow/Glow.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Glow", "Glow.csproj", "{6ED
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Debug|ARM64.ActiveCfg = Debug|ARM64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Debug|ARM64.Build.0 = Debug|ARM64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Debug|x64.ActiveCfg = Debug|x64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Debug|x64.Build.0 = Debug|x64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Release|ARM64.ActiveCfg = Release|ARM64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Release|ARM64.Build.0 = Release|ARM64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Release|x64.ActiveCfg = Release|x64
{6ED642BA-621C-49D2-BFEA-D2279D0A9377}.Release|x64.Build.0 = Release|x64
EndGlobalSection
Expand Down
14 changes: 5 additions & 9 deletions Glow/GlowAbout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ private void GlowAbout_Load(object sender, EventArgs e){
try{
LabelDeveloper.Text = Application.CompanyName;
LabelSoftware.Text = Application.ProductName;
TS_VersionEngine TS_SoftwareVersion = new TS_VersionEngine();
LabelVersion.Text = TS_SoftwareVersion.TS_SofwareVersion(1, Program.ts_version_mode);
LabelVersion.Text = TS_VersionEngine.TS_SofwareVersion(1, Program.ts_version_mode);
LabelCopyright.Text = TS_SoftwareCopyrightDate.ts_scd_preloader;
//
AboutTable.Columns.Add("x", "x");
Expand Down Expand Up @@ -119,35 +118,32 @@ public void about_preloader(){
// DGV CLEAR SELECTION
// ======================================================================================================
private void AboutTable_SelectionChanged(object sender, EventArgs e){ AboutTable.ClearSelection(); }
// MEDIA LINK SYSTEM
// ======================================================================================================
TS_LinkSystem TS_LinkSystem = new TS_LinkSystem();
// WEBSITE LINK
// ======================================================================================================
private void About_WebsiteBtn_Click(object sender, EventArgs e){
try{
Process.Start(TS_LinkSystem.website_link);
Process.Start(new ProcessStartInfo(TS_LinkSystem.website_link){ UseShellExecute = true });
}catch (Exception){ }
}
// X LINK
// ======================================================================================================
private void About_XBtn_Click(object sender, EventArgs e){
try{
Process.Start(TS_LinkSystem.twitter_x_link);
Process.Start(new ProcessStartInfo(TS_LinkSystem.twitter_x_link){ UseShellExecute = true });
}catch (Exception){ }
}
// INSTAGRAM LINK
// ======================================================================================================
private void About_InstagramBtn_Click(object sender, EventArgs e){
try{
Process.Start(TS_LinkSystem.instagram_link);
Process.Start(new ProcessStartInfo(TS_LinkSystem.instagram_link){ UseShellExecute = true });
}catch (Exception){ }
}
// GITHUB LINK
// ======================================================================================================
private void About_GitHubBtn_Click(object sender, EventArgs e){
try{
Process.Start(TS_LinkSystem.github_link);
Process.Start(new ProcessStartInfo(TS_LinkSystem.github_link){ UseShellExecute = true });
}catch (Exception){ }
}
// FORM DRAGGING SYSTEM
Expand Down
10 changes: 10 additions & 0 deletions Glow/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Threading;
using System.Windows.Forms;
//
using static Glow.TSModules;
Expand All @@ -9,6 +10,15 @@ public class Program{
/// Uygulamanın ana girdi noktası.
/// </summary>
// ======================================================================================================
// GLOBAL TS CANCEL TOKEN
public static CancellationTokenSource TS_TokenEngine;
// ======================================================================================================
// TS PRELOADER DEBUG MODE
public static bool ts_pre_debug_mode = false;
// ======================================================================================================
// DEBUG MODE
public static bool debug_mode = false;
// ======================================================================================================
// VERSION MODE
public static int ts_version_mode = 0;
// ======================================================================================================
Expand Down
4 changes: 2 additions & 2 deletions Glow/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// Tüm değerleri belirtebilir veya varsayılan Derleme ve Düzeltme Numaralarını kullanmak için
// aşağıda gösterildiği gibi '*' kullanabilirsiniz:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("24.19.0.0")]
[assembly: AssemblyFileVersion("24.19.0.0")]
[assembly: AssemblyVersion("24.20.0.0")]
[assembly: AssemblyFileVersion("24.20.0.0")]
[assembly: NeutralResourcesLanguage("tr-TR")]
2 changes: 1 addition & 1 deletion Glow/SoftwareVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
software_version = 24.19
software_version = 24.20
50 changes: 47 additions & 3 deletions Glow/TSModules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class TSModules{
// LINK SYSTEM
// ======================================================================================================
public class TS_LinkSystem{
public string
public static string
website_link = "https://www.turkaysoftware.com",
twitter_x_link = "https://x.com/turkaysoftware",
instagram_link = "https://www.instagram.com/erayturkayy/",
Expand All @@ -25,7 +25,7 @@ public string
// VERSIONS
// ======================================================================================================
public class TS_VersionEngine{
public string TS_SofwareVersion(int v_type, int v_mode){
public static string TS_SofwareVersion(int v_type, int v_mode){
string version_mode = "";
string versionSubstring = v_mode == 0 ? Application.ProductVersion.Substring(0, 5) : Application.ProductVersion.Substring(0, 7);
switch (v_type){
Expand All @@ -44,6 +44,37 @@ public string TS_SofwareVersion(int v_type, int v_mode){
return version_mode;
}
}
// TS MESSAGEBOX ENGINE
// ======================================================================================================
public static class TS_MessageBoxEngine{
private static readonly Dictionary<int, KeyValuePair<MessageBoxButtons, MessageBoxIcon>> TSMessageBoxConfig = new Dictionary<int, KeyValuePair<MessageBoxButtons, MessageBoxIcon>>(){
{ 1, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.OK, MessageBoxIcon.Information) }, // Ok ve Bilgi
{ 2, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.OK, MessageBoxIcon.Warning) }, // Ok ve Uyarı
{ 3, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.OK, MessageBoxIcon.Error) }, // Ok ve Hata
{ 4, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.YesNo, MessageBoxIcon.Question) }, // Yes/No ve Soru
{ 5, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.YesNo, MessageBoxIcon.Information) }, // Yes/No ve Bilgi
{ 6, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.YesNo, MessageBoxIcon.Warning) }, // Yes/No ve Uyarı
{ 7, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.YesNo, MessageBoxIcon.Error) }, // Yes/No ve Hata
{ 8, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.RetryCancel, MessageBoxIcon.Error) }, // Retry/Cancel ve Hata
{ 9, new KeyValuePair<MessageBoxButtons, MessageBoxIcon>(MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) } // Yes/No/Cancel ve Soru
};
public static DialogResult TS_MessageBox(Form m_form, int m_mode, string m_message, string m_title = ""){
m_form.BringToFront();
//
string m_box_title = string.IsNullOrEmpty(m_title) ? Application.ProductName : m_title;
//
MessageBoxButtons m_button = MessageBoxButtons.OK;
MessageBoxIcon m_icon = MessageBoxIcon.Information;
//
if (TSMessageBoxConfig.ContainsKey(m_mode)){
var m_serialize = TSMessageBoxConfig[m_mode];
m_button = m_serialize.Key;
m_icon = m_serialize.Value;
}
//
return MessageBox.Show(m_form, m_message, m_box_title, m_button, m_icon);
}
}
// TS SOFTWARE COPYRIGHT DATE
// ======================================================================================================
public class TS_SoftwareCopyrightDate{
Expand Down Expand Up @@ -74,7 +105,7 @@ public int TSWriteSettings(string episode, string settingName, string value){
}
// READ LANG PATHS
// ======================================================================================================
public static string ts_lf = @"g_langs"; // Main Path
public static string ts_lf = $"g_langs"; // Main Path
public static string ts_lang_zh = ts_lf + @"\Chinese.ini"; // Chinese | zh
public static string ts_lang_en = ts_lf + @"\English.ini"; // English | en
public static string ts_lang_fr = ts_lf + @"\French.ini"; // French | fr
Expand Down Expand Up @@ -103,6 +134,19 @@ public string TSReadLangs(string episode, string settingName){
public static string TS_String_Encoder(string get_text){
return Encoding.UTF8.GetString(Encoding.Default.GetBytes(get_text)).Trim();
}
// TURKISH LETTER CONVERTER
// ======================================================================================================
public static string TS_TR_LetterConverter(string called_text){
if (string.IsNullOrEmpty(called_text)) { return called_text; }
StringBuilder str_con = new StringBuilder(called_text);
str_con.Replace('Ç', 'C').Replace('ç', 'c');
str_con.Replace('Ğ', 'G').Replace('ğ', 'g');
str_con.Replace('İ', 'I').Replace('ı', 'i');
str_con.Replace('Ö', 'O').Replace('ö', 'o');
str_con.Replace('Ş', 'S').Replace('ş', 's');
str_con.Replace('Ü', 'U').Replace('ü', 'u');
return str_con.ToString().Trim();
}
// TS THEME ENGINE
// ======================================================================================================
public class TS_ThemeEngine{
Expand Down
5 changes: 3 additions & 2 deletions Glow/TSPreloader.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7156971

Please sign in to comment.