private void KeyRandomizeButton_Click(object sender, EventArgs e) { uint randomizedKey = STBL.GetRandomUIntKey(blockedKeys: Loading.GetAllEntryKeys()); KeyDecimalTextBox.Text = randomizedKey.ToString(); KeyHexadecimalTextBox.Text = randomizedKey.ToString("x").ToUpper(); }
public SelectorNew() { InitializeComponent(); uint randomEntryKey = STBL.GetRandomUIntKey(blockedKeys: Loading.GetAllEntryKeys()); KeyDecimalTextBox.Text = randomEntryKey.ToString(); KeyHexadecimalTextBox.Text = randomEntryKey.ToString("x"); }
private void ItemContextMenuRandomizeKeyItem_Click(object sender, EventArgs e) { foreach (DataGridViewRow selectedRow in GetAllSelectedItems()) { if (!(selectedRow.DataBoundItem is EntryWrapper selectedRowSource)) { continue; } selectedRowSource.STBLEntry.Key = STBL.GetRandomUIntKey(blockedKeys: Loading.GetAllEntryKeys()); } RefreshItems(); }
private void MenuStripEditSelectedResetKeysItem_Click(object sender, EventArgs e) { foreach (DataGridViewRow selectedEntryRow in EntryBrowser.GetAllSelectedItems()) { STBLXMLEntry entry = EntryBrowser.FindEntry(selectedEntryRow); if (entry != null) { continue; } entry.Key = STBL.GetRandomUIntKey(blockedKeys: Loading.GetAllEntryKeys()); } EntryBrowser.RefreshItems(); }