private void closeButton_Click(object sender, EventArgs e) { Audio.ButtonClick(); if (Data.Changed) { if (YesNoDialog.Show("Save changes?", MessageBoxButtons.YesNo) == DialogResult.Yes) { SaveData(); } } Close(); }
private void selectFolderButton_Click(object sender, EventArgs e) { Audio.ButtonClick(); using (var fbd = new FolderBrowserDialog()) { DialogResult result = fbd.ShowDialog(); if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath)) { var path = fbd.SelectedPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar; gameFolder.Text = path; Data.GamePath = path; } else { YesNoDialog.Show("Game folder not selected!", "ERROR!", MessageBoxButtons.OK); return; } } }
private void infoButton_Click(object sender, EventArgs e) { Audio.ButtonClick(); YesNoDialog.Show("LoL AutoLogin was developed by Profesor08 in 2017 for comfortable and free use", MessageBoxButtons.OK); }