fixing engine installation

This commit is contained in:
STAM 2020-03-05 12:57:56 +03:00
parent b3ec2ff835
commit 0f75355142

View File

@ -332,7 +332,12 @@ namespace UniversalValveToolbox {
MessageBox.Show($"\"{selectedTool.Name}\" no found.\n{toolPath}", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
else {
MessageBox.Show($"\"{SelectedEngine.Name}\" not install", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning);
DialogResult dialogResult = MessageBox.Show($"\"{SelectedEngine.Name}\" with app id \"{SelectedEngine.Appid}\" not installed. Do you want to install it?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (dialogResult == DialogResult.Yes) {
Process.Start($"steam://install/{SelectedEngine.Appid}");
} else if (dialogResult == DialogResult.No) {
MessageBox.Show($"Installation of \"{SelectedEngine.Name}\" with app id \"{SelectedEngine.Appid}\" canceled.", "Message", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
}