示例#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();
        }
示例#2
0
        public SelectorNew()
        {
            InitializeComponent();

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

            KeyDecimalTextBox.Text     = randomEntryKey.ToString();
            KeyHexadecimalTextBox.Text = randomEntryKey.ToString("x");
        }
示例#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();
        }
示例#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();
        }