Exemplo n.º 1
0
 public void RenderShadow()
 {
     if (m_Rconfig.IsShowShadow && m_ShadowForm == null)
     {
         m_ShadowForm = new ShadowForm(m_HostForm, m_Rconfig);
         m_ShadowForm.Show();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inicia tudo
        /// </summary>
        public Form1()
        {
            InitializeComponent();
            ShadowForm.ApplyShadows(this);

            // Sete um cursor melhor
            DllCursor.SetHandCursor(this);
        }
Exemplo n.º 3
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.F))
     {
         ShadowForm form = transform.GetComponentInChildren <ShadowForm>();
         if (form.shadowForm)
         {
             form.ExitShadowForm();
         }
         else
         {
             form.EnterShadowForm();
         }
     }
 }
Exemplo n.º 4
0
        public Failbox(string msg, bool sucess)
        {
            InitializeComponent();
            ShadowForm.ApplyShadows(this);

            // Sete um cursor melhor
            DllCursor.SetHandCursor(this);

            label1.Text = msg;

            if (sucess == false)
            {
                pictureBox1.BackgroundImage = Properties.Resources.alert;
            }
        }
Exemplo n.º 5
0
        public SplashScreen()
        {
            InitializeComponent();

            _shadow = new ShadowForm();
            _shadow.Enabled = false;
            _shadow.Show();

            this.BringToFront();
            Disposed += SplashScreen_Disposed;
            Shown += new EventHandler(SplashScreen_Shown);
            #if DEBUG
            versionLabel.Text = string.Format("v{0} (Debug)", Application.ProductVersion);
            #else
            versionLabel.Text = string.Format("v{0}", Application.ProductVersion);
            #endif
        }
Exemplo n.º 6
0
        public SplashScreen()
        {
            InitializeComponent();

            _shadow         = new ShadowForm();
            _shadow.Enabled = false;
            _shadow.Show();


            this.BringToFront();
            Disposed += SplashScreen_Disposed;
            Shown    += new EventHandler(SplashScreen_Shown);
#if DEBUG
            versionLabel.Text = string.Format("v{0} (Debug)", Application.ProductVersion);
#else
            versionLabel.Text = string.Format("v{0}", Application.ProductVersion);
#endif
        }
Exemplo n.º 7
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ShadowForm.SetShadowForm(this);
            foreach (ManagementObject obj in Information.myCPU.Get())
            {
                label2.Text = ("CPU Name:  " + obj["Name"]);
            }
            foreach (ManagementObject obj in Information.myGPU.Get())
            {
                label5.Text = ("GPU Name:  " + obj["Name"]);
            }
            foreach (ManagementObject obj in Information.myOperatingSystem.Get())
            {
                label7.Text = ("Operating System:  " + obj["Caption"] + " " + obj["Version"]);
            }

            long memKb;

            Information.GetPhysicallyInstalledSystemMemory(out memKb);
            label6.Text = ("Total Memory: " + (memKb / 1024 / 1024) + " GB");

            toolTip1.SetToolTip(ButtonNTI, "Required for maximum network performance.");
            toolTip1.SetToolTip(ButtonSR, "Sets the application priority.");
            toolTip1.SetToolTip(ButtonPTO, "Removes the CPU energy limit.");
            toolTip1.SetToolTip(ButtonFSO, "Spectre and Meltdown solver.");
            toolTip1.SetToolTip(ButtonWPS, "Helps to manage Process Priority Efficiently.");
            toolTip1.SetToolTip(ButtonDDN, "Trim for healthy SSD");
            toolTip1.SetToolTip(ButtonJIQ, "Improves Wallpaper quality.");
            toolTip1.SetToolTip(ButtonDLC, "Disable keyboard layout changer shortcut.");
            toolTip1.SetToolTip(ButtonSSD, "Smart Screen disable.");
            toolTip1.SetToolTip(ButtonBSARD, "Disable Blue Screen Auto restart.");
            toolTip1.SetToolTip(ButtonWDS, "Disable Windows Defender.");
            toolTip1.SetToolTip(ButtonVPS, "Prevents vulnerabilities.");
            toolTip1.SetToolTip(ButtonTSD, "Disable Tablet mode.");
            toolTip1.SetToolTip(ButtonHPETD, "Disable HPET.");
        }
Exemplo n.º 8
0
 private void FrmReg_Load(object sender, EventArgs e)
 {
     ShadowForm.SetShadowForm(this);
 }