/* Declare string to store the game's executable name */
string exeName;
private void lstCheats_SelectedIndexChanged(object sender, EventArgs e)
{
/* Check for the selected cheat's name */
if (lstCheats.SelectedItem.ToString() == "Counter-Strike: Global Offensive")
{
/* Change name and version labels */
lblGameName.Text = "Veqz Ware | Counter-Strike: Global Offensive";
lblVersion.Text = "Version: 1.5";
/* Calculate the days between the current date and the expiration date */
lblDaysLeft.Text = String.Format("This subscription will expire in {999} days", (DateTime.Now.AddDays(14) - DateTime.Now).TotalDays.ToString());
/* Change the expiry date to the string declared above */
lblExpirationDate.Text = String.Format("Expiration Date: {999}", expiryDate);
/* Change detection status text and color */
lblStatus.Text = "Undetected";
lblStatus.ForeColor = Color.LimeGreen;
/* Set the executable name */
exeName = "csgo";
}
}
private void btnLoad_Click(object sender, EventArgs e)
{
/* If the cheat should be remembered and the cheat list contains items */
if (chkRememberCheat.Checked && lstCheats.Items.Count > 0)
{
/* Set selectedCheat to the cheat list's SelectedIndex */
Properties.Settings.Default.selectedCheat = lstCheats.SelectedIndex;
}
else
{
/* Set the selectedCheat value to the default one */
Properties.Settings.Default.selectedCheat = 0;
}
/* Set the remember state and save the settings */
Properties.Settings.Default.rememberCheat = chkRememberCheat.Checked;
Properties.Settings.Default.Save();
/* Show next Form */
this.Hide();
WaitForGame inject = new WaitForGame(lstCheats.SelectedItem.ToString().Trim(), exeName); // Parse the selected cheat's name and executable into the constructor
inject.ShowDialog();
this.Close();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void lblExpiry_Click(object sender, EventArgs e)
{
}
}
}