Пример #1
0
        private void ValorantOverStream_Load(object sender, EventArgs e)
        {
            //Use the updator class to check if there is an update released.
            new Updator();


            backgroundPic.ContextMenuStrip = contextMenu;
            rankingLabel.Parent            = backgroundPic;
            rankingLabel.BackColor         = Color.Transparent;
            PrivateFontCollection pfc = new PrivateFontCollection();

            pfc.AddFontFile(Path.Combine(Directory.GetCurrentDirectory(), "references", "Anton.ttf"));


            //On Load, Set backing and Fonts to labels displaying Rank changes.
            Label[] rankChanges = { recentGame1, recentGame2, recentGame3 };
            foreach (var recentC in rankChanges)
            {
                recentC.Parent    = backgroundPic;
                recentC.BackColor = Color.Transparent;
                recentC.Font      = new Font(pfc.Families[0], 14, FontStyle.Regular);
            }
            rankingLabel.Font     = new Font(pfc.Families[0], 28, FontStyle.Regular);
            rankIconBox.Parent    = backgroundPic;
            rankIconBox.BackColor = Color.Transparent;

            //Add Rank elo point label, set font and parent..
            rankPointsElo.BackColor = Color.Transparent;
            rankPointsElo.Parent    = backgroundPic;
            rankPointsElo.Font      = new Font(pfc.Families[0], 18);

            ValorantOverStream local = this;
            LogicHandler       logic = new LogicHandler(local);
        }
        public LogicHandler(ValorantOverStream instance)
        {
            logic        = this;
            ValorantOver = instance;

            Trace.Write("Reading Settings");
            ReadSettings();
        }
        public LogicHandler(ValorantOverStream instance)
        {
            logic        = this;
            ValorantOver = instance;

            Trace.Write("Reading Settings");
            ReadSettings();
            //Login now attempts when reading settings.
            Trace.Write("Attempting to Login");

            /*login();
             *
             * UpdateLatest();
             * new RankDetection();
             *
             * StartPointRefresh();
             * StartRELOGTimer();*/
        }