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(); }
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(); }