Esempio n. 1
0
        private void RightSideMenu_Click(object sender, EventArgs e)
        {
            string flag = ((Control)sender).Tag.ToString();

            if (!string.IsNullOrEmpty(flag))
            {
                var _ = Resources.ResourceManager.GetStream($"sound_{flag}_lang");
                if (_ != null)
                {
                    GenPactMem.PlaySound(_);
                }

                Settings.Default.language = flag;
                title_bar_lang.Text       = $"[ {flag.ToUpper()} ]";
                Synch_Environment(Currently_In_Front_Uc);
            }
        }
Esempio n. 2
0
        private void pictureBox8_Click(object sender, EventArgs e)
        {
            PictureBox ref_ctrl = ((PictureBox)sender);

            if (ref_ctrl.Tag.ToString() == "Sound_on")
            {
                GenPactMem.PlaySound(Resources.sound_Sound_off);

                ref_ctrl.Tag           = "Sound_off";
                ref_ctrl.Image         = Resources.sound_off;
                Settings.Default.Sound = false;
            }
            else
            {
                ref_ctrl.Tag           = "Sound_on";
                ref_ctrl.Image         = Resources.sound_on;
                Settings.Default.Sound = true;

                GenPactMem.PlaySound(Resources.sound_Sound_on);
            }
        }
Esempio n. 3
0
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                GenPactMem.PlaySound(Resources.sound_you_dumb_fuck);

                DialogResult res = MessageBox.Show("Going over 5 might get you BANNED !", "Are you dumb ?", MessageBoxButtons.YesNo);

                if (res == DialogResult.Yes)
                {
                    DialogResult res1 = MessageBox.Show("Well i guess you are Dumb !\nAre you realy sure you want this ?", "Hmm ...", MessageBoxButtons.YesNo);
                    if (res1 == DialogResult.Yes)
                    {
                        SpeedBar.Minimum = 1;
                        SpeedBar.Maximum = 20;
                        SpeedBar.Update();
                        SpeedBar.Refresh();
                    }
                    else
                    {
                        checkBox1.Checked = false;
                        checkBox1.Update();
                        checkBox1.Refresh();
                        SpeedBar_Scroll(null, null);
                    }
                }
                else
                {
                    checkBox1.Checked = false;
                }
            }
            else
            {
                SpeedBar.Minimum = 1;
                SpeedBar.Maximum = 5;
                SpeedBar.Update();
                SpeedBar.Refresh();
                SpeedBar_Scroll(null, null);
            }
        }
Esempio n. 4
0
        private void off_on_Switcher(object o, EventArgs a)
        {
            PictureBox _ref_tmp = ((PictureBox)o);

            if (_ref_tmp.Tag.ToString() == "off")
            {
                if (_ref_tmp.Name.Contains("UltiCD"))
                {
                    GenPactMem.PlaySound(Resources.sound_UltiCD_on);
                    ulti_cd('n');
                }
                else
                {
                    GenPactMem.PlaySound(Resources.sound_SkillCD_on);
                }

                _ref_tmp.Image = Resources.toggleon;
                _ref_tmp.Tag   = "on";
                Controls[_ref_tmp.Name + "Value"].Enabled = false;
            }
            else
            {
                if (_ref_tmp.Name.Contains("UltiCD"))
                {
                    GenPactMem.PlaySound(Resources.sound_UltiCD_off);
                    ulti_cd('f');
                }
                else
                {
                    GenPactMem.PlaySound(Resources.sound_SkillCD_off);
                }
                _ref_tmp.Image = Resources.toggleoff;
                _ref_tmp.Tag   = "off";
                Controls[_ref_tmp.Name + "Value"].Enabled = true;
            }
        }