Example #1
0
        public Editor(fMain m, uint of, uint co)
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;

            mainForm     = m;
            startAddress = of;
            count        = co;
        }
Example #2
0
        public IndirectInput(fMain m, uint address, uint length, string firstLine)
        {
            InitializeComponent();

            mainForm      = m;
            maximumLength = length;
            startAddress  = address;

            this.Width  = 650;
            this.Height = 400;

            //tSize.Text = string.Format("Inputted :  0 bytes / {0} bytes", maximumLength);

            tMessage.Text = "";
            if (firstLine.Length > 0)
            {
                tInput.Text = firstLine;
                tInput_TextChanged(this, null);
            }

            this.Text = string.Format("Start Address : 0x{0:X8}", startAddress);
        }
        public ConditionConfiguration(fMain f, Byte m, string n)
        {
            InitializeComponent();

            mainForm             = f;
            mode                 = m;
            this.Text            = n;
            cRange.SelectedIndex = 0;

            switch (mode)
            {
            case 0:         // ADDRESS TRANSLATOR
                tSize.Enabled = false;
                this.Height   = 180;
                splitContainer1.Panel2Collapsed = true;
                bStart.TabIndex  = 1;
                bCancel.TabIndex = 2;

                groupBox1.Text = "Target Address";
                lStart.Text    = "Virtual Address :";
                bStart.Text    = "Translate";
                cRange.Enabled = false;
                break;

            case IOCTL_FIND_OBJECT_UNICODE:
                lStart.Text    = "Start Address :";
                bStart.Text    = "Search";
                groupBox1.Text = "Target Range";

                splitContainer1.Panel2Collapsed = false;
                groupBox2.Height = 53;
                this.Height      = 266;
                break;

            case IOCTL_FIND_PATTERN_UNICODE:
            case IOCTL_FIND_PATTERN_STRING:
                lStart.Text    = "Start Address :";
                bStart.Text    = "Search";
                groupBox1.Text = "Target Range";

                lOpt1.Visible  = true;
                tOpt1.Visible  = true;
                tOpt1.TabStop  = true;
                tOpt1.TabIndex = 2;
                lOpt1.Text     = "Minimum Length :";

                splitContainer1.Panel2Collapsed = false;
                groupBox2.Height = 53 + 26;
                this.Height      = 266 + 26;
                break;

            case IOCTL_FIND_VALUE_UNICODE:
            case IOCTL_FIND_VALUE_STRING:
                lStart.Text    = "Start Address :";
                bStart.Text    = "Search";
                groupBox1.Text = "Target Range";

                lOpt1.Visible  = true;
                tOpt1.Visible  = true;
                tOpt1.TabStop  = true;
                tOpt1.TabIndex = 2;
                lOpt1.Text     = "Keywords :";

                splitContainer1.Panel2Collapsed = false;
                groupBox2.Height = 53 + 26;
                this.Height      = 266 + 26;
                break;

            default:
                this.DialogResult = DialogResult.Abort;
                return;
            }

            pMessage.Contents = "";
        }