private void SingularityGameProfile_SelectionChanged(object sender, SelectionChangedEventArgs e) { // only perform validation if the user is touching the control if (!comboSingularityGameProfile.IsMouseOver && !comboSingularityGameProfile.IsFocused && !comboSingularityGameProfile.IsKeyboardFocused) { return; } InnerSpaceGameProfile gp = SingularityGameProfile; if (gp == null) { return; } switch (gp.Executable) { case RelatedExecutable.EXEFile: // good break; case RelatedExecutable.EVELauncher: case RelatedExecutable.InnerSpace: case RelatedExecutable.InvalidGameProfile: case RelatedExecutable.ISBoxerEVELauncher: case RelatedExecutable.Other: MessageBox.Show("This Game Profile does not appear to point to exefile.exe. Please select a Game Profile that points at exefile.exe, or use 'Create one now' to have one correctly set up for you."); SingularityGameProfile = null; break; } }
public InnerSpace(InnerSpaceGameProfile gameProfile, DirectXVersion dxVersion, bool useSingularity) { GameProfile = gameProfile; UseDirectXVersion = dxVersion; UseSingularity = useSingularity; }