Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public SelectorNew()
        {
            InitializeComponent();

            uint randomEntryKey = STBL.GetRandomUIntKey(blockedKeys: Loading.GetAllEntryKeys());

            KeyDecimalTextBox.Text     = randomEntryKey.ToString();
            KeyHexadecimalTextBox.Text = randomEntryKey.ToString("x");
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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();
        }