Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UI/Components/GameDetail.cs')
-rw-r--r--UI/Components/GameDetail.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/UI/Components/GameDetail.cs b/UI/Components/GameDetail.cs
index 397f37b6..d44cd9d7 100644
--- a/UI/Components/GameDetail.cs
+++ b/UI/Components/GameDetail.cs
@@ -30,6 +30,18 @@ namespace com.clusterrr.hakchi_gui.UI.Components
currentApp = app;
ReloadInfo();
}
+ private void Disable()
+ {
+ buttonBrowseImage.Enabled = false;
+ buttonGoogle.Enabled = false;
+ groupBoxOptions.Enabled = false;
+ }
+ private void Enable()
+ {
+ buttonBrowseImage.Enabled = true;
+ buttonGoogle.Enabled = true;
+ groupBoxOptions.Enabled = true;
+ }
private void ReloadInfo()
{
if (currentApp == null)
@@ -46,6 +58,8 @@ namespace com.clusterrr.hakchi_gui.UI.Components
textBoxPublisher.Text = "";
textBoxArguments.Text = "";
pictureBoxArt.Image = null;
+ buttonBrowseImage.Enabled = false;
+ buttonGoogle.Enabled = false;
}
else
{
@@ -75,6 +89,15 @@ namespace com.clusterrr.hakchi_gui.UI.Components
buttonShowGameGenieDatabase.Enabled = textBoxGameGenie.Enabled = currentApp is NesGame;
textBoxGameGenie.Text = (currentApp is NesGame) ? (currentApp as NesGame).GameGenie : "";
groupBoxOptions.Enabled = true;
+
+ if(currentApp.GetType() != typeof(NesDefaultGame))
+ {
+ Enable();
+ }
+ else
+ {
+ Disable();
+ }
}
}