Add Property Logic (DS4Form.cs)

This commit is contained in:
Sander Jochems 2019-04-20 17:47:08 +02:00
parent cffc167be6
commit ceb2319084
No known key found for this signature in database
GPG Key ID: 577F8F4D8B745029

View File

@ -199,6 +199,8 @@ namespace DS4Windows
cBDisconnectBT.Checked = DCBTatStop; cBDisconnectBT.Checked = DCBTatStop;
cBQuickCharge.Checked = QuickCharge; cBQuickCharge.Checked = QuickCharge;
cBCustomSteam.Checked = UseCustomSteamFolder;
tBSteamFolder.Text = CustomSteamFolder;
// New settings // New settings
this.Width = FormWidth; this.Width = FormWidth;
this.Height = FormHeight; this.Height = FormHeight;
@ -2035,6 +2037,17 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
} }
} }
private void cBCustomSteam_CheckedChanged(object sender, EventArgs e)
{
UseCustomSteamFolder = cBCustomSteam.Checked;
tBSteamFolder.Enabled = cBCustomSteam.Checked;
}
private void tBSteamFolder_TextChanged(object sender, EventArgs e)
{
CustomSteamFolder = tBSteamFolder.Text;
}
private void nUDUpdateTime_ValueChanged(object sender, EventArgs e) private void nUDUpdateTime_ValueChanged(object sender, EventArgs e)
{ {
int currentIndex = cBUpdateTime.SelectedIndex; int currentIndex = cBUpdateTime.SelectedIndex;