Ejemplo n.º 1
0
 private void checkBox_useVPN_MouseUp(object sender, MouseEventArgs e)
 {
     if (checkBox_useVPN.Checked)
     {
         LMessageBox.I("ui-settings-usevpn-alert");
     }
 }
Ejemplo n.º 2
0
 private void toolStripMenuItem_LogClear_Click(object sender, EventArgs e)
 {
     if (LMessageBox.I("ui-clear-log-confirm", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         richTextBox_Log.Text = "";
     }
 }
Ejemplo n.º 3
0
 private void checkBox_autoHideOverlay_MouseClick(object sender, MouseEventArgs e)
 {
     if (checkBox_autoHideOverlay.Checked)
     {
         LMessageBox.I("ui-notification-overlay-autohide");
     }
 }
Ejemplo n.º 4
0
 private void textBox_Discord_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
     {
         LMessageBox.I("ui-3rdparty-discord-numberonly-alert");
         e.Handled = true;
     }
 }
Ejemplo n.º 5
0
 private void checkBox_CustomSound_MouseDown(object sender, MouseEventArgs e)
 {
     if (label_CustomSoundFileName.Text == "")
     {
         LMessageBox.I("ui-notification-customsound-selectfile");
         checkBox_CustomSound.Checked = false;
     }
 }
Ejemplo n.º 6
0
        private void checkBox_HeartBeatLock_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox_HeartBeatLock.Checked)
            {
                var respond = LMessageBox.W("ui-heart-beat-lock-confirm", MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button2);
                if (respond == DialogResult.Yes)
                {
                    LMessageBox.I("ui-heart-beat-lock-enabled");
                }
            }

            Settings.HeartBeatLock = checkBox_HeartBeatLock.Checked;
            Settings.Save();
        }
Ejemplo n.º 7
0
        private void PresetAccept(int[] arr)
        {
            foreach (var node in nodes)
            {
                var c = ushort.Parse(node.Name);
                if (arr.Any(code => code == c))
                {
                    node.Checked = true;
                    Settings.FATEs.Add(c);
                }
            }

            Settings.Save();
            LMessageBox.I("ui-fate-preset-applied");
        }
Ejemplo n.º 8
0
        private void toolStripMenuItem_SelectApply_Click(object sender, EventArgs e)
        {
            foreach (var node in nodes)
            {
                if (node.Checked)
                {
                    Settings.FATEs.Add(ushort.Parse(node.Name));
                }
                else
                {
                    Settings.FATEs.Remove(ushort.Parse(node.Name));
                }
            }

            Settings.Save();
            LMessageBox.I("ui-fate-selection-saved");
        }
Ejemplo n.º 9
0
        private void checkBox_CheatRoullete_CheckedChanged(object sender, EventArgs e)
        {
            var @checked = checkBox_CheatRoullete.Checked;

            SetCheatRoulleteCheckBox(false);
            if (@checked)
            {
                var respond = LMessageBox.W("ui-cheat-roulette-confirm", MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button2);
                if (respond == DialogResult.Yes)
                {
                    LMessageBox.I("ui-cheat-roulette-enabled");
                    SetCheatRoulleteCheckBox(true);
                }
            }

            Settings.CheatRoulette = checkBox_CheatRoullete.Checked;
            Settings.Save();
        }
Ejemplo n.º 10
0
        private void comboBox_Language_SelectedValueChanged(object sender, EventArgs e)
        {
            var language = comboBox_Language.SelectedValue.ToString();

            if (Settings.Language == language)
            {
                return;
            }

            Settings.Language = language;
            Settings.Save();

            Localization.Initialize(Settings.Language);
            Data.Initialize(Settings.Language);

            ApplyLanguage();

            LMessageBox.I("ui-language-changed");
        }
Ejemplo n.º 11
0
 private void toolStripMenuItem_LogCopy_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(richTextBox_Log.Text);
     LMessageBox.I("ui-clipboard-copied");
 }