BeatSaber-version-changer/ui/BeatSaberFolders_Modal.cs
2022-05-15 01:04:38 +02:00

79 lines
2.0 KiB
C#

using BeatSaber_Versions.controller;
using BeatSaber_Versions.controller.helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BeatSaber_Versions
{
public partial class BeatSaberFolders_Modal : Form
{
public BeatSaberFolders_Modal()
{
InitializeComponent();
songsFolder.Text = Storage.Config.beatsabersongs;
beatSaberFolder.Text = Storage.Config.beatsaberfolder;
}
private void label2_Click(object sender, EventArgs e)
{
}
private void setBSSongsFolder_Click(object sender, EventArgs e)
{
DialogResult folder = setCustomSongsFolder.ShowDialog();
if (folder == DialogResult.OK)
{
MessageBox.Show("" + setCustomSongsFolder.SelectedPath);
songsFolder.Text = setCustomSongsFolder.SelectedPath;
}
else
{
}
}
private void setBSFolder_Click(object sender, EventArgs e)
{
DialogResult folder = setNormalBeatSaberFolder.ShowDialog();
if (folder == DialogResult.OK)
{
MessageBox.Show("" + setNormalBeatSaberFolder.SelectedPath);
beatSaberFolder.Text = setNormalBeatSaberFolder.SelectedPath;
}
else
{
}
}
private void saveModal_Click(object sender, EventArgs e)
{
String bsFolder = beatSaberFolder.Text;
String songFolder = songsFolder.Text;
Storage.Config.beatsaberfolder = bsFolder;
Storage.Config.beatsabersongs = songFolder;
Storage.CC.writeConfig();
}
private void chkBSBasicFolderViaSteam_Click(object sender, EventArgs e)
{
beatSaberFolder.Text = getNormalBeatSaberFolder.getBSFolder();
}
}
}