private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { //var gameselected = gamelist.Select(x => x.Title == comboBox1.SelectedText); var result = gamelist.Single(s => s.Title == comboBox1.SelectedItem); //poulate date label8.Text = "Game Title : " + result.Title; label5.Text = "Content ID : " + result.ContentID; PS4_Tools.PKG.SceneRelated.NP_Title titleid = new PS4_Tools.PKG.SceneRelated.NP_Title(result.nptitle); label6.Text = "NpTitle Id : " + titleid.Nptitle; PS4_Tools.PKG.SceneRelated.NP_Bind NP_Bind = new PS4_Tools.PKG.SceneRelated.NP_Bind(result.npbind); label7.Text = "Np Bind : " + NP_Bind.Nptitle; txtPreviewTitle.Text = "Unlocker for " + result.Title; }
private void button3_Click(object sender, EventArgs e) { //Open File Items OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); openFileDialog1.Title = "Select PS4 File"; openFileDialog1.CheckFileExists = true; openFileDialog1.CheckPathExists = true; openFileDialog1.Filter = "PS4 File (*.*)|*.*"; openFileDialog1.RestoreDirectory = true; openFileDialog1.Multiselect = false; openFileDialog1.ReadOnlyChecked = true; openFileDialog1.ShowReadOnly = true; if (openFileDialog1.ShowDialog() == DialogResult.OK) { try { PS4_Tools.PKG.SceneRelated.NP_Title titleid = new PS4_Tools.PKG.SceneRelated.NP_Title(openFileDialog1.FileName); //textBox3.Text = openFileDialog1.FileName; label6.Text = "NpTitle Id :" + titleid.Nptitle; } catch (Exception ex) { } } }