private void CreateProject_Button_Click(object sender, EventArgs e) { string projectJet = Environment.CurrentDirectory + "\\" + CurrentProjectVariables.GameName + "_Original.jet"; bool result = GeneralMethods.Bad_JetPass(projectJet, Password_TextBox.Text); if (!result) { ConsoleHandler.append("Password correct"); CurrentProjectVariables.JetPassword = Password_TextBox.Text; ProjectHandler.SaveProject(); if (Dont_Ask_Again_Checkbox.Checked) { ZipForm.rememberedPassword = Password_TextBox.Text; Serializer.SaveSettings(); } var zip = new ZipForm(); zip.password = Password_TextBox.Text; zip.Show(); if (isExtracting) { zip.Extract(); } else { zip.launch = launch; zip.Compile(); } this.Close(); } else { ConsoleHandler.append_Force("You entered a bad password. Please check your password and try again"); } /* * string projectJet = CurrentProjectVariables.PathToProjectClassFile + "\\" + CurrentProjectVariables.ProjectName + ".jet"; * * if (File.Exists(projectJet)) * { * * } * else * { * ConsoleHandler.append_Force("Your project file was not detected..."); * }*/ //GetPass(); }