private void DatabaseSelect_Load(object sender, EventArgs e) { var database = TitleDatabase.GetDatabase(); foreach (var title in database) { listBox_titles.Items.Add(title.Name + " (" + title.TitleID.ToString("X16") + ")"); } }
private void DatabaseManager_Load(object sender, EventArgs e) { Database = TitleDatabase.GetDatabase(); foreach (var title in Database) { listBox_titles.Items.Add(title.Name); } }
//select pass and tid private void button_select_Click(object sender, EventArgs e) { DatabaseSelect selector = new DatabaseSelect(); if (selector.ShowDialog() == DialogResult.OK) { var title = TitleDatabase.GetDatabase()[selector.SelectedIndex]; textBox_tid.Text = title.TitleID.ToString("X16"); textBox_pass.Text = title.Passphrase; } }