Ejemplo n.º 1
0
        public void pictureBox8_Click(object sender, EventArgs e)
        {
            var c = ((PictureBox)sender);

            string[] tag = c.Tag.ToString().Split('_');

            if (tag.Length >= 2)
            {
                if (tag[0] == "off")
                {
                    if (!Activate(tag[1]))
                    {
                        MainGenPact.WriteLogs($"[ ! ] {tag[1]} Failed To Activate !", Color.Red, true);
                        return;
                    }

                    MainGenPact.WriteLogs($"[ + ] {tag[1]} Activated Successfully ! ", Color.GreenYellow, true);
                    c.Tag         = $"on_{tag[1]}";
                    c.Image       = Properties.Resources.toggleon;
                    c.BorderStyle = BorderStyle.FixedSingle;
                }
                else
                {
                    if (!Deactivate(tag[1]))
                    {
                        MainGenPact.WriteLogs($"[ ! ] {tag[1]} Failed To Deactivate !", Color.Red, true);
                        return;
                    }


                    MainGenPact.WriteLogs($"[ + ] {tag[1]} Deactivated Successfully ! ", Color.GreenYellow, true);
                    c.Tag         = $"off_{tag[1]}";
                    c.Image       = Properties.Resources.toggleoff;
                    c.BorderStyle = BorderStyle.None;
                }
            }
        }
Ejemplo n.º 2
0
 private void Memory_Writer_jump(byte[] _Bytes, long bAddr, string ModuleName, string successMsg = "[ + ] Success !" , bool rev = false)
 {
     string _err = null;
     if (GenPactMem.HardCoreMemoryWrite_jump(out _err, _Bytes, ModuleName, (IntPtr)bAddr, null , rev)) MainGenPact.WriteLogs(successMsg, Color.Red, true);
     else MainGenPact.WriteLogs($"{_err}", Color.Red, true);
 }