public static string showEditMemory(string firstCyclicPatternIndex, string lastCyclicPatternIndex, string memory)
        {
            MainForm.getInstance().Enabled = false;
            EditMemoryForm currEditMemoryForm = new EditMemoryForm();

            if (firstCyclicPatternIndex == lastCyclicPatternIndex) //Only on address selected
            {
                currEditMemoryForm.decimalEditBox.Visible = true;
                currEditMemoryForm.isSingleEdit = true;
                currEditMemoryForm.Text = "Replace cyclic pattern index: " + firstCyclicPatternIndex;
            }
            else
            {
                currEditMemoryForm.decimalEditBox.Visible = false;
                currEditMemoryForm.isSingleEdit = false;
                currEditMemoryForm.Text = "Replace cyclic pattern indexes: " + firstCyclicPatternIndex + " - " + lastCyclicPatternIndex;
            }

            string memoryInHex = Utils.ToHex(memory);

            currEditMemoryForm.hexTextBox.Text = memoryInHex;
            currEditMemoryForm.hexTextBox.MaxLength = memoryInHex.Length;

            currEditMemoryForm.ShowDialog();

            return currEditMemoryForm.newMemoryValue;
        }
        public static string showEditMemory(int CPIndex, string value)
        {
            MainForm.getInstance().Enabled = false;
            EditMemoryForm currEditMemoryForm = new EditMemoryForm();

            currEditMemoryForm.decimalEditBox.Visible = true;
            currEditMemoryForm.isSingleEdit = true;
            currEditMemoryForm.Text = "Replace cyclic pattern index: " + CPIndex;

            currEditMemoryForm.hexTextBox.Text = value;
            currEditMemoryForm.hexTextBox.MaxLength = value.Length;

            currEditMemoryForm.ShowDialog();

            return currEditMemoryForm.newMemoryValue;
        }