public static void Main(string[] args) { CustomEvents.Game.OnGameLoad += Game_OnGameLoad; PrepareDrawing(); Misc.GetRegionInfo(); Misc.MenuAttach(Misc.Config); if (File.Exists(Config.AppDataDirectory + "\\elosharp.txt")) { nameofplayer = File.ReadAllText(Config.AppDataDirectory + "\\elosharp.txt").ToLower(); } if (Misc.Validregion() && (nameofplayer != "")) { Console.WriteLine("[EloSharp] Configuration set for: " + nameofplayer); Utility.DelayAction.Add(3000, () => { Performlookup(); }); Game.OnWndProc += Game_OnWndProc; var website = Misc.Config.Item("choosewebsite"); website.ValueChanged += delegate { Misc.SetWebsite = Misc.Config.Item("choosewebsite").GetValue <StringList>().SelectedIndex; }; } }