Ejemplo n.º 1
0
        private void closeButton_Click(object sender, EventArgs e)
        {
            Audio.ButtonClick();

            if (Data.Changed)
            {
                if (YesNoDialog.Show("Save changes?", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    SaveData();
                }
            }

            Close();
        }
Ejemplo n.º 2
0
        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;
                }
            }
        }
Ejemplo n.º 3
0
 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);
 }