From 879fd080c279f3e9f1f5b4d8a835aa1334dd9824 Mon Sep 17 00:00:00 2001 From: sp0ok3r Date: Wed, 20 Nov 2024 00:33:35 +0000 Subject: [PATCH] code clean up --- ...esigner.cs => AccSettingsForm.Designer.cs} | 202 +++-- .../{AccSettings.cs => AccSettingsForm.cs} | 19 +- ...{AccSettings.resx => AccSettingsForm.resx} | 0 MercuryBOT/CustomHandlers/GamesHandler.cs | 1 - MercuryBOT/DeviceAuth.cs | 9 +- MercuryBOT/Games/IdleSettings.cs | 8 - MercuryBOT/HandleLogin.cs | 366 ++++----- MercuryBOT/Helpers/Emojis.cs | 1 - MercuryBOT/Helpers/Extensions.cs | 2 - MercuryBOT/Helpers/HtmlTable.cs | 3 - MercuryBOT/Helpers/SessionData.cs | 2 - MercuryBOT/Main.Designer.cs | 751 ++++++++---------- MercuryBOT/Main.cs | 333 ++++---- MercuryBOT/Main.resx | 3 - MercuryBOT/Mercury.csproj | 16 +- MercuryBOT/SteamCommunity/SteamWebold.cs | 4 - MercuryBOT/SteamCommunity/Utils.cs | 7 - MercuryBOT/SteamGroups/GatherSteamGroups.cs | 1 - .../{ => SteamGuard}/SteamGuard.Designer.cs | 0 MercuryBOT/{ => SteamGuard}/SteamGuard.cs | 0 MercuryBOT/{ => SteamGuard}/SteamGuard.resx | 0 21 files changed, 784 insertions(+), 944 deletions(-) rename MercuryBOT/AccSettings/{AccSettings.Designer.cs => AccSettingsForm.Designer.cs} (58%) rename MercuryBOT/AccSettings/{AccSettings.cs => AccSettingsForm.cs} (77%) rename MercuryBOT/AccSettings/{AccSettings.resx => AccSettingsForm.resx} (100%) rename MercuryBOT/{ => SteamGuard}/SteamGuard.Designer.cs (100%) rename MercuryBOT/{ => SteamGuard}/SteamGuard.cs (100%) rename MercuryBOT/{ => SteamGuard}/SteamGuard.resx (100%) diff --git a/MercuryBOT/AccSettings/AccSettings.Designer.cs b/MercuryBOT/AccSettings/AccSettingsForm.Designer.cs similarity index 58% rename from MercuryBOT/AccSettings/AccSettings.Designer.cs rename to MercuryBOT/AccSettings/AccSettingsForm.Designer.cs index e38c2ed..9d063b8 100644 --- a/MercuryBOT/AccSettings/AccSettings.Designer.cs +++ b/MercuryBOT/AccSettings/AccSettingsForm.Designer.cs @@ -1,6 +1,6 @@ ๏ปฟnamespace MercuryBOT.AccSettings { - partial class AccSettings + partial class AccSettingsForm { /// /// Required designer variable. @@ -28,103 +28,17 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AccSettings)); - this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); - this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox(); - this.metroButton1 = new MetroFramework.Controls.MetroButton(); - this.metroButton2 = new MetroFramework.Controls.MetroButton(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AccSettingsForm)); this.txtBox_nameChange = new MetroFramework.Controls.MetroTextBox(); this.lbl_changeName = new MetroFramework.Controls.MetroLabel(); this.btn_setName = new MetroFramework.Controls.MetroButton(); this.btn_clearuserAliases = new MetroFramework.Controls.MetroButton(); + this.combox_uimodes = new MetroFramework.Controls.MetroComboBox(); + this.lbl_uimode = new MetroFramework.Controls.MetroLabel(); + this.combox_states = new MetroFramework.Controls.MetroComboBox(); + this.metroLabel19 = new MetroFramework.Controls.MetroLabel(); this.SuspendLayout(); // - // metroLabel1 - // - this.metroLabel1.AutoSize = true; - this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Small; - this.metroLabel1.FontWeight = MetroFramework.MetroLabelWeight.Bold; - this.metroLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.metroLabel1.Location = new System.Drawing.Point(19, 199); - this.metroLabel1.Name = "metroLabel1"; - this.metroLabel1.Size = new System.Drawing.Size(115, 15); - this.metroLabel1.TabIndex = 4; - this.metroLabel1.Text = "Custom non-steam:"; - this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroLabel1.UseCustomBackColor = true; - this.metroLabel1.UseCustomForeColor = true; - this.metroLabel1.UseStyleColors = true; - // - // metroTextBox1 - // - // - // - // - this.metroTextBox1.CustomButton.Image = null; - this.metroTextBox1.CustomButton.Location = new System.Drawing.Point(246, 1); - this.metroTextBox1.CustomButton.Name = ""; - this.metroTextBox1.CustomButton.Size = new System.Drawing.Size(21, 21); - this.metroTextBox1.CustomButton.Style = MetroFramework.MetroColorStyle.Blue; - this.metroTextBox1.CustomButton.TabIndex = 1; - this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light; - this.metroTextBox1.CustomButton.UseSelectable = true; - this.metroTextBox1.CustomButton.Visible = false; - this.metroTextBox1.ForeColor = System.Drawing.Color.White; - this.metroTextBox1.Lines = new string[] { - "metroTextBox1"}; - this.metroTextBox1.Location = new System.Drawing.Point(23, 213); - this.metroTextBox1.MaxLength = 32767; - this.metroTextBox1.Name = "metroTextBox1"; - this.metroTextBox1.PasswordChar = '\0'; - this.metroTextBox1.ScrollBars = System.Windows.Forms.ScrollBars.None; - this.metroTextBox1.SelectedText = ""; - this.metroTextBox1.SelectionLength = 0; - this.metroTextBox1.SelectionStart = 0; - this.metroTextBox1.ShortcutsEnabled = true; - this.metroTextBox1.Size = new System.Drawing.Size(268, 23); - this.metroTextBox1.TabIndex = 5; - this.metroTextBox1.Text = "metroTextBox1"; - this.metroTextBox1.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroTextBox1.UseCustomBackColor = true; - this.metroTextBox1.UseCustomForeColor = true; - this.metroTextBox1.UseSelectable = true; - this.metroTextBox1.UseStyleColors = true; - this.metroTextBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel); - // - // metroButton1 - // - this.metroButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.metroButton1.ForeColor = System.Drawing.Color.White; - this.metroButton1.Location = new System.Drawing.Point(172, 252); - this.metroButton1.Name = "metroButton1"; - this.metroButton1.Size = new System.Drawing.Size(119, 39); - this.metroButton1.Style = MetroFramework.MetroColorStyle.Purple; - this.metroButton1.TabIndex = 6; - this.metroButton1.Text = "SAVE"; - this.metroButton1.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroButton1.UseCustomBackColor = true; - this.metroButton1.UseCustomForeColor = true; - this.metroButton1.UseSelectable = true; - this.metroButton1.UseStyleColors = true; - this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click); - // - // metroButton2 - // - this.metroButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.metroButton2.ForeColor = System.Drawing.Color.White; - this.metroButton2.Location = new System.Drawing.Point(23, 252); - this.metroButton2.Name = "metroButton2"; - this.metroButton2.Size = new System.Drawing.Size(126, 39); - this.metroButton2.Style = MetroFramework.MetroColorStyle.Purple; - this.metroButton2.TabIndex = 7; - this.metroButton2.Text = "CANCEL"; - this.metroButton2.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroButton2.UseCustomBackColor = true; - this.metroButton2.UseCustomForeColor = true; - this.metroButton2.UseSelectable = true; - this.metroButton2.UseStyleColors = true; - // // txtBox_nameChange // this.txtBox_nameChange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); @@ -142,11 +56,12 @@ private void InitializeComponent() this.txtBox_nameChange.CustomButton.Visible = false; this.txtBox_nameChange.ForeColor = System.Drawing.Color.White; this.txtBox_nameChange.Lines = new string[0]; - this.txtBox_nameChange.Location = new System.Drawing.Point(23, 72); + this.txtBox_nameChange.Location = new System.Drawing.Point(23, 79); this.txtBox_nameChange.MaxLength = 32; this.txtBox_nameChange.Multiline = true; this.txtBox_nameChange.Name = "txtBox_nameChange"; this.txtBox_nameChange.PasswordChar = '\0'; + this.txtBox_nameChange.PromptText = "ma name jeff"; this.txtBox_nameChange.ScrollBars = System.Windows.Forms.ScrollBars.None; this.txtBox_nameChange.SelectedText = ""; this.txtBox_nameChange.SelectionLength = 0; @@ -168,7 +83,7 @@ private void InitializeComponent() this.lbl_changeName.BackColor = System.Drawing.Color.Transparent; this.lbl_changeName.FontWeight = MetroFramework.MetroLabelWeight.Regular; this.lbl_changeName.ForeColor = System.Drawing.SystemColors.Window; - this.lbl_changeName.Location = new System.Drawing.Point(19, 55); + this.lbl_changeName.Location = new System.Drawing.Point(19, 62); this.lbl_changeName.Name = "lbl_changeName"; this.lbl_changeName.Size = new System.Drawing.Size(115, 19); this.lbl_changeName.TabIndex = 29; @@ -182,7 +97,7 @@ private void InitializeComponent() this.btn_setName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_setName.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_setName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_setName.Location = new System.Drawing.Point(161, 72); + this.btn_setName.Location = new System.Drawing.Point(161, 79); this.btn_setName.Name = "btn_setName"; this.btn_setName.Size = new System.Drawing.Size(27, 29); this.btn_setName.Style = MetroFramework.MetroColorStyle.Purple; @@ -201,7 +116,7 @@ private void InitializeComponent() this.btn_clearuserAliases.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_clearuserAliases.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_clearuserAliases.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_clearuserAliases.Location = new System.Drawing.Point(196, 72); + this.btn_clearuserAliases.Location = new System.Drawing.Point(196, 79); this.btn_clearuserAliases.Name = "btn_clearuserAliases"; this.btn_clearuserAliases.Size = new System.Drawing.Size(95, 29); this.btn_clearuserAliases.TabIndex = 42; @@ -214,21 +129,94 @@ private void InitializeComponent() this.btn_clearuserAliases.UseStyleColors = true; this.btn_clearuserAliases.Click += new System.EventHandler(this.btn_clearuserAliases_Click); // - // AccSettings + // combox_uimodes + // + this.combox_uimodes.FormattingEnabled = true; + this.combox_uimodes.ItemHeight = 23; + this.combox_uimodes.Items.AddRange(new object[] { + "Disabled", + "BIG PICTURE ๐ŸŽฎ", + "VIRTUAL REALITY ๐Ÿ˜Ž", + "SMARTPHONE ๐Ÿ“ฑ"}); + this.combox_uimodes.Location = new System.Drawing.Point(23, 212); + this.combox_uimodes.Name = "combox_uimodes"; + this.combox_uimodes.Size = new System.Drawing.Size(132, 29); + this.combox_uimodes.TabIndex = 44; + this.combox_uimodes.Theme = MetroFramework.MetroThemeStyle.Dark; + this.combox_uimodes.UseCustomForeColor = true; + this.combox_uimodes.UseSelectable = true; + this.combox_uimodes.UseStyleColors = true; + this.combox_uimodes.SelectedIndexChanged += new System.EventHandler(this.combox_uimodes_SelectedIndexChanged); + // + // lbl_uimode + // + this.lbl_uimode.AutoSize = true; + this.lbl_uimode.BackColor = System.Drawing.Color.Transparent; + this.lbl_uimode.FontWeight = MetroFramework.MetroLabelWeight.Regular; + this.lbl_uimode.ForeColor = System.Drawing.SystemColors.Window; + this.lbl_uimode.Location = new System.Drawing.Point(19, 193); + this.lbl_uimode.Name = "lbl_uimode"; + this.lbl_uimode.Size = new System.Drawing.Size(68, 19); + this.lbl_uimode.TabIndex = 47; + this.lbl_uimode.Text = "UI MODE"; + this.lbl_uimode.Theme = MetroFramework.MetroThemeStyle.Dark; + this.lbl_uimode.UseCustomBackColor = true; + this.lbl_uimode.UseStyleColors = true; + // + // combox_states + // + this.combox_states.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); + this.combox_states.FormattingEnabled = true; + this.combox_states.ItemHeight = 23; + this.combox_states.Items.AddRange(new object[] { + "Offline", + "Online", + "Busy", + "Away", + "Snooze ๐Ÿ’ค", + "Looking To Trade", + "Looking To Play", + "Invisible"}); + this.combox_states.Location = new System.Drawing.Point(23, 149); + this.combox_states.Name = "combox_states"; + this.combox_states.Size = new System.Drawing.Size(132, 29); + this.combox_states.TabIndex = 43; + this.combox_states.Theme = MetroFramework.MetroThemeStyle.Dark; + this.combox_states.UseCustomForeColor = true; + this.combox_states.UseSelectable = true; + this.combox_states.UseStyleColors = true; + this.combox_states.SelectedIndexChanged += new System.EventHandler(this.combox_states_SelectedIndexChanged); + // + // metroLabel19 + // + this.metroLabel19.AutoSize = true; + this.metroLabel19.BackColor = System.Drawing.Color.Transparent; + this.metroLabel19.FontWeight = MetroFramework.MetroLabelWeight.Regular; + this.metroLabel19.ForeColor = System.Drawing.SystemColors.Window; + this.metroLabel19.Location = new System.Drawing.Point(19, 129); + this.metroLabel19.Name = "metroLabel19"; + this.metroLabel19.Size = new System.Drawing.Size(111, 19); + this.metroLabel19.TabIndex = 46; + this.metroLabel19.Text = "STATE CHANGER"; + this.metroLabel19.Theme = MetroFramework.MetroThemeStyle.Dark; + this.metroLabel19.UseCustomBackColor = true; + this.metroLabel19.UseStyleColors = true; + // + // AccSettingsForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.ClientSize = new System.Drawing.Size(314, 304); + this.ClientSize = new System.Drawing.Size(314, 258); + this.Controls.Add(this.combox_uimodes); + this.Controls.Add(this.lbl_uimode); + this.Controls.Add(this.combox_states); + this.Controls.Add(this.metroLabel19); this.Controls.Add(this.btn_clearuserAliases); this.Controls.Add(this.txtBox_nameChange); this.Controls.Add(this.lbl_changeName); this.Controls.Add(this.btn_setName); - this.Controls.Add(this.metroButton2); - this.Controls.Add(this.metroButton1); - this.Controls.Add(this.metroTextBox1); - this.Controls.Add(this.metroLabel1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; - this.Name = "AccSettings"; + this.Name = "AccSettingsForm"; this.Resizable = false; this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow; this.Style = MetroFramework.MetroColorStyle.Default; @@ -240,13 +228,13 @@ private void InitializeComponent() } #endregion - private MetroFramework.Controls.MetroLabel metroLabel1; - private MetroFramework.Controls.MetroTextBox metroTextBox1; - private MetroFramework.Controls.MetroButton metroButton1; - private MetroFramework.Controls.MetroButton metroButton2; private MetroFramework.Controls.MetroTextBox txtBox_nameChange; private MetroFramework.Controls.MetroLabel lbl_changeName; private MetroFramework.Controls.MetroButton btn_setName; private MetroFramework.Controls.MetroButton btn_clearuserAliases; + private MetroFramework.Controls.MetroComboBox combox_uimodes; + private MetroFramework.Controls.MetroLabel lbl_uimode; + private MetroFramework.Controls.MetroComboBox combox_states; + private MetroFramework.Controls.MetroLabel metroLabel19; } } \ No newline at end of file diff --git a/MercuryBOT/AccSettings/AccSettings.cs b/MercuryBOT/AccSettings/AccSettingsForm.cs similarity index 77% rename from MercuryBOT/AccSettings/AccSettings.cs rename to MercuryBOT/AccSettings/AccSettingsForm.cs index 1e07b20..7f20808 100644 --- a/MercuryBOT/AccSettings/AccSettings.cs +++ b/MercuryBOT/AccSettings/AccSettingsForm.cs @@ -17,9 +17,9 @@ namespace MercuryBOT.AccSettings { - public partial class AccSettings : MetroFramework.Forms.MetroForm + public partial class AccSettingsForm : MetroFramework.Forms.MetroForm { - public AccSettings() + public AccSettingsForm() { InitializeComponent(); this.components.SetStyle(this); @@ -40,12 +40,23 @@ private void btn_setName_Click(object sender, EventArgs e) private void btn_clearuserAliases_Click(object sender, EventArgs e) { - Utils.ClearAliasesAsync(); + if (HandleLogin.IsLoggedIn == true) + { + Utils.ClearAliasesAsync(); + } + else + { + InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged."); + } } - private void metroButton1_Click(object sender, EventArgs e) + private void combox_states_SelectedIndexChanged(object sender, EventArgs e) { } + + private void combox_uimodes_SelectedIndexChanged(object sender, EventArgs e) + { + } } } diff --git a/MercuryBOT/AccSettings/AccSettings.resx b/MercuryBOT/AccSettings/AccSettingsForm.resx similarity index 100% rename from MercuryBOT/AccSettings/AccSettings.resx rename to MercuryBOT/AccSettings/AccSettingsForm.resx diff --git a/MercuryBOT/CustomHandlers/GamesHandler.cs b/MercuryBOT/CustomHandlers/GamesHandler.cs index 89f09d4..30cac1c 100644 --- a/MercuryBOT/CustomHandlers/GamesHandler.cs +++ b/MercuryBOT/CustomHandlers/GamesHandler.cs @@ -13,7 +13,6 @@ using System; using System.Linq; using System.Threading.Tasks; -using static SteamKit2.GC.Dota.Internal.CMsgDOTABotDebugInfo; namespace MercuryBOT.CustomHandlers { diff --git a/MercuryBOT/DeviceAuth.cs b/MercuryBOT/DeviceAuth.cs index 99cf437..4109fb2 100644 --- a/MercuryBOT/DeviceAuth.cs +++ b/MercuryBOT/DeviceAuth.cs @@ -1,13 +1,6 @@ -๏ปฟusing Mercury; -using SteamKit2.Authentication; +๏ปฟusing SteamKit2.Authentication; using SteamKit2.Internal; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; -using static SteamKit2.Internal.CMsgRemoteClientBroadcastStatus; -using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel; namespace Mercury diff --git a/MercuryBOT/Games/IdleSettings.cs b/MercuryBOT/Games/IdleSettings.cs index 79a24f9..954fb39 100644 --- a/MercuryBOT/Games/IdleSettings.cs +++ b/MercuryBOT/Games/IdleSettings.cs @@ -1,12 +1,4 @@ ๏ปฟusing System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace MercuryBOT.Games { diff --git a/MercuryBOT/HandleLogin.cs b/MercuryBOT/HandleLogin.cs index 88163f7..29573e0 100644 --- a/MercuryBOT/HandleLogin.cs +++ b/MercuryBOT/HandleLogin.cs @@ -19,98 +19,93 @@ using System.Windows.Forms; using SteamKit2.Authentication; using MercuryBOT; -using MetroFramework; using Mercury.MetroMessageBox; -using static SteamKit2.SteamUser; -using SteamKit2.CDN; using Mercury.Helpers; using System.Net; + +/* + * + * todo + * + * se o auto msg esta ligado, e o chatlogger tambem, o programa n esta a guardar a msg do auto msg + * + * + * + * + * + * + */ + + + namespace Mercury { public class HandleLogin { - + // Instance-level properties public string WebApiNonce { get; private set; } + public string getGuardData; + public CookieContainer CookieContainer { get; private set; } + private AuthSession _authSession; + private TaskCompletionSource _connectionCompletionSource; + private SessionData sessiondata = new SessionData(); + // Static User Information public static string UserPersonaName, UserCountry, CurrentUsername; - public static int CurrentPersonaState = 1; - - - public static bool ChatLogger = false; - public static EResult LastLogOnResult; - - public static bool IsLoggedIn { get; private set; } - public static bool isRunning = false; - - public static string user, pass; - public string getGuardData; + public static ulong CurrentSteamID = 0; + public static string avatar, LastErrorLogin; + // Static User Authentication and Session Information public static string authCode, twoFactorAuth; - public static string steamID, LastMessageReceived, LastMessageSent; - - public static ulong CurrentSteamID = 0; + public static string user, pass; + public static string webAPIUserNonce, myWebAPIUser, myUserNonce, myUniqueId, APIKey; + public static bool IsLoggedIn { get; private set; } + public static bool IsWebLoggedIn { get; private set; } + public static string LoginStatus = "Not connected..."; + public static bool cookiesAreInvalid = true; + // Static Avatar Information public static string AvatarPrefix = "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/"; public static string AvatarSuffix = "_full.jpg"; + public static string AvatarHash, MessageString, ChangeState; - public static string avatar; - public static string LastErrorLogin = ""; - - - public CookieContainer CookieContainer { get; private set; } - - //private WebAuthenticator _webAuthenticator = new WebAuthenticator(); - private AuthSession _authSession; - - public SteamClient steamClient; - private static CallbackManager MercuryManager; - private SteamUser steamUser; - //public SteamFriends steamFriends; - - public static SteamFriends steamFriends { get; set; } - - - // TaskCompletionSource to manage the state of the connection - private TaskCompletionSource _connectionCompletionSource; - + // Static User State Information + public static int CurrentPersonaState = 1; public static bool UserPlaying = false; + public static bool isAwayState = false; + public static bool AwayMsg = false; + public static bool AwayCustomMessageList = false; + public static bool isSendingMsgs = false; + public static bool FriendsLoaded = false; - public static ulong CurrentAdmin; - public static string webAPIUserNonce; - - public static IDictionary PrivacySettings = new Dictionary(); + // Static Login and Session State + public static bool isRunning = false; + public static EResult LastLogOnResult; + public static string LastMessageReceived, LastMessageSent; + public static string LastLogOnResultString => LastLogOnResult.ToString(); // Optional, if you need the result as a string - public static string myWebAPIUser, myUserNonce, myUniqueId, APIKey; + // Static User Interaction Information + public static bool ChatLogger = false; + public static ulong CurrentAdmin; + public static string steamID; + // Static Friends and Privacy Information public static List Friends { get; private set; } + public static IDictionary PrivacySettings = new Dictionary(); public static Dictionary ClanDictionary = new Dictionary(); public static Dictionary OfficerClanDictionary = new Dictionary(); - - public static GamesHandler gamesHandler; - + // Static Steam Client Information + public static SteamClient steamClient; + private static CallbackManager MercuryManager; + public static SteamFriends steamFriends { get; set; } + private SteamUser steamUser; public static SteamMatchmaking steamMM; public static SteamUnifiedMessages steamUnified; static SteamUnifiedMessages.UnifiedService playerService; static JobID playerRequest = JobID.Invalid; - - SessionData sessiondata = new SessionData(); - - - public static bool isAwayState = false; - public static bool AwayMsg = false; - public static bool AwayCustomMessageList = false; - public static bool FriendsLoaded = false; - public static bool isSendingMsgs = false; - - - public static bool IsWebLoggedIn { get; private set; } - public static string LoginStatus = "Not connected..."; - - // private static string NewloginKey = null; - private static bool cookiesAreInvalid = true; - public static string AvatarHash, MessageString, ChangeState; + public static GamesHandler gamesHandler; public HandleLogin() @@ -417,10 +412,6 @@ private void OnLoggedOn(SteamUser.LoggedOnCallback callback) } - // SessionData.AccessToken = File.ReadAllText(Program.SentryFolder + user + "_tkn.data"); - - // CookieContainer cookieContainer = sessiondata.GetCookies(); - LastLogOnResult = callback.Result; Console.WriteLine("[] - Successfully logged on!"); @@ -444,7 +435,7 @@ private void OnLoggedOn(SteamUser.LoggedOnCallback callback) LastLogOnResult = EResult.OK; // myUserNonce = callback.WebAPIUserNonce; - // steamFriends.SetPersonaState(CurrentPersonaState); + // steamFriends.SetPersonaState(CurrentPersonaState); var ListUserSettings = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)); foreach (var a in ListUserSettings.Accounts) @@ -522,31 +513,6 @@ public static void GetPrivacySettings() playerRequest = playerService.SendMessage(x => x.GetPrivacySettings(req)); } - - //private void WebAPIUser(SteamUser.WebAPIUserNonceCallback webCallback) - //{ - // Console.WriteLine("[" + Program.TOOLNAME + "] - Received new WebAPIUserNonce."); - - // if (webCallback.Result == EResult.OK) - // { - // if (myUserNonce == webCallback.Nonce) - // { - // Thread.Sleep(30000); - // steamUser.RequestWebAPIUserNonce(); - - // } - // else - // { - // myUserNonce = webCallback.Nonce; - // UserWebLogOn(); - // } - // } - // else - // { - // Console.WriteLine("[" + Program.TOOLNAME + "] - WebAPIUserNonce Error: " + webCallback.Result); - // } - //} - private void OnPersonaState(SteamFriends.PersonaStateCallback callback) { SteamID friendID = callback.FriendID; @@ -743,7 +709,7 @@ public void CreateFriendsListIfNecessary() private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG { - if (ChatLogger == true && callback.EntryType == EChatEntryType.ChatMsg) + if (ChatLogger && callback.EntryType == EChatEntryType.ChatMsg) { ulong FriendID = callback.Sender; string Message = callback.Message; @@ -751,58 +717,70 @@ private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG string FriendName = steamFriends.GetFriendPersonaName(FriendID); string nameClean = Regex.Replace(FriendName, "[^A-Za-z0-9 _]", ""); - if (!Directory.Exists(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64())) + // Ensure the chat logs directory exists + string userSteamID = steamClient.SteamID.ConvertToUInt64().ToString(); + string chatLogDirectory = Path.Combine(Program.ChatLogsFolder, userSteamID); + if (!Directory.Exists(chatLogDirectory)) { - Directory.CreateDirectory(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64()); + Directory.CreateDirectory(chatLogDirectory); } - string FriendIDName = @"\[" + FriendID + "] - " + nameClean + ".txt"; - string pathLog = Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64() + FriendIDName; - - string FinalMsg = "[" + DateTime.Now + "] " + FriendName + ": " + Message; + // Log file path + string FriendIDName = $"[{FriendID}] - {nameClean}.txt"; + string pathLog = Path.Combine(chatLogDirectory, FriendIDName); + // Final message format + string FinalMsg = $"[{DateTime.Now}] {FriendName}: {Message}"; string Separator = "โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€"; - string[] files = Directory.GetFiles(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64(), "[" + FriendID + "]*.txt"); + + // Check if log file exists for the friend + string[] files = Directory.GetFiles(chatLogDirectory, $"[{FriendID}]*.txt"); if (files.Length > 0)//file exist { - string[] LastDate = File.ReadLines(files[0]).Last().Split(' '); LastDate[0] = LastDate[0].Substring(1); + string[] LastDate = File.ReadLines(files[0]).Last().Split(' '); + LastDate[0] = LastDate[0].Substring(1); + using (var tw = new StreamWriter(files[0], true)) + { + + if (LastDate[0] != DateTime.Now.Date.ToShortDateString()) { - tw.WriteLine(Separator + "\n" + FinalMsg); + tw.WriteLine($"{Separator}\n{FinalMsg}"); } else { tw.WriteLine(FinalMsg); } + } } else { FileInfo file = new FileInfo(pathLog); file.Directory.Create(); - File.WriteAllText(pathLog, FinalMsg + "\n"); + File.WriteAllText(pathLog, $"{FinalMsg}\n"); } } if (callback.EntryType == EChatEntryType.ChatMsg) { + // Deserialize once to reuse data var list = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)); - foreach (var a in list.Accounts) + var currentAccount = list.Accounts.FirstOrDefault(a => a.username == CurrentUsername); + if (currentAccount != null) { - if (a.username == CurrentUsername) - { - CurrentAdmin = a.AdminID; - } + CurrentAdmin = currentAccount.AdminID; } if (callback.Sender == CurrentAdmin) { string command = callback.Message.Split(' ')[0]; - string message = callback.Message.Replace(command, ""); + //string message = callback.Message.Replace(command, ""); + string message = callback.Message.Substring(command.Length).Trim(); switch (command) { @@ -824,7 +802,7 @@ private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG break; case ".pcoff": var shutdown = new ProcessStartInfo("shutdown", "/s /t 0") { CreateNoWindow = true, UseShellExecute = false }; - steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Going down..." + "\r\n\r\n" + Program.TOOLNAME); + steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Shutdown..." + "\r\n\r\n" + Program.TOOLNAME); Thread.Sleep(500); Process.Start(shutdown); break; @@ -839,38 +817,45 @@ private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG Logout(); break; case ".play": - string clearGames = callback.Message.Replace(".play", ""); + // string clearGames = callback.Message.Replace(".play", ""); + string clearGames = callback.Message.Substring(".play ".Length).Trim(); // Remove ".play" from the start + List gameuints = new List(); - foreach (var a in JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts) + + var accounts = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts; + + // Find the current account + var account = accounts.FirstOrDefault(a => a.username == CurrentUsername); + + if (account != null) { - if (a.username == CurrentUsername) + if (account.Games.Count == 0) + { + steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, + "Error: no appids in accounts.json. Use Gather AppIDS\r\n\r\n" + Program.TOOLNAME); + } + else if (account.Games.Count >= 32) + { + steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, + "Error: Max games allowed 32.\r\n\r\n" + Program.TOOLNAME); + return; + } + else { - if (a.Games.Count == 0) + // Add game app_ids to the list + gameuints.AddRange(account.Games.Select(game => game.app_id)); + + // If a custom name for the game is provided + if (!string.IsNullOrEmpty(clearGames)) { - steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Error: no appids in accounts.json. Use Gather AppIDS" + "\r\n\r\n" + Program.TOOLNAME); + PlayGames(gameuints, clearGames + " | Mercury"); + steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, + "Playing...\r\n\r\n" + Program.TOOLNAME); } else { - if (a.Games.Count >= 32) - { - steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Error: Max games allowed 32." + "\r\n\r\n" + Program.TOOLNAME); - return; - } - for (int i = 0; i < a.Games.Count; i++) - { - gameuints.Add(a.Games[i].app_id); - } - - if (clearGames.Length != 0) - { - PlayGames(gameuints, clearGames + " | Mercury โ˜ฟ"); - steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Playing..." + "\r\n\r\n" + Program.TOOLNAME); - - } - else - { - steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Error: Please enter a custom name after '.play custom name game'" + "\r\n\r\n" + Program.TOOLNAME); - } + steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, + "Error: Please enter a custom name after '.play custom name game'\r\n\r\n" + Program.TOOLNAME); } } } @@ -879,7 +864,7 @@ private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG string clearNoN = callback.Message.Replace(".non ", ""); if (clearNoN.Length < 50) { - Utils.PlayNonSteamGame(clearNoN + " | Mercury โ˜ฟ"); + Utils.PlayNonSteamGame(clearNoN + " | Mercury"); steamFriends.SendChatMessage(CurrentAdmin, EChatEntryType.ChatMsg, "Playing: " + clearNoN + "\r\n\r\n" + Program.TOOLNAME); } else @@ -900,80 +885,75 @@ private void OnFriendMsg(SteamFriends.FriendMsgCallback callback) // Auto MSG } } - if (AwayMsg == true || isAwayState == true) + if (AwayMsg || isAwayState) { steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, MessageString + "\r\n\r\n" + Program.TOOLNAME); } - - if (AwayCustomMessageList == true) + // Handle Away Custom Message List + if (AwayCustomMessageList) { - List CMessages = new List();// secalhar nem criar lista, secalhar usar a lista do json e pegar na random direta ai - Random random = new Random(); - int r = 0; - // CMessages.Add("I'm using Mercury: Ultimate free open source Steam Tool! - https://github.com/sp0ok3r/Mercury"); // * + List CMessages = currentAccount?.AFKMessages.Select(m => m.Message).ToList() ?? new List(); + + CMessages.Add("I'm using Mercury: The Ultimate free open source Steam Tool! - https://github.com/sp0ok3r/Mercury"); + - foreach (var a in JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts) + if (CMessages.Any()) { - if (a.username == CurrentUsername) - { - for (int i = 0; i < a.AFKMessages.Count; i++) - { - if (CMessages.Count != a.AFKMessages.Count) - { - CMessages.Add(a.AFKMessages[i].Message); - } - } - r = random.Next(0, a.AFKMessages.Count); // +1 ? por causa da de cima? - } + Random random = new Random(); + int r = random.Next(0, CMessages.Count); + steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, CMessages[r] + "\r\n\r\n" + Program.TOOLNAME); } - steamFriends.SendChatMessage(callback.Sender, EChatEntryType.ChatMsg, CMessages[r] + "\r\n\r\n" + Program.TOOLNAME); } } } private void OnFriendEchoMsg(SteamFriends.FriendMsgEchoCallback callback) { - if (ChatLogger == true && callback.EntryType == EChatEntryType.ChatMsg) + if (ChatLogger && callback.EntryType == EChatEntryType.ChatMsg) { - ulong FriendID = callback.Recipient; - string Message = callback.Message; + ulong friendID = callback.Recipient; + string message = callback.Message; - string FriendName = steamFriends.GetFriendPersonaName(FriendID); - string nameClean = Regex.Replace(FriendName, "[^A-Za-z0-9 _]", ""); + string friendName = steamFriends.GetFriendPersonaName(friendID); + string cleanName = Regex.Replace(friendName, "[^A-Za-z0-9 _]", ""); - string FriendIDName = @"\[" + FriendID + "] - " + nameClean + ".txt"; - string pathLog = Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64() + FriendIDName; - - if (!Directory.Exists(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64())) + // Calculate the log file path and ensure the directory exists + string steamIDString = steamClient.SteamID.ConvertToUInt64().ToString(); + string directoryPath = Path.Combine(Program.ChatLogsFolder, steamIDString); + if (!Directory.Exists(directoryPath)) { - Directory.CreateDirectory(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64()); + Directory.CreateDirectory(directoryPath); } + // Prepare final message and log file path + string finalMessage = $"[{DateTime.Now}] {steamFriends.GetPersonaName()}: {message}"; + string logFilePath = Path.Combine(directoryPath, $"[{friendID}] - {cleanName}.txt"); - string FinalMsg = "[" + DateTime.Now + "] " + steamFriends.GetPersonaName() + ": " + Message; - string[] files = Directory.GetFiles(Program.ChatLogsFolder + @"\" + steamClient.SteamID.ConvertToUInt64(), "[" + FriendID + "]*.txt"); - - string Separator = "โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€"; + // Check if file exists and write the message accordingly + string[] existingFiles = Directory.GetFiles(directoryPath, $"[{friendID}]*.txt"); + + const string Separator = "โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€"; - if (files.Length > 0)//file exist + if (existingFiles.Length > 0) // File exists { - string[] LastDate = File.ReadLines(files[0]).Last().Split(' '); LastDate[0] = LastDate[0].Substring(1); - using (var tw = new StreamWriter(files[0], true)) - { + string[] lastDate = File.ReadLines(existingFiles[0]).Last().Split(' '); + lastDate[0] = lastDate[0].Substring(1); // Remove the opening bracket - if (LastDate[0] != DateTime.Now.Date.ToShortDateString()) + using (var tw = new StreamWriter(existingFiles[0], true)) + { + if (lastDate[0] != DateTime.Now.Date.ToShortDateString()) { - tw.WriteLine(Separator + "\n" + FinalMsg); + tw.WriteLine($"{Separator}\n{finalMessage}"); } else { - tw.WriteLine(FinalMsg); + tw.WriteLine(finalMessage); } } } else { - FileInfo file = new FileInfo(pathLog); + FileInfo file = new FileInfo(logFilePath); file.Directory.Create(); - File.WriteAllText(pathLog, FinalMsg + "\n"); + File.WriteAllText(logFilePath, finalMessage + "\n"); } } } @@ -982,28 +962,34 @@ public void SendMsg2AllFriends(string message, bool Only2Receipts) { isSendingMsgs = true; int princessas = 0; + + // Read the accounts file only once + var accounts = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts; + for (int i = 0; i <= steamFriends.GetFriendCount(); i++) { + SteamID allfriends = steamFriends.GetFriendByIndex(i); - if (allfriends.ConvertToUInt64() != 0) + ulong friendID = allfriends.ConvertToUInt64(); + + if (friendID != 0) { if (Only2Receipts) { - foreach (var a in JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts) + var account = accounts.FirstOrDefault(a => a.username == CurrentUsername); // Find current account once + + if (account != null && account.MsgRecipients.Any(s => s.Contains(friendID.ToString()))) { - if (a.username == CurrentUsername && a.MsgRecipients.Any(s => s.Contains(allfriends.ConvertToUInt64().ToString()))) - { - princessas++; - steamFriends.SendChatMessage(allfriends.ConvertToUInt64(), EChatEntryType.ChatMsg, message + "\r\n\r\n" + Program.TOOLNAME); - Thread.Sleep(500); - } + princessas++; + steamFriends.SendChatMessage(friendID, EChatEntryType.ChatMsg, message + "\r\n\r\n" + Program.TOOLNAME); + Thread.Sleep(500); // Keep sleep if necessary } } else { princessas++; - steamFriends.SendChatMessage(allfriends.ConvertToUInt64(), EChatEntryType.ChatMsg, message + "\r\n\r\n" + Program.TOOLNAME); - Thread.Sleep(500); + steamFriends.SendChatMessage(friendID, EChatEntryType.ChatMsg, message + "\r\n\r\n" + Program.TOOLNAME); + Thread.Sleep(500); // Keep sleep if necessary } } } diff --git a/MercuryBOT/Helpers/Emojis.cs b/MercuryBOT/Helpers/Emojis.cs index 4c54713..abaa88a 100644 --- a/MercuryBOT/Helpers/Emojis.cs +++ b/MercuryBOT/Helpers/Emojis.cs @@ -1,5 +1,4 @@ ๏ปฟusing System; -using System.Collections.Generic; namespace MercuryBOT.Helpers { diff --git a/MercuryBOT/Helpers/Extensions.cs b/MercuryBOT/Helpers/Extensions.cs index f94f71c..70a0c8f 100644 --- a/MercuryBOT/Helpers/Extensions.cs +++ b/MercuryBOT/Helpers/Extensions.cs @@ -23,8 +23,6 @@ using System.Linq; using System.Diagnostics; using System.Runtime.InteropServices; -using System.Security.Cryptography; -using System.Windows.Forms; using System.Text.RegularExpressions; namespace MercuryBOT.Helpers diff --git a/MercuryBOT/Helpers/HtmlTable.cs b/MercuryBOT/Helpers/HtmlTable.cs index 4d9b98e..d9ed7bb 100644 --- a/MercuryBOT/Helpers/HtmlTable.cs +++ b/MercuryBOT/Helpers/HtmlTable.cs @@ -1,8 +1,5 @@ ๏ปฟusing System; -using System.Collections.Generic; -using System.Linq; using System.Text; -using System.Threading.Tasks; namespace MercuryBOT.Helpers { diff --git a/MercuryBOT/Helpers/SessionData.cs b/MercuryBOT/Helpers/SessionData.cs index b54cd47..fdf90d6 100644 --- a/MercuryBOT/Helpers/SessionData.cs +++ b/MercuryBOT/Helpers/SessionData.cs @@ -1,10 +1,8 @@ ๏ปฟusing Newtonsoft.Json; using System; -using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Net; -using System.Text; using System.Threading.Tasks; namespace Mercury.Helpers diff --git a/MercuryBOT/Main.Designer.cs b/MercuryBOT/Main.Designer.cs index 0a194c0..63ef237 100644 --- a/MercuryBOT/Main.Designer.cs +++ b/MercuryBOT/Main.Designer.cs @@ -30,31 +30,31 @@ protected override void Dispose(bool disposing) private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle424 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle425 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle426 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle427 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle428 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle429 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle406 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle407 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle408 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle430 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle431 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle432 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle433 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle434 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle435 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle436 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle437 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle438 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle439 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle440 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle441 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle442 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle443 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle444 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); this.metroTab_Message = new MetroFramework.Controls.MetroTabPage(); this.Chatlog_Folder = new MetroFramework.Controls.MetroLink(); this.chck_Send2Receipts = new MetroFramework.Controls.MetroCheckBox(); @@ -144,13 +144,9 @@ private void InitializeComponent() this.metroTextBox5 = new MetroFramework.Controls.MetroTextBox(); this.panel1 = new System.Windows.Forms.Panel(); this.btn_killsteamwebhelper = new MetroFramework.Controls.MetroButton(); - this.metroButton2 = new MetroFramework.Controls.MetroButton(); - this.btn_rateup = new MetroFramework.Controls.MetroButton(); this.btn_clearUnreadMsg = new MetroFramework.Controls.MetroButton(); this.btn_commentsGather = new MetroFramework.Controls.MetroButton(); - this.btn_ProfileRepu = new MetroFramework.Controls.MetroButton(); this.btn_changeprofSettings = new MetroFramework.Controls.MetroButton(); - this.btn_clearuserAliases = new MetroFramework.Controls.MetroButton(); this.btn_exitgroups = new MetroFramework.Controls.MetroButton(); this.Btn_getProfileBackG = new MetroFramework.Controls.MetroButton(); this.btn_importKeys = new MetroFramework.Controls.MetroButton(); @@ -162,6 +158,8 @@ private void InitializeComponent() this.txtBox_redeemKey = new MetroFramework.Controls.MetroTextBox(); this.lbl_redeemkey = new MetroFramework.Controls.MetroLabel(); this.metroTab_Settings = new MetroFramework.Controls.MetroTabPage(); + this.metroCheckBox10 = new MetroFramework.Controls.MetroCheckBox(); + this.metroCheckBox9 = new MetroFramework.Controls.MetroCheckBox(); this.metroLabel28 = new MetroFramework.Controls.MetroLabel(); this.combox_notifEffect = new MetroFramework.Controls.MetroComboBox(); this.richTextBox7 = new System.Windows.Forms.RichTextBox(); @@ -206,6 +204,8 @@ private void InitializeComponent() this.metroLabel4 = new MetroFramework.Controls.MetroLabel(); this.metroLink_csharp = new MetroFramework.Controls.MetroLink(); this.metroLink_microsoft = new MetroFramework.Controls.MetroLink(); + this.pictureBox_Github = new System.Windows.Forms.PictureBox(); + this.pictureBox_Discord = new System.Windows.Forms.PictureBox(); this.Mercury_notifyIcon = new System.Windows.Forms.NotifyIcon(this.components); this.IconContextMenu = new MetroFramework.Controls.MetroContextMenu(this.components); this.toolStrip_AccClient = new System.Windows.Forms.ToolStripMenuItem(); @@ -263,10 +263,13 @@ private void InitializeComponent() this.metroButton24 = new MetroFramework.Controls.MetroButton(); this.metroButton26 = new MetroFramework.Controls.MetroButton(); this.metroButton33 = new MetroFramework.Controls.MetroButton(); + this.pic_sparkles = new System.Windows.Forms.PictureBox(); + this.picBox_Restart = new System.Windows.Forms.PictureBox(); this.btnLabel_PersonaAndFlag = new System.Windows.Forms.Button(); this.Panel_UserInfo = new MetroFramework.Controls.MetroPanel(); this.lbl_currentUsername = new MetroFramework.Controls.MetroLabel(); this.panel_steamStates = new MetroFramework.Controls.MetroPanel(); + this.picBox_SteamAvatar = new System.Windows.Forms.PictureBox(); this.lbl_connecting = new MetroFramework.Controls.MetroLabel(); this.Trolha = new System.Windows.Forms.Timer(this.components); this.metroTabControl1 = new MetroFramework.Controls.MetroTabControl(); @@ -326,11 +329,6 @@ private void InitializeComponent() this.metroScrollBar4 = new MetroFramework.Controls.MetroScrollBar(); this.metroGrid4 = new MetroFramework.Controls.MetroGrid(); this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pic_sparkles = new System.Windows.Forms.PictureBox(); - this.picBox_SteamAvatar = new System.Windows.Forms.PictureBox(); - this.picBox_Restart = new System.Windows.Forms.PictureBox(); - this.pictureBox_Github = new System.Windows.Forms.PictureBox(); - this.pictureBox_Discord = new System.Windows.Forms.PictureBox(); this.pictureBox_MercuryLogo = new System.Windows.Forms.PictureBox(); this.metroTab_Message.SuspendLayout(); this.metroTab_Games.SuspendLayout(); @@ -342,15 +340,21 @@ private void InitializeComponent() this.metroTab_Friends.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.FriendsList_Grid)).BeginInit(); this.metroTab_Tasks.SuspendLayout(); + this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.CDKeys_Grid)).BeginInit(); this.metroTab_Settings.SuspendLayout(); this.metroTab_Infos.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Github)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Discord)).BeginInit(); this.IconContextMenu.SuspendLayout(); this.metroPanel6.SuspendLayout(); this.metroPanel8.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.metroGrid1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_sparkles)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picBox_Restart)).BeginInit(); this.Panel_UserInfo.SuspendLayout(); this.panel_steamStates.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picBox_SteamAvatar)).BeginInit(); this.metroTabControl1.SuspendLayout(); this.metroTabPage1.SuspendLayout(); this.metroTabPage2.SuspendLayout(); @@ -360,11 +364,6 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.metroGrid3)).BeginInit(); this.metroTabPage5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.metroGrid4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pic_sparkles)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.picBox_SteamAvatar)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.picBox_Restart)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Github)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Discord)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_MercuryLogo)).BeginInit(); this.SuspendLayout(); // @@ -1002,27 +1001,27 @@ private void InitializeComponent() this.GamesList_Grid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.GamesList_Grid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.GamesList_Grid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle424.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle424.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle424.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle424.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle424.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle424.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle424.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.GamesList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle424; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.GamesList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.GamesList_Grid.ColumnHeadersHeight = 17; this.GamesList_Grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.GamesList_Grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.HeaderAppName1, this.HeaderAppID1}); - dataGridViewCellStyle425.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle425.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle425.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle425.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle425.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle425.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle425.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.GamesList_Grid.DefaultCellStyle = dataGridViewCellStyle425; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.GamesList_Grid.DefaultCellStyle = dataGridViewCellStyle2; this.GamesList_Grid.EnableHeadersVisualStyles = false; this.GamesList_Grid.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.GamesList_Grid.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -1031,14 +1030,14 @@ private void InitializeComponent() this.GamesList_Grid.Name = "GamesList_Grid"; this.GamesList_Grid.ReadOnly = true; this.GamesList_Grid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle426.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle426.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle426.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle426.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle426.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle426.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle426.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.GamesList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle426; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.GamesList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.GamesList_Grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.GamesList_Grid.ScrollBars = System.Windows.Forms.ScrollBars.None; this.GamesList_Grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -1317,7 +1316,7 @@ private void InitializeComponent() this.btn_clearRecentapps.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_clearRecentapps.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_clearRecentapps.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_clearRecentapps.Location = new System.Drawing.Point(325, 207); + this.btn_clearRecentapps.Location = new System.Drawing.Point(614, 55); this.btn_clearRecentapps.Name = "btn_clearRecentapps"; this.btn_clearRecentapps.Size = new System.Drawing.Size(129, 79); this.btn_clearRecentapps.Style = MetroFramework.MetroColorStyle.Black; @@ -1410,6 +1409,7 @@ private void InitializeComponent() // btn_steamLogin // this.btn_steamLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); + this.btn_steamLogin.Enabled = false; this.btn_steamLogin.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); this.btn_steamLogin.Location = new System.Drawing.Point(617, 124); this.btn_steamLogin.Name = "btn_steamLogin"; @@ -1433,7 +1433,7 @@ private void InitializeComponent() this.AccountsList_ScrollBar.Name = "AccountsList_ScrollBar"; this.AccountsList_ScrollBar.Orientation = MetroFramework.Controls.MetroScrollOrientation.Vertical; this.AccountsList_ScrollBar.ScrollbarSize = 15; - this.AccountsList_ScrollBar.Size = new System.Drawing.Size(15, 381); + this.AccountsList_ScrollBar.Size = new System.Drawing.Size(15, 384); this.AccountsList_ScrollBar.TabIndex = 23; this.AccountsList_ScrollBar.Theme = MetroFramework.MetroThemeStyle.Dark; this.AccountsList_ScrollBar.UseBarColor = true; @@ -1451,14 +1451,14 @@ private void InitializeComponent() this.AccountsList_Grid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.AccountsList_Grid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.AccountsList_Grid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle427.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle427.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle427.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle427.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle427.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle427.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle427.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.AccountsList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle427; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle4.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.AccountsList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; this.AccountsList_Grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.AccountsList_Grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Headerusername, @@ -1467,14 +1467,14 @@ private void InitializeComponent() this.HeaderLoginKeyY, this.HeaderApiKey}); this.AccountsList_Grid.ContextMenuStrip = this.contextmenu_gridAccs; - dataGridViewCellStyle428.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle428.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle428.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle428.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle428.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle428.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle428.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.AccountsList_Grid.DefaultCellStyle = dataGridViewCellStyle428; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle5.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.AccountsList_Grid.DefaultCellStyle = dataGridViewCellStyle5; this.AccountsList_Grid.EnableHeadersVisualStyles = false; this.AccountsList_Grid.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.AccountsList_Grid.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -1484,18 +1484,18 @@ private void InitializeComponent() this.AccountsList_Grid.Name = "AccountsList_Grid"; this.AccountsList_Grid.ReadOnly = true; this.AccountsList_Grid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle429.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle429.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle429.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle429.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle429.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle429.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle429.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.AccountsList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle429; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle6.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.AccountsList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; this.AccountsList_Grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.AccountsList_Grid.ScrollBars = System.Windows.Forms.ScrollBars.None; this.AccountsList_Grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.AccountsList_Grid.Size = new System.Drawing.Size(611, 399); + this.AccountsList_Grid.Size = new System.Drawing.Size(613, 399); this.AccountsList_Grid.TabIndex = 1; this.AccountsList_Grid.Theme = MetroFramework.MetroThemeStyle.Dark; this.AccountsList_Grid.UseCustomBackColor = true; @@ -1670,7 +1670,7 @@ private void InitializeComponent() this.MercuryTabControl.Location = new System.Drawing.Point(17, 79); this.MercuryTabControl.Multiline = true; this.MercuryTabControl.Name = "MercuryTabControl"; - this.MercuryTabControl.SelectedIndex = 2; + this.MercuryTabControl.SelectedIndex = 0; this.MercuryTabControl.ShowToolTips = true; this.MercuryTabControl.Size = new System.Drawing.Size(777, 464); this.MercuryTabControl.TabIndex = 1; @@ -1818,27 +1818,27 @@ private void InitializeComponent() this.FriendsList_Grid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.FriendsList_Grid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.FriendsList_Grid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle406.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle406.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle406.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle406.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle406.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle406.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle406.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.FriendsList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle406; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle7.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.FriendsList_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; this.FriendsList_Grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.FriendsList_Grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.HFriendID, this.HName, this.FLastLogoff}); - dataGridViewCellStyle407.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle407.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle407.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle407.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle407.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle407.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle407.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.FriendsList_Grid.DefaultCellStyle = dataGridViewCellStyle407; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle8.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.FriendsList_Grid.DefaultCellStyle = dataGridViewCellStyle8; this.FriendsList_Grid.EnableHeadersVisualStyles = false; this.FriendsList_Grid.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.FriendsList_Grid.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -1846,14 +1846,14 @@ private void InitializeComponent() this.FriendsList_Grid.Name = "FriendsList_Grid"; this.FriendsList_Grid.ReadOnly = true; this.FriendsList_Grid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle408.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle408.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle408.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle408.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle408.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle408.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle408.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.FriendsList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle408; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle9.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.FriendsList_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; this.FriendsList_Grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.FriendsList_Grid.ScrollBars = System.Windows.Forms.ScrollBars.None; this.FriendsList_Grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -1988,17 +1988,12 @@ private void InitializeComponent() this.metroTab_Tasks.BackColor = System.Drawing.Color.Transparent; this.metroTab_Tasks.Controls.Add(this.btn_steambrowsercache); this.metroTab_Tasks.Controls.Add(this.panel2); - this.metroTab_Tasks.Controls.Add(this.metroTextBox5); this.metroTab_Tasks.Controls.Add(this.panel1); this.metroTab_Tasks.Controls.Add(this.btn_killsteamwebhelper); - this.metroTab_Tasks.Controls.Add(this.metroButton2); this.metroTab_Tasks.Controls.Add(this.btn_clearRecentapps); - this.metroTab_Tasks.Controls.Add(this.btn_rateup); this.metroTab_Tasks.Controls.Add(this.btn_clearUnreadMsg); this.metroTab_Tasks.Controls.Add(this.btn_commentsGather); - this.metroTab_Tasks.Controls.Add(this.btn_ProfileRepu); this.metroTab_Tasks.Controls.Add(this.btn_changeprofSettings); - this.metroTab_Tasks.Controls.Add(this.btn_clearuserAliases); this.metroTab_Tasks.Controls.Add(this.btn_exitgroups); this.metroTab_Tasks.Controls.Add(this.Btn_getProfileBackG); this.metroTab_Tasks.Controls.Add(this.btn_importKeys); @@ -2016,7 +2011,7 @@ private void InitializeComponent() this.metroTab_Tasks.Name = "metroTab_Tasks"; this.metroTab_Tasks.Size = new System.Drawing.Size(769, 422); this.metroTab_Tasks.TabIndex = 6; - this.metroTab_Tasks.Text = "TASKS"; + this.metroTab_Tasks.Text = "TASKS WIP"; this.metroTab_Tasks.UseCustomBackColor = true; this.metroTab_Tasks.VerticalScrollbarBarColor = true; this.metroTab_Tasks.VerticalScrollbarHighlightOnWheel = false; @@ -2028,7 +2023,7 @@ private void InitializeComponent() this.btn_steambrowsercache.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_steambrowsercache.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_steambrowsercache.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_steambrowsercache.Location = new System.Drawing.Point(470, 339); + this.btn_steambrowsercache.Location = new System.Drawing.Point(470, 351); this.btn_steambrowsercache.Name = "btn_steambrowsercache"; this.btn_steambrowsercache.Size = new System.Drawing.Size(129, 35); this.btn_steambrowsercache.TabIndex = 77; @@ -2042,7 +2037,8 @@ private void InitializeComponent() // // panel2 // - this.panel2.Location = new System.Drawing.Point(309, 20); + this.panel2.Controls.Add(this.metroTextBox5); + this.panel2.Location = new System.Drawing.Point(21, 15); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(10, 359); this.panel2.TabIndex = 75; @@ -2063,7 +2059,7 @@ private void InitializeComponent() this.metroTextBox5.CustomButton.UseSelectable = true; this.metroTextBox5.CustomButton.Visible = false; this.metroTextBox5.Lines = new string[0]; - this.metroTextBox5.Location = new System.Drawing.Point(308, 23); + this.metroTextBox5.Location = new System.Drawing.Point(3, 3); this.metroTextBox5.MaxLength = 29; this.metroTextBox5.Multiline = true; this.metroTextBox5.Name = "metroTextBox5"; @@ -2095,7 +2091,7 @@ private void InitializeComponent() this.btn_killsteamwebhelper.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_killsteamwebhelper.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_killsteamwebhelper.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_killsteamwebhelper.Location = new System.Drawing.Point(614, 339); + this.btn_killsteamwebhelper.Location = new System.Drawing.Point(614, 351); this.btn_killsteamwebhelper.Name = "btn_killsteamwebhelper"; this.btn_killsteamwebhelper.Size = new System.Drawing.Size(129, 35); this.btn_killsteamwebhelper.TabIndex = 15; @@ -2107,47 +2103,12 @@ private void InitializeComponent() this.btn_killsteamwebhelper.UseStyleColors = true; this.btn_killsteamwebhelper.Click += new System.EventHandler(this.btn_killsteamwebhelper_Click); // - // metroButton2 - // - this.metroButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.metroButton2.Cursor = System.Windows.Forms.Cursors.Arrow; - this.metroButton2.Enabled = false; - this.metroButton2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.metroButton2.Location = new System.Drawing.Point(325, 339); - this.metroButton2.Name = "metroButton2"; - this.metroButton2.Size = new System.Drawing.Size(129, 35); - this.metroButton2.TabIndex = 14; - this.metroButton2.Text = "..."; - this.metroButton2.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroButton2.UseCustomBackColor = true; - this.metroButton2.UseSelectable = true; - this.metroButton2.UseStyleColors = true; - this.metroButton2.Visible = false; - // - // btn_rateup - // - this.btn_rateup.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.btn_rateup.Cursor = System.Windows.Forms.Cursors.Arrow; - this.btn_rateup.Enabled = false; - this.btn_rateup.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_rateup.Location = new System.Drawing.Point(325, 37); - this.btn_rateup.Name = "btn_rateup"; - this.btn_rateup.Size = new System.Drawing.Size(129, 79); - this.btn_rateup.TabIndex = 5; - this.btn_rateup.Text = "..."; - this.btn_rateup.Theme = MetroFramework.MetroThemeStyle.Dark; - this.MongoTip.SetToolTip(this.btn_rateup, "s00n"); - this.btn_rateup.UseCustomBackColor = true; - this.btn_rateup.UseCustomForeColor = true; - this.btn_rateup.UseSelectable = true; - this.btn_rateup.UseStyleColors = true; - // // btn_clearUnreadMsg // this.btn_clearUnreadMsg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_clearUnreadMsg.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_clearUnreadMsg.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_clearUnreadMsg.Location = new System.Drawing.Point(470, 207); + this.btn_clearUnreadMsg.Location = new System.Drawing.Point(614, 225); this.btn_clearUnreadMsg.Name = "btn_clearUnreadMsg"; this.btn_clearUnreadMsg.Size = new System.Drawing.Size(129, 79); this.btn_clearUnreadMsg.TabIndex = 12; @@ -2156,7 +2117,6 @@ private void InitializeComponent() this.btn_clearUnreadMsg.UseCustomBackColor = true; this.btn_clearUnreadMsg.UseSelectable = true; this.btn_clearUnreadMsg.UseStyleColors = true; - this.btn_clearUnreadMsg.Click += new System.EventHandler(this.btn_clearUnreadMsg_Click); // // btn_commentsGather // @@ -2164,9 +2124,9 @@ private void InitializeComponent() this.btn_commentsGather.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_commentsGather.Enabled = false; this.btn_commentsGather.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_commentsGather.Location = new System.Drawing.Point(614, 207); + this.btn_commentsGather.Location = new System.Drawing.Point(320, 283); this.btn_commentsGather.Name = "btn_commentsGather"; - this.btn_commentsGather.Size = new System.Drawing.Size(129, 79); + this.btn_commentsGather.Size = new System.Drawing.Size(129, 37); this.btn_commentsGather.TabIndex = 13; this.btn_commentsGather.Text = "FILTER \r\nCOMMENTS"; this.btn_commentsGather.Theme = MetroFramework.MetroThemeStyle.Dark; @@ -2175,30 +2135,15 @@ private void InitializeComponent() this.btn_commentsGather.UseSelectable = true; this.btn_commentsGather.Click += new System.EventHandler(this.btn_commentsGather_Click); // - // btn_ProfileRepu - // - this.btn_ProfileRepu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.btn_ProfileRepu.Cursor = System.Windows.Forms.Cursors.Arrow; - this.btn_ProfileRepu.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_ProfileRepu.Location = new System.Drawing.Point(614, 122); - this.btn_ProfileRepu.Name = "btn_ProfileRepu"; - this.btn_ProfileRepu.Size = new System.Drawing.Size(129, 79); - this.btn_ProfileRepu.TabIndex = 10; - this.btn_ProfileRepu.Text = "PROFILE \r\nREPUTATION"; - this.btn_ProfileRepu.Theme = MetroFramework.MetroThemeStyle.Dark; - this.btn_ProfileRepu.UseCustomBackColor = true; - this.btn_ProfileRepu.UseSelectable = true; - this.btn_ProfileRepu.UseStyleColors = true; - this.btn_ProfileRepu.Click += new System.EventHandler(this.btn_ProfileRepu_Click); - // // btn_changeprofSettings // this.btn_changeprofSettings.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_changeprofSettings.Cursor = System.Windows.Forms.Cursors.Arrow; + this.btn_changeprofSettings.Enabled = false; this.btn_changeprofSettings.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_changeprofSettings.Location = new System.Drawing.Point(470, 37); + this.btn_changeprofSettings.Location = new System.Drawing.Point(320, 225); this.btn_changeprofSettings.Name = "btn_changeprofSettings"; - this.btn_changeprofSettings.Size = new System.Drawing.Size(129, 79); + this.btn_changeprofSettings.Size = new System.Drawing.Size(129, 46); this.btn_changeprofSettings.TabIndex = 6; this.btn_changeprofSettings.Text = "PROFILE \r\nSETTINGS"; this.btn_changeprofSettings.Theme = MetroFramework.MetroThemeStyle.Dark; @@ -2207,30 +2152,13 @@ private void InitializeComponent() this.btn_changeprofSettings.UseStyleColors = true; this.btn_changeprofSettings.Click += new System.EventHandler(this.btn_changeprofSettings_Click); // - // btn_clearuserAliases - // - this.btn_clearuserAliases.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); - this.btn_clearuserAliases.Cursor = System.Windows.Forms.Cursors.Arrow; - this.btn_clearuserAliases.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_clearuserAliases.Location = new System.Drawing.Point(614, 37); - this.btn_clearuserAliases.Name = "btn_clearuserAliases"; - this.btn_clearuserAliases.Size = new System.Drawing.Size(129, 79); - this.btn_clearuserAliases.TabIndex = 7; - this.btn_clearuserAliases.Text = "CLEAR \r\nUSER ALIASES"; - this.btn_clearuserAliases.Theme = MetroFramework.MetroThemeStyle.Dark; - this.btn_clearuserAliases.UseCustomBackColor = true; - this.btn_clearuserAliases.UseCustomForeColor = true; - this.btn_clearuserAliases.UseSelectable = true; - this.btn_clearuserAliases.UseStyleColors = true; - this.btn_clearuserAliases.Click += new System.EventHandler(this.btn_clearuserAliases_Click); - // // btn_exitgroups // this.btn_exitgroups.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); this.btn_exitgroups.Cursor = System.Windows.Forms.Cursors.Arrow; this.btn_exitgroups.DisplayFocus = true; this.btn_exitgroups.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.btn_exitgroups.Location = new System.Drawing.Point(470, 122); + this.btn_exitgroups.Location = new System.Drawing.Point(614, 140); this.btn_exitgroups.Name = "btn_exitgroups"; this.btn_exitgroups.Size = new System.Drawing.Size(129, 79); this.btn_exitgroups.TabIndex = 9; @@ -2248,7 +2176,7 @@ private void InitializeComponent() this.Btn_getProfileBackG.Cursor = System.Windows.Forms.Cursors.Arrow; this.Btn_getProfileBackG.DisplayFocus = true; this.Btn_getProfileBackG.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.Btn_getProfileBackG.Location = new System.Drawing.Point(325, 122); + this.Btn_getProfileBackG.Location = new System.Drawing.Point(479, 55); this.Btn_getProfileBackG.Name = "Btn_getProfileBackG"; this.Btn_getProfileBackG.Size = new System.Drawing.Size(129, 79); this.Btn_getProfileBackG.TabIndex = 8; @@ -2278,6 +2206,7 @@ private void InitializeComponent() // btn_reddemkey // this.btn_reddemkey.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(34)))), ((int)(((byte)(34))))); + this.btn_reddemkey.Enabled = false; this.btn_reddemkey.ForeColor = System.Drawing.Color.White; this.btn_reddemkey.Location = new System.Drawing.Point(267, 37); this.btn_reddemkey.Name = "btn_reddemkey"; @@ -2338,25 +2267,25 @@ private void InitializeComponent() this.CDKeys_Grid.BorderStyle = System.Windows.Forms.BorderStyle.None; this.CDKeys_Grid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.CDKeys_Grid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle430.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle430.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle430.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle430.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle430.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle430.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle430.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.CDKeys_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle430; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle10.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.CDKeys_Grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; this.CDKeys_Grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.CDKeys_Grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn1}); - dataGridViewCellStyle431.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle431.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle431.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle431.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle431.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle431.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle431.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.CDKeys_Grid.DefaultCellStyle = dataGridViewCellStyle431; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle11.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.CDKeys_Grid.DefaultCellStyle = dataGridViewCellStyle11; this.CDKeys_Grid.EnableHeadersVisualStyles = false; this.CDKeys_Grid.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.CDKeys_Grid.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -2364,14 +2293,14 @@ private void InitializeComponent() this.CDKeys_Grid.Name = "CDKeys_Grid"; this.CDKeys_Grid.ReadOnly = true; this.CDKeys_Grid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle432.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle432.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle432.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle432.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle432.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle432.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle432.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.CDKeys_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle432; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle12.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle12.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.CDKeys_Grid.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; this.CDKeys_Grid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.CDKeys_Grid.ScrollBars = System.Windows.Forms.ScrollBars.None; this.CDKeys_Grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -2443,6 +2372,8 @@ private void InitializeComponent() // metroTab_Settings // this.metroTab_Settings.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + this.metroTab_Settings.Controls.Add(this.metroCheckBox10); + this.metroTab_Settings.Controls.Add(this.metroCheckBox9); this.metroTab_Settings.Controls.Add(this.metroLabel28); this.metroTab_Settings.Controls.Add(this.combox_notifEffect); this.metroTab_Settings.Controls.Add(this.richTextBox7); @@ -2475,6 +2406,30 @@ private void InitializeComponent() this.metroTab_Settings.VerticalScrollbarHighlightOnWheel = false; this.metroTab_Settings.VerticalScrollbarSize = 10; // + // metroCheckBox10 + // + this.metroCheckBox10.AutoSize = true; + this.metroCheckBox10.Location = new System.Drawing.Point(195, 246); + this.metroCheckBox10.Name = "metroCheckBox10"; + this.metroCheckBox10.Size = new System.Drawing.Size(97, 15); + this.metroCheckBox10.TabIndex = 74; + this.metroCheckBox10.Text = "Startup sound"; + this.metroCheckBox10.Theme = MetroFramework.MetroThemeStyle.Dark; + this.metroCheckBox10.UseSelectable = true; + this.metroCheckBox10.UseStyleColors = true; + // + // metroCheckBox9 + // + this.metroCheckBox9.AutoSize = true; + this.metroCheckBox9.Location = new System.Drawing.Point(204, 214); + this.metroCheckBox9.Name = "metroCheckBox9"; + this.metroCheckBox9.Size = new System.Drawing.Size(102, 15); + this.metroCheckBox9.TabIndex = 73; + this.metroCheckBox9.Text = "Hide in taskbar"; + this.metroCheckBox9.Theme = MetroFramework.MetroThemeStyle.Dark; + this.metroCheckBox9.UseSelectable = true; + this.metroCheckBox9.UseStyleColors = true; + // // metroLabel28 // this.metroLabel28.AutoSize = true; @@ -2521,7 +2476,7 @@ private void InitializeComponent() this.richTextBox7.DetectUrls = false; this.richTextBox7.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.richTextBox7.ForeColor = System.Drawing.Color.Gray; - this.richTextBox7.Location = new System.Drawing.Point(98, 215); + this.richTextBox7.Location = new System.Drawing.Point(96, 291); this.richTextBox7.MaxLength = 50; this.richTextBox7.Multiline = false; this.richTextBox7.Name = "richTextBox7"; @@ -2541,7 +2496,7 @@ private void InitializeComponent() this.richTextBox2.DetectUrls = false; this.richTextBox2.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.richTextBox2.ForeColor = System.Drawing.Color.Gray; - this.richTextBox2.Location = new System.Drawing.Point(473, 215); + this.richTextBox2.Location = new System.Drawing.Point(468, 291); this.richTextBox2.MaxLength = 50; this.richTextBox2.Multiline = false; this.richTextBox2.Name = "richTextBox2"; @@ -2639,12 +2594,9 @@ private void InitializeComponent() this.metroLabel11.Location = new System.Drawing.Point(468, 123); this.metroLabel11.Name = "metroLabel11"; this.metroLabel11.Size = new System.Drawing.Size(87, 19); - this.metroLabel11.Style = MetroFramework.MetroColorStyle.Purple; this.metroLabel11.TabIndex = 18; this.metroLabel11.Text = "Theme color:"; this.metroLabel11.Theme = MetroFramework.MetroThemeStyle.Dark; - this.metroLabel11.UseCustomBackColor = true; - this.metroLabel11.UseCustomForeColor = true; this.metroLabel11.UseStyleColors = true; // // combox_Colors @@ -2700,7 +2652,7 @@ private void InitializeComponent() this.richTextBox1.DetectUrls = false; this.richTextBox1.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.richTextBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204))))); - this.richTextBox1.Location = new System.Drawing.Point(194, 112); + this.richTextBox1.Location = new System.Drawing.Point(204, 110); this.richTextBox1.MaxLength = 50; this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.ReadOnly = true; @@ -3165,6 +3117,29 @@ private void InitializeComponent() this.metroLink_microsoft.UseSelectable = true; this.metroLink_microsoft.Click += new System.EventHandler(this.MetroLink_microsoft_Click); // + // pictureBox_Github + // + this.pictureBox_Github.Cursor = System.Windows.Forms.Cursors.Hand; + this.pictureBox_Github.Image = global::Mercury.Properties.Resources.github_logo; + this.pictureBox_Github.Location = new System.Drawing.Point(175, 122); + this.pictureBox_Github.Name = "pictureBox_Github"; + this.pictureBox_Github.Size = new System.Drawing.Size(33, 34); + this.pictureBox_Github.TabIndex = 63; + this.pictureBox_Github.TabStop = false; + this.pictureBox_Github.Click += new System.EventHandler(this.pictureBox_Github_Click); + // + // pictureBox_Discord + // + this.pictureBox_Discord.Cursor = System.Windows.Forms.Cursors.Hand; + this.pictureBox_Discord.Image = global::Mercury.Properties.Resources.DiscordLogo; + this.pictureBox_Discord.Location = new System.Drawing.Point(265, 122); + this.pictureBox_Discord.Name = "pictureBox_Discord"; + this.pictureBox_Discord.Size = new System.Drawing.Size(33, 34); + this.pictureBox_Discord.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox_Discord.TabIndex = 53; + this.pictureBox_Discord.TabStop = false; + this.pictureBox_Discord.Click += new System.EventHandler(this.pictureBox_Discord_Click); + // // Mercury_notifyIcon // this.Mercury_notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info; @@ -3498,7 +3473,7 @@ private void InitializeComponent() this.metroPanel10.HorizontalScrollbarBarColor = true; this.metroPanel10.HorizontalScrollbarHighlightOnWheel = false; this.metroPanel10.HorizontalScrollbarSize = 10; - this.metroPanel10.Location = new System.Drawing.Point(1, 534); + this.metroPanel10.Location = new System.Drawing.Point(0, 534); this.metroPanel10.Name = "metroPanel10"; this.metroPanel10.Size = new System.Drawing.Size(809, 10); this.metroPanel10.TabIndex = 22; @@ -3520,6 +3495,8 @@ private void InitializeComponent() this.MongoTip.Style = MetroFramework.MetroColorStyle.Default; this.MongoTip.StyleManager = null; this.MongoTip.Theme = MetroFramework.MetroThemeStyle.Default; + this.MongoTip.UseAnimation = false; + this.MongoTip.UseFading = false; // // metroButton1 // @@ -3550,28 +3527,28 @@ private void InitializeComponent() this.metroGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.metroGrid1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.metroGrid1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle433.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle433.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle433.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle433.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle433.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle433.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle433.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle433; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle13.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle13.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; this.metroGrid1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.metroGrid1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn2, this.dataGridViewTextBoxColumn3, this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn5}); - dataGridViewCellStyle434.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle434.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle434.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle434.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle434.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle434.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle434.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.metroGrid1.DefaultCellStyle = dataGridViewCellStyle434; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle14.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.metroGrid1.DefaultCellStyle = dataGridViewCellStyle14; this.metroGrid1.EnableHeadersVisualStyles = false; this.metroGrid1.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.metroGrid1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -3581,14 +3558,14 @@ private void InitializeComponent() this.metroGrid1.Name = "metroGrid1"; this.metroGrid1.ReadOnly = true; this.metroGrid1.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle435.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle435.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle435.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle435.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle435.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); - dataGridViewCellStyle435.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle435.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid1.RowHeadersDefaultCellStyle = dataGridViewCellStyle435; + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle15.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle15.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(185)))), ((int)(((byte)(232))))); + dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid1.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; this.metroGrid1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.metroGrid1.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroGrid1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -4160,6 +4137,32 @@ private void InitializeComponent() this.metroButton33.UseSelectable = true; this.metroButton33.Click += new System.EventHandler(this.btn_reddemkey_Click); // + // pic_sparkles + // + this.pic_sparkles.BackColor = System.Drawing.Color.Transparent; + this.pic_sparkles.Image = global::Mercury.Properties.Resources.sparkles; + this.pic_sparkles.Location = new System.Drawing.Point(-37, -11); + this.pic_sparkles.Name = "pic_sparkles"; + this.pic_sparkles.Size = new System.Drawing.Size(96, 83); + this.pic_sparkles.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pic_sparkles.TabIndex = 48; + this.pic_sparkles.TabStop = false; + this.MongoTip.SetToolTip(this.pic_sparkles, "111:91 -30; -15"); + // + // picBox_Restart + // + this.picBox_Restart.Cursor = System.Windows.Forms.Cursors.Hand; + this.picBox_Restart.Image = global::Mercury.Properties.Resources.Restart_Normal; + this.picBox_Restart.Location = new System.Drawing.Point(754, 6); + this.picBox_Restart.Name = "picBox_Restart"; + this.picBox_Restart.Size = new System.Drawing.Size(25, 20); + this.picBox_Restart.TabIndex = 46; + this.picBox_Restart.TabStop = false; + this.MongoTip.SetToolTip(this.picBox_Restart, "Restart"); + this.picBox_Restart.Click += new System.EventHandler(this.picBox_Restart_Click); + this.picBox_Restart.MouseLeave += new System.EventHandler(this.picBox_Restart_MouseLeave); + this.picBox_Restart.MouseHover += new System.EventHandler(this.picBox_Restart_MouseHover); + // // btnLabel_PersonaAndFlag // this.btnLabel_PersonaAndFlag.BackColor = System.Drawing.Color.Transparent; @@ -4243,6 +4246,18 @@ private void InitializeComponent() this.panel_steamStates.VerticalScrollbarHighlightOnWheel = false; this.panel_steamStates.VerticalScrollbarSize = 10; // + // picBox_SteamAvatar + // + this.picBox_SteamAvatar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); + this.picBox_SteamAvatar.Cursor = System.Windows.Forms.Cursors.Hand; + this.picBox_SteamAvatar.Location = new System.Drawing.Point(1, 1); + this.picBox_SteamAvatar.Name = "picBox_SteamAvatar"; + this.picBox_SteamAvatar.Size = new System.Drawing.Size(50, 51); + this.picBox_SteamAvatar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.picBox_SteamAvatar.TabIndex = 23; + this.picBox_SteamAvatar.TabStop = false; + this.picBox_SteamAvatar.Click += new System.EventHandler(this.PicBox_SteamAvatar_Click); + // // lbl_connecting // this.lbl_connecting.AutoSize = true; @@ -4513,27 +4528,27 @@ private void InitializeComponent() this.metroGrid2.BorderStyle = System.Windows.Forms.BorderStyle.None; this.metroGrid2.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.metroGrid2.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle436.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle436.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle436.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle436.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle436.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle436.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle436.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle436; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle16.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle16.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle16.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16; this.metroGrid2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.metroGrid2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn6, this.dataGridViewTextBoxColumn7, this.dataGridViewTextBoxColumn8}); - dataGridViewCellStyle437.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle437.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle437.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle437.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle437.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle437.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle437.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.metroGrid2.DefaultCellStyle = dataGridViewCellStyle437; + dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle17.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle17.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle17.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.metroGrid2.DefaultCellStyle = dataGridViewCellStyle17; this.metroGrid2.EnableHeadersVisualStyles = false; this.metroGrid2.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.metroGrid2.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -4541,14 +4556,14 @@ private void InitializeComponent() this.metroGrid2.Name = "metroGrid2"; this.metroGrid2.ReadOnly = true; this.metroGrid2.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle438.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle438.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle438.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle438.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle438.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle438.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle438.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid2.RowHeadersDefaultCellStyle = dataGridViewCellStyle438; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle18.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle18.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid2.RowHeadersDefaultCellStyle = dataGridViewCellStyle18; this.metroGrid2.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.metroGrid2.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroGrid2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -4939,27 +4954,27 @@ private void InitializeComponent() this.metroGrid3.BorderStyle = System.Windows.Forms.BorderStyle.None; this.metroGrid3.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.metroGrid3.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle439.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle439.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle439.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle439.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle439.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle439.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle439.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle439; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle19.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle19.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19; this.metroGrid3.ColumnHeadersHeight = 17; this.metroGrid3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.metroGrid3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn10}); - dataGridViewCellStyle440.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle440.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle440.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle440.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle440.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle440.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle440.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.metroGrid3.DefaultCellStyle = dataGridViewCellStyle440; + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle20.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle20.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle20.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.metroGrid3.DefaultCellStyle = dataGridViewCellStyle20; this.metroGrid3.EnableHeadersVisualStyles = false; this.metroGrid3.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.metroGrid3.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -4968,14 +4983,14 @@ private void InitializeComponent() this.metroGrid3.Name = "metroGrid3"; this.metroGrid3.ReadOnly = true; this.metroGrid3.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle441.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle441.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle441.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle441.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle441.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle441.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle441.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid3.RowHeadersDefaultCellStyle = dataGridViewCellStyle441; + dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle21.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle21.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle21.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle21.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid3.RowHeadersDefaultCellStyle = dataGridViewCellStyle21; this.metroGrid3.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.metroGrid3.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroGrid3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -5220,7 +5235,6 @@ private void InitializeComponent() this.metroButton25.UseCustomBackColor = true; this.metroButton25.UseSelectable = true; this.metroButton25.UseStyleColors = true; - this.metroButton25.Click += new System.EventHandler(this.btn_clearUnreadMsg_Click); // // metroButton27 // @@ -5238,7 +5252,6 @@ private void InitializeComponent() this.metroButton27.UseCustomForeColor = true; this.metroButton27.UseSelectable = true; this.metroButton27.UseStyleColors = true; - this.metroButton27.Click += new System.EventHandler(this.btn_ProfileRepu_Click); // // metroButton28 // @@ -5375,25 +5388,25 @@ private void InitializeComponent() this.metroGrid4.BorderStyle = System.Windows.Forms.BorderStyle.None; this.metroGrid4.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.metroGrid4.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle442.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle442.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle442.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); - dataGridViewCellStyle442.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle442.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle442.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle442.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle442; + dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle22.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); + dataGridViewCellStyle22.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle22.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle22.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; this.metroGrid4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.metroGrid4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn11}); - dataGridViewCellStyle443.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle443.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle443.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle443.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); - dataGridViewCellStyle443.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle443.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle443.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.metroGrid4.DefaultCellStyle = dataGridViewCellStyle443; + dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle23.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle23.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109))))); + dataGridViewCellStyle23.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle23.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.metroGrid4.DefaultCellStyle = dataGridViewCellStyle23; this.metroGrid4.EnableHeadersVisualStyles = false; this.metroGrid4.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.metroGrid4.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); @@ -5401,14 +5414,14 @@ private void InitializeComponent() this.metroGrid4.Name = "metroGrid4"; this.metroGrid4.ReadOnly = true; this.metroGrid4.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; - dataGridViewCellStyle444.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle444.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); - dataGridViewCellStyle444.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); - dataGridViewCellStyle444.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle444.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); - dataGridViewCellStyle444.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); - dataGridViewCellStyle444.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.metroGrid4.RowHeadersDefaultCellStyle = dataGridViewCellStyle444; + dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(174)))), ((int)(((byte)(219))))); + dataGridViewCellStyle24.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + dataGridViewCellStyle24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle24.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(198)))), ((int)(((byte)(247))))); + dataGridViewCellStyle24.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); + dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.metroGrid4.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; this.metroGrid4.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.metroGrid4.ScrollBars = System.Windows.Forms.ScrollBars.None; this.metroGrid4.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; @@ -5426,72 +5439,11 @@ private void InitializeComponent() this.dataGridViewTextBoxColumn11.ReadOnly = true; this.dataGridViewTextBoxColumn11.Width = 255; // - // pic_sparkles - // - this.pic_sparkles.BackColor = System.Drawing.Color.Transparent; - this.pic_sparkles.Image = global::Mercury.Properties.Resources.sparkles; - this.pic_sparkles.Location = new System.Drawing.Point(-34, -11); - this.pic_sparkles.Name = "pic_sparkles"; - this.pic_sparkles.Size = new System.Drawing.Size(96, 83); - this.pic_sparkles.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pic_sparkles.TabIndex = 48; - this.pic_sparkles.TabStop = false; - this.MongoTip.SetToolTip(this.pic_sparkles, "111:91 -30; -15"); - // - // picBox_SteamAvatar - // - this.picBox_SteamAvatar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); - this.picBox_SteamAvatar.Cursor = System.Windows.Forms.Cursors.Hand; - this.picBox_SteamAvatar.Location = new System.Drawing.Point(1, 1); - this.picBox_SteamAvatar.Name = "picBox_SteamAvatar"; - this.picBox_SteamAvatar.Size = new System.Drawing.Size(50, 51); - this.picBox_SteamAvatar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.picBox_SteamAvatar.TabIndex = 23; - this.picBox_SteamAvatar.TabStop = false; - this.picBox_SteamAvatar.Click += new System.EventHandler(this.PicBox_SteamAvatar_Click); - // - // picBox_Restart - // - this.picBox_Restart.Cursor = System.Windows.Forms.Cursors.Hand; - this.picBox_Restart.Image = global::Mercury.Properties.Resources.Restart_Normal; - this.picBox_Restart.Location = new System.Drawing.Point(754, 6); - this.picBox_Restart.Name = "picBox_Restart"; - this.picBox_Restart.Size = new System.Drawing.Size(25, 20); - this.picBox_Restart.TabIndex = 46; - this.picBox_Restart.TabStop = false; - this.MongoTip.SetToolTip(this.picBox_Restart, "Restart"); - this.picBox_Restart.Click += new System.EventHandler(this.picBox_Restart_Click); - this.picBox_Restart.MouseLeave += new System.EventHandler(this.picBox_Restart_MouseLeave); - this.picBox_Restart.MouseHover += new System.EventHandler(this.picBox_Restart_MouseHover); - // - // pictureBox_Github - // - this.pictureBox_Github.Cursor = System.Windows.Forms.Cursors.Hand; - this.pictureBox_Github.Image = global::Mercury.Properties.Resources.github_logo; - this.pictureBox_Github.Location = new System.Drawing.Point(175, 122); - this.pictureBox_Github.Name = "pictureBox_Github"; - this.pictureBox_Github.Size = new System.Drawing.Size(33, 34); - this.pictureBox_Github.TabIndex = 63; - this.pictureBox_Github.TabStop = false; - this.pictureBox_Github.Click += new System.EventHandler(this.pictureBox_Github_Click); - // - // pictureBox_Discord - // - this.pictureBox_Discord.Cursor = System.Windows.Forms.Cursors.Hand; - this.pictureBox_Discord.Image = global::Mercury.Properties.Resources.DiscordLogo; - this.pictureBox_Discord.Location = new System.Drawing.Point(265, 122); - this.pictureBox_Discord.Name = "pictureBox_Discord"; - this.pictureBox_Discord.Size = new System.Drawing.Size(33, 34); - this.pictureBox_Discord.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pictureBox_Discord.TabIndex = 53; - this.pictureBox_Discord.TabStop = false; - this.pictureBox_Discord.Click += new System.EventHandler(this.pictureBox_Discord_Click); - // // pictureBox_MercuryLogo // this.pictureBox_MercuryLogo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17))))); this.pictureBox_MercuryLogo.Image = global::Mercury.Properties.Resources.MercuryLogoWhite2; - this.pictureBox_MercuryLogo.Location = new System.Drawing.Point(16, 5); + this.pictureBox_MercuryLogo.Location = new System.Drawing.Point(13, 5); this.pictureBox_MercuryLogo.Name = "pictureBox_MercuryLogo"; this.pictureBox_MercuryLogo.Size = new System.Drawing.Size(229, 92); this.pictureBox_MercuryLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -5540,20 +5492,26 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.FriendsList_Grid)).EndInit(); this.metroTab_Tasks.ResumeLayout(false); this.metroTab_Tasks.PerformLayout(); + this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.CDKeys_Grid)).EndInit(); this.metroTab_Settings.ResumeLayout(false); this.metroTab_Settings.PerformLayout(); this.metroTab_Infos.ResumeLayout(false); this.metroTab_Infos.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Github)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Discord)).EndInit(); this.IconContextMenu.ResumeLayout(false); this.metroPanel6.ResumeLayout(false); this.metroPanel6.PerformLayout(); this.metroPanel8.ResumeLayout(false); this.metroPanel8.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.metroGrid1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pic_sparkles)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picBox_Restart)).EndInit(); this.Panel_UserInfo.ResumeLayout(false); this.Panel_UserInfo.PerformLayout(); this.panel_steamStates.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.picBox_SteamAvatar)).EndInit(); this.metroTabControl1.ResumeLayout(false); this.metroTabPage1.ResumeLayout(false); this.metroTabPage2.ResumeLayout(false); @@ -5566,11 +5524,6 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.metroGrid3)).EndInit(); this.metroTabPage5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.metroGrid4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pic_sparkles)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.picBox_SteamAvatar)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.picBox_Restart)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Github)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_Discord)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_MercuryLogo)).EndInit(); this.ResumeLayout(false); @@ -5683,7 +5636,6 @@ private void InitializeComponent() private MetroFramework.Controls.MetroScrollBar FriendsList_ScrollBar; private MetroFramework.Controls.MetroButton btn_admincmds; private MetroFramework.Controls.MetroCheckBox chck_Minimized; - private MetroFramework.Controls.MetroButton btn_clearuserAliases; private MetroFramework.Controls.MetroLabel lbl_go2ChatLogs; private MetroFramework.Controls.MetroButton btn_loadGamesFromJSON; private System.Windows.Forms.RichTextBox richTextBox1; @@ -5700,13 +5652,11 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem toolStrip_AccMercury; private System.Windows.Forms.ToolStripMenuItem toolStrip_Logout; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private MetroFramework.Controls.MetroButton btn_rateup; private MetroFramework.Controls.MetroLink lbl_totalFriends; private MetroFramework.Controls.MetroCheckBox chck_steam4net; private MetroFramework.Controls.MetroLabel metroLabel26; private MetroFramework.Controls.MetroComboBox combox_defaultTab; private System.Windows.Forms.RichTextBox richTextBox2; - private MetroFramework.Controls.MetroButton btn_ProfileRepu; private MetroFramework.Controls.MetroLink link_reportBugFeature; private MetroFramework.Controls.MetroLabel metroLabel27; private MetroFramework.Controls.MetroButton btn_MsgRecipients; @@ -5723,7 +5673,6 @@ private void InitializeComponent() private MetroFramework.Controls.MetroButton btn_importKeys; private MetroFramework.Controls.MetroButton btn_userdata; private MetroFramework.Controls.MetroButton btn_clearRecentapps; - private MetroFramework.Controls.MetroButton metroButton2; private System.Windows.Forms.Panel panel1; private MetroFramework.Controls.MetroToggle toggle_chatlogger; private MetroFramework.Controls.MetroLabel metroLabel28; @@ -5855,6 +5804,8 @@ private void InitializeComponent() private System.Windows.Forms.DataGridViewTextBoxColumn LASTLOGIN; private System.Windows.Forms.DataGridViewTextBoxColumn HeaderLoginKeyY; private System.Windows.Forms.DataGridViewTextBoxColumn HeaderApiKey; + private MetroFramework.Controls.MetroCheckBox metroCheckBox10; + private MetroFramework.Controls.MetroCheckBox metroCheckBox9; } } diff --git a/MercuryBOT/Main.cs b/MercuryBOT/Main.cs index a4bad51..1f2cbce 100644 --- a/MercuryBOT/Main.cs +++ b/MercuryBOT/Main.cs @@ -138,11 +138,10 @@ private void Main_Shown(object sender, EventArgs e) // Execution will continue here without the need for `break` } - handleLogin.StartLogin(usernameJSON, passwordJSON); + handleLogin.StartLogin(usernameJSON, passwordJSON); } } - [Obsolete] public Main() { InitializeComponent(); @@ -152,12 +151,9 @@ public Main() this.Activate(); this.components.SetStyle(this); RefreshAccountList(); - //Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(1, 1, Width, Height + 5, 15, 15)); - Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(0, 0, Width, Height, 20, 20)); + Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(1, 1, Width, Height + 5, 15, 15)); + - IntPtr ptrLogout = Gdi32.CreateRoundRectRgn(1, 1, btn_logout.Width, btn_logout.Height, 5, 5); - btn_logout.Region = Region.FromHrgn(ptrLogout); - Gdi32.DeleteObject(ptrLogout); foreach (Control tab in MercuryTabControl.Controls) { @@ -166,93 +162,48 @@ public Main() { IntPtr ptr = Gdi32.CreateRoundRectRgn(1, 1, control.Width, control.Height, 5, 5); control.Region = Region.FromHrgn(ptr); - Gdi32.DeleteObject(ptr); } } - IntPtr ptr2 = Gdi32.CreateRoundRectRgn(1, 1, picBox_SteamAvatar.Width, picBox_SteamAvatar.Height, 5, 5); - picBox_SteamAvatar.Region = Region.FromHrgn((IntPtr)Gdi32.CreateRoundRectRgn(1, 1, picBox_SteamAvatar.Width, picBox_SteamAvatar.Height, 5, 5)); - Gdi32.DeleteObject(ptr2); - - panel_steamStates.Region = Region.FromHrgn((IntPtr)Gdi32.CreateRoundRectRgn(1, 1, panel_steamStates.Width, panel_steamStates.Height, 5, 5)); + btn_logout.Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(1, 1, btn_logout.Width, btn_logout.Height, 5, 5)); + picBox_SteamAvatar.Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(1, 1, picBox_SteamAvatar.Width, picBox_SteamAvatar.Height, 5, 5)); + panel_steamStates.Region = Region.FromHrgn(Gdi32.CreateRoundRectRgn(1, 1, panel_steamStates.Width, panel_steamStates.Height, 5, 5)); btn_logout.Visible = false; Trolha.Tick += Trolha_Tick; - - //var age = DateTime.Today.Year-2019; // Calculate the mercury age. 2019-03-28 ๐Ÿ’” - //if (age != 0) - //{ - // lbl_mercuryAge.Text = "MERCURY BOT ยฉ is " + age + " years old! "; - //} - } public void Main_Load(object sender, EventArgs e) { - //CustomMetroMessageBox.Show(this, "Failed to connect to Steam: Connection timed out. Retrying... (Maybe Steam Maintenance..)", "Caution", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Hand); - - - this.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0))); + // this.Font = new Font("Segoe UI", 8F, FontStyle.Regular, GraphicsUnit.Pixel, ((byte)(0))); //lbl_infoversion.Text = "v" + Program.Version.Replace("-", ""); lbl_infoversion2.Text = "v" + Program.Version.Replace("-", ""); var SettingsList = JsonConvert.DeserializeObject(File.ReadAllText(Program.SettingsJsonFile)); + combox_Colors.SelectedIndex = SettingsList.startupColor; - if (SettingsList.hideInTaskBar) - { - toggle_hideInTask.Checked = true; - this.ShowInTaskbar = false; - } - else - { - this.ShowInTaskbar = true; - toggle_hideInTask.Checked = false; - } - toggle_startWindows.Checked = SettingsList.startup; + this.ShowInTaskbar = !SettingsList.hideInTaskBar; + toggle_hideInTask.Checked = SettingsList.hideInTaskBar; - if (SettingsList.startMinimized) - { - chck_Minimized.Checked = true; - this.WindowState = FormWindowState.Minimized; - } - else - { - chck_Minimized.Checked = false; - this.WindowState = FormWindowState.Normal;// - } - if (SettingsList.playsound) - { - toggle_playSound.Checked = true; - new SoundPlayer(Mercury.Properties.Resources.mercury_success).Play(); + chck_Minimized.Checked = SettingsList.startMinimized; + this.WindowState = SettingsList.startMinimized ? FormWindowState.Minimized : FormWindowState.Normal; - } - else - { - toggle_playSound.Checked = false; - } - foreach (TabPage item in this.MercuryTabControl.TabPages) - { - combox_defaultTab.Items.Add(item.Text.TrimEnd()); - } + toggle_playSound.Checked = SettingsList.playsound; + if (SettingsList.playsound) new SoundPlayer(Mercury.Properties.Resources.mercury_success).Play(); - if (SettingsList.startupTab != -1) - { - combox_defaultTab.SelectedIndex = SettingsList.startupTab; - MercuryTabControl.SelectedIndex = SettingsList.startupTab; - } - else - { - combox_defaultTab.SelectedIndex = 0; - MercuryTabControl.SelectedIndex = 0; - } + + combox_defaultTab.Items.AddRange(MercuryTabControl.TabPages.Cast().Select(tab => tab.Text.TrimEnd()).ToArray()); + int startupTab = SettingsList.startupTab != -1 ? SettingsList.startupTab : 0; + combox_defaultTab.SelectedIndex = MercuryTabControl.SelectedIndex = startupTab; + //if (SettingsList.notificationEffect != string.Empty) //{ // // combox_notifEffect.SelectedIndex = Extensions.notifEffects[combox_notifEffect.SelectedIndex]; @@ -350,7 +301,7 @@ private void RafadexAutoUpdate600IQ() } } - public void RefreshAccountList() + public void RefreshAccountList0() { int i = 0; AccountsList_Grid.Rows.Clear(); @@ -396,19 +347,56 @@ public void RefreshAccountList() AccountsList_Grid.ClearSelection(); } + public void RefreshAccountList() + { + AccountsList_Grid.Rows.Clear(); + + var list = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts + .OrderByDescending(x => x.LastLoginTime) + .ToList(); + + var sentryFiles = new HashSet(list.Where(a => File.Exists(Program.SentryFolder + a.username + "_tkn.data")) + .Select(a => a.username)); + + foreach (var a in list) + { + bool apiWeb = !string.IsNullOrEmpty(a.APIWebKey) && a.APIWebKey != "0"; + string[] row = { a.username, a.SteamID.ToString(), "", apiWeb.ToString() }; + + // Add row and configure cell colors + var rowIndex = AccountsList_Grid.Rows.Add(row); + + var cell0 = AccountsList_Grid.Rows[rowIndex].Cells[0];//username + var cell4 = AccountsList_Grid.Rows[rowIndex].Cells[4];//sentry + + // Set ForeColor based on conditions + if (sentryFiles.Contains(a.username)) + { + cell0.Style.ForeColor = Color.White; + } + + if (a.password.Length != 0) + { + cell0.Style.ForeColor = Color.White; + + // Set APIWeb color + cell4.Style.ForeColor = apiWeb ? Color.Green : Color.Red; + } + + // Populate dropdown menus + toolStrip_AccMercury.DropDownItems.Add(a.username); + toolStrip_AccClient.DropDownItems.Add(a.username); + } + + // Update scrollbar and clear selection in one step + AccountsList_ScrollBar.Maximum = AccountsList_Grid.Rows.Count; + AccountsList_Grid.ClearSelection(); + } + #region Buttons private void btn_admincmds_Click(object sender, EventArgs e) { - //MetroFramework.MetroMessageBox.Show(this, ".pcsleep - Puts pc on sleep mode\n" + - // ".pchiber - Puts pc on hibernate mode\n" + - // ".pcrr - Restart PC.\n" + - // ".pcoff - Shutdown PC.\n" + - // ".close - Closes MercuryBOT process.\n" + - // ".logoff - Logoff from current account.\n" + - // ".non customname - Play a non - steam game(change customname to anything)\n" + - // ".play customname - Play a non steam game and appids.", "Mercury - Admin Commands", MessageBoxButtons.OK, MessageBoxIcon.None, 250); - CustomMetroMessageBox.Show(this, ".pcsleep - Puts pc on sleep mode\n" + ".pchiber - Puts pc on hibernate mode\n" + ".pcrr - Restart PC.\n" + @@ -417,10 +405,6 @@ private void btn_admincmds_Click(object sender, EventArgs e) ".logoff - Logoff from current account.\n" + ".non customname - Play a non - steam game(change customname to anything)\n" + ".play customname - Play a non steam game and appids.", "Mercury - Admin Commands", MessageBoxButtons.OK, MessageBoxIcon.Question, 270); - - - - } private void btn_addAcc_Click(object sender, EventArgs e) @@ -565,7 +549,7 @@ public void btn_logout_Click(object sender, EventArgs e) private void chck_afk_CheckedChanged(object sender, EventArgs e) { - if (chck_afk.Checked && HandleLogin.IsLoggedIn == true) + if (chck_afk.Checked && HandleLogin.IsLoggedIn) { HandleLogin.AwayMsg = true; HandleLogin.MessageString = txtBox_msg2Friends.Text; @@ -583,7 +567,7 @@ private void chck_afk_CheckedChanged(object sender, EventArgs e) private void chck_CustomAFKMessages_CheckedChanged(object sender, EventArgs e) { - if (chck_CustomAFKMessages.Checked && HandleLogin.IsLoggedIn == true) + if (chck_CustomAFKMessages.Checked && HandleLogin.IsLoggedIn) { HandleLogin.AwayCustomMessageList = true; chck_afk.Enabled = false; txtBox_msg2Friends.Enabled = false; btn_sendMsg2Friends.Enabled = false; @@ -597,7 +581,7 @@ private void chck_CustomAFKMessages_CheckedChanged(object sender, EventArgs e) private void btn_setName_Click(object sender, EventArgs e) { - if (HandleLogin.IsLoggedIn == true) + if (HandleLogin.IsLoggedIn) { HandleLogin.ChangeCurrentName(txtBox_nameChange.Text); txtBox_nameChange.Clear(); @@ -625,7 +609,7 @@ private void btn_sendMsg2Friends_Click(object sender, EventArgs e) // activate l } } - + SteamClientState = true; int quantasPrincesas = 0; @@ -647,7 +631,7 @@ private void btn_sendMsg2Friends_Click(object sender, EventArgs e) // activate l { quantasPrincesas++; var extratext = "\r\n\r\n" + "Sent using:" + Program.TOOLNAME; - steamfriends002.SendMsgToFriend(friendid, EChatEntryType.k_EChatEntryTypeChatMsg, Encoding.Default.GetBytes(txtBox_msg2Friends.Text + extratext), (txtBox_msg2Friends.Text.Length+extratext.Length) + 1); + steamfriends002.SendMsgToFriend(friendid, EChatEntryType.k_EChatEntryTypeChatMsg, Encoding.Default.GetBytes(txtBox_msg2Friends.Text + extratext), (txtBox_msg2Friends.Text.Length + extratext.Length) + 1); Thread.Sleep(100);// my friend needs some OXYGEN ๐Ÿ˜Œ } } @@ -655,7 +639,7 @@ private void btn_sendMsg2Friends_Click(object sender, EventArgs e) // activate l else { quantasPrincesas++; - msgBytes = Encoding.UTF8.GetBytes(msg + "\r\n\r\n" + "/code"+Program.TOOLNAME); + msgBytes = Encoding.UTF8.GetBytes(msg + "\r\n\r\n" + "/code" + Program.TOOLNAME); steamfriends002.SendMsgToFriend(friendid, EChatEntryType.k_EChatEntryTypeChatMsg, msgBytes, (msgBytes.Length) + 1); Thread.Sleep(100);// my friend needs some OXYGEN ๐Ÿ˜Œ } @@ -697,12 +681,13 @@ private async void btn_loadFriends_Click(object sender, EventArgs e) if (HandleLogin.IsLoggedIn == true) { var list = JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)); - foreach (var a in list.Accounts) + + // Find the account with the matching username + var account = list.Accounts.FirstOrDefault(a => a.username == HandleLogin.CurrentUsername); + + if (account != null) { - if (a.username == HandleLogin.CurrentUsername) - { - apikey = a.APIWebKey; - } + apikey = account.APIWebKey; } if (string.IsNullOrEmpty(apikey) || apikey == "0") @@ -799,7 +784,7 @@ private void BTN_RemoveFriend_Click(object sender, EventArgs e) public void playNormal() { - if (HandleLogin.IsLoggedIn == true) + if (HandleLogin.IsLoggedIn) { if (GamesList_Grid.Rows.Count <= 32) { @@ -1038,31 +1023,6 @@ private void doLogin(string username) // Start Login handleLogin.StartLogin(usernameJSON, passwordJSON); } - - - - //foreach (var a in JsonConvert.DeserializeObject(File.ReadAllText(Program.AccountsJsonFile)).Accounts) - //{ - // if (a.username == username) - // { - // if (File.Exists(Program.SentryFolder + a.username + "_tkn.data")) - // { - - // } - // else if (string.IsNullOrEmpty(a.password)) - // { - // InfoForm.InfoHelper.CustomMessageBox.Show("Info", "Please add password to: " + a.username); - // return; - // } - // usernameJSON = a.username; - // passwordJSON = a.password; - // //break; - // } - //} - - - //lbl_infoLogin.Text = "Trying to login..."; - } private void combox_uimodes_SelectedIndexChanged(object sender, EventArgs e) @@ -1240,10 +1200,6 @@ private void HandleFormMsgRecipientsClosed(Object sender, FormClosedEventArgs e) { btn_MsgRecipients.Enabled = true; } - private void HandleFormSteamRepClosed(Object sender, FormClosedEventArgs e) - { - btn_ProfileRepu.Enabled = true; - } #endregion #region Mouse Move @@ -1584,85 +1540,90 @@ private void CurrentUserSafeUpdater() // lbl_infoLogin.Refresh(); //lbl_infoLogin.Text += HandleLogin.LoginStatus.ToString(); - // pic_sparkles.Location = new Point(imageposition[randomIndex, 1]); - lbl_logininfoTempp.Text = HandleLogin.LastLogOnResult.ToString(); - if (HandleLogin.LastLogOnResult.ToString() == "ServiceUnavailable") - { - btn_login2selected.Enabled = false; - } - else - { - btn_login2selected.Enabled = true; - } + + string lastLogonResult = HandleLogin.LastLogOnResult.ToString(); + bool isLoggedIn = HandleLogin.IsLoggedIn; + + + lbl_logininfoTempp.Text = lastLogonResult; + btn_login2selected.Enabled = lastLogonResult != "ServiceUnavailable"; + // try // { - if (HandleLogin.IsLoggedIn == true) + if (isLoggedIn) { - btn_logout.Visible = true; - //lbl_infoLogin.Text = "Trying to login..."; + // Handle logged-in state + btn_logout.Visible = true; + Panel_UserInfo.Visible = true; + btn_login2selected.Enabled = false; - if (HandleLogin.isSendingMsgs == false) - { - btn_sendMsg2Friends.Enabled = true; - } + // Enable message sending if not already sending + btn_sendMsg2Friends.Enabled = !HandleLogin.isSendingMsgs; + // Set chat logger toggle toggle_chatlogger.Checked = HandleLogin.ChatLogger; - - btn_login2selected.Enabled = false; - Panel_UserInfo.Visible = true; + + // Update persona and flag info + UpdatePersonaAndFlag(); btnLabel_PersonaAndFlag.Invoke(new Action(() => btnLabel_PersonaAndFlag.Text = " " + HandleLogin.UserPersonaName)); - if (HandleLogin.UserPlaying) - { - panel_steamStates.BackColor = Color.Green; - } - else - { - panel_steamStates.BackColor = Color.LightSkyBlue; - } + // Update user info + lbl_currentUsername.Invoke(new Action(() => lbl_currentUsername.Text = HandleLogin.CurrentUsername)); + + // Set steam state color + panel_steamStates.BackColor = HandleLogin.UserPlaying ? Color.Green : Color.LightSkyBlue; + // Set avatar if it's not set if (picBox_SteamAvatar.Image == null) { picBox_SteamAvatar.ImageLocation = handleLogin.GetAvatarLink(HandleLogin.CurrentSteamID); } - - if (btnLabel_PersonaAndFlag.Image == null) - { - try - { - byte[] data = new WebClient().DownloadData("https://flagcdn.com/16x12/" + HandleLogin.UserCountry.ToLower() + ".png"); - btnLabel_PersonaAndFlag.Image = Image.FromStream(new MemoryStream(data)); - - } - catch { } - } - - // combox_states.SelectedIndex = HandleLogin.steamFriends.GetPersonaState; - - lbl_currentUsername.Invoke(new Action(() => lbl_currentUsername.Text = HandleLogin.CurrentUsername)); - //lbl_infoLogin.Text = "Connected"; // return; - - } else { //lbl_infoLogin.Text = "Not logged..."; + // Handle logged-out state btn_logout.Visible = false; Panel_UserInfo.Visible = false; btn_login2selected.Enabled = true; - picBox_SteamAvatar.Image = null; - btnLabel_PersonaAndFlag.Image = null; - panel_steamStates.BackColor = Color.Gray; - picBox_SteamAvatar.BackColor = Color.FromArgb(255, 25, 25, 25); - lbl_currentUsername.Invoke(new Action(() => lbl_currentUsername.Text = "None")); - btnLabel_PersonaAndFlag.Invoke(new Action(() => btnLabel_PersonaAndFlag.Text = "None")); + // Clear games list + GamesList_Grid.Rows.Clear(); + } + } + + private void ResetUserInfo() + { + // Reset the user info fields + picBox_SteamAvatar.Image = null; + btnLabel_PersonaAndFlag.Image = null; + panel_steamStates.BackColor = Color.Gray; + picBox_SteamAvatar.BackColor = Color.FromArgb(255, 25, 25, 25); + + lbl_currentUsername.Invoke(new Action(() => lbl_currentUsername.Text = "None")); + btnLabel_PersonaAndFlag.Invoke(new Action(() => btnLabel_PersonaAndFlag.Text = "None")); + } + + private void UpdatePersonaAndFlag() + { + // Update Persona name and flag image if necessary + btnLabel_PersonaAndFlag.Invoke(new Action(() => btnLabel_PersonaAndFlag.Text = " " + HandleLogin.UserPersonaName)); - GamesList_Grid.Rows.Clear();// return; + if (btnLabel_PersonaAndFlag.Image == null) + { + try + { + byte[] data = new WebClient().DownloadData("https://flagcdn.com/16x12/" + HandleLogin.UserCountry.ToLower() + ".png"); + btnLabel_PersonaAndFlag.Image = Image.FromStream(new MemoryStream(data)); + } + catch + { + // Handle exception (e.g., failed to download flag) + } } } @@ -1749,17 +1710,6 @@ private void btn_changeprofSettings_Click(object sender, EventArgs e) InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged."); } } - private void btn_clearUnreadMsg_Click(object sender, EventArgs e) - { - if (HandleLogin.IsLoggedIn == true) - { - HandleLogin.steamFriends.RequestOfflineMessages(); - } - else - { - InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Not logged."); - } - } private void btn_MsgSelectFriends_Click(object sender, EventArgs e) @@ -1777,14 +1727,6 @@ private void btn_MsgSelectFriends_Click(object sender, EventArgs e) } } - private void btn_ProfileRepu_Click(object sender, EventArgs e) - { - Form SteamRep = new SteamRep.SteamRepCheck(); - SteamRep.FormClosed += HandleFormSteamRepClosed; - btn_ProfileRepu.Enabled = false; - SteamRep.Show(); - } - private void picBox_Restart_MouseHover(object sender, EventArgs e) { picBox_Restart.Image = Mercury.Properties.Resources.Restart_MouseHover; @@ -1960,6 +1902,7 @@ private void btn_addCDKey_Click(object sender, EventArgs e) { //thanks to https://regexr.com/3b63e Match match = new Regex(@"((?![^0-9]{12,}|[^A-z]{12,})([A-z0-9]{4,5}-?[A-z0-9]{4,5}-?[A-z0-9]{4,5}(-?[A-z0-9]{4,5}(-?[A-z0-9]{4,5})?)?))").Match(txtBox_redeemKey.Text); + if (!string.IsNullOrEmpty(txtBox_redeemKey.Text) && match.Success) { txtBox_redeemKey.Clear(); diff --git a/MercuryBOT/Main.resx b/MercuryBOT/Main.resx index 696f96e..de40843 100644 --- a/MercuryBOT/Main.resx +++ b/MercuryBOT/Main.resx @@ -120,9 +120,6 @@ 226, 17 - - 226, 17 - True diff --git a/MercuryBOT/Mercury.csproj b/MercuryBOT/Mercury.csproj index a4b2526..c959988 100644 --- a/MercuryBOT/Mercury.csproj +++ b/MercuryBOT/Mercury.csproj @@ -201,11 +201,11 @@ - + Form - - AccSettings.cs + + AccSettingsForm.cs Form @@ -350,14 +350,14 @@ SelectGames.cs - + Form - + SteamGuard.cs - - AccSettings.cs + + AccSettingsForm.cs Designer @@ -409,7 +409,7 @@ GatherSteamGroups.cs - + SteamGuard.cs diff --git a/MercuryBOT/SteamCommunity/SteamWebold.cs b/MercuryBOT/SteamCommunity/SteamWebold.cs index a68e5b1..506f840 100644 --- a/MercuryBOT/SteamCommunity/SteamWebold.cs +++ b/MercuryBOT/SteamCommunity/SteamWebold.cs @@ -21,10 +21,6 @@ using System.Threading; using System.Collections.Generic; using System.Net.Http; -using System.Threading.Tasks; -using System.Diagnostics; -using MercuryBOT.Helpers; -using System.Globalization; namespace MercuryBOT.SteamCommunity { diff --git a/MercuryBOT/SteamCommunity/Utils.cs b/MercuryBOT/SteamCommunity/Utils.cs index df55e31..8834176 100644 --- a/MercuryBOT/SteamCommunity/Utils.cs +++ b/MercuryBOT/SteamCommunity/Utils.cs @@ -8,21 +8,14 @@ โ– โ– โ– โ– โ– */ using AngleSharp.Html.Parser; -using MercuryBOT.UserSettings; -using Newtonsoft.Json; using SteamKit2; -using SteamKit2.Internal; using SteamProfilePrivacy; using System; using System.Collections.Generic; using System.Collections.Specialized; -using System.Linq; -using System.IO; using Mercury; using System.Threading.Tasks; using Mercury.Helpers; -using Steam.Models.DOTA2; -using SteamPlayerLevel; namespace MercuryBOT.SteamCommunity { diff --git a/MercuryBOT/SteamGroups/GatherSteamGroups.cs b/MercuryBOT/SteamGroups/GatherSteamGroups.cs index 3242203..8d6f88f 100644 --- a/MercuryBOT/SteamGroups/GatherSteamGroups.cs +++ b/MercuryBOT/SteamGroups/GatherSteamGroups.cs @@ -19,7 +19,6 @@ using System.Drawing; using System.IO; using System.Linq; -using System.Net.Http; using System.Text; using System.Text.RegularExpressions; using System.Threading; diff --git a/MercuryBOT/SteamGuard.Designer.cs b/MercuryBOT/SteamGuard/SteamGuard.Designer.cs similarity index 100% rename from MercuryBOT/SteamGuard.Designer.cs rename to MercuryBOT/SteamGuard/SteamGuard.Designer.cs diff --git a/MercuryBOT/SteamGuard.cs b/MercuryBOT/SteamGuard/SteamGuard.cs similarity index 100% rename from MercuryBOT/SteamGuard.cs rename to MercuryBOT/SteamGuard/SteamGuard.cs diff --git a/MercuryBOT/SteamGuard.resx b/MercuryBOT/SteamGuard/SteamGuard.resx similarity index 100% rename from MercuryBOT/SteamGuard.resx rename to MercuryBOT/SteamGuard/SteamGuard.resx