Ejemplo n.º 1
0
        private void treeView1_DoubleClick(object sender, EventArgs e)
        {
            if (treeView1.SelectedNode == null)
            {
                return;
            }

            if (IsFnNode(treeView1.SelectedNode))
            {
                var fv = new ProcedureView();
                fv.EditorView.Model = fv.Model(
                    fv.Line(
                        fv.Span("// fn00112233", "cmt")),
                    fv.Line(
                        fv.Span("// Trashes - edx", "cmt")),
                    fv.Line(
                        fv.Span("void fn00112233(esi)")),
                    fv.Line(
                        fv.Span("{")),
                    fv.Line(
                        fv.Span("    "),
                        fv.Span("while", "keyword"),
                        fv.Span(" (edx_10 != 0)")),
                    fv.Line(
                        fv.Span("    {")),
                    fv.Line(
                        fv.Span("        "),
                        fv.Span("edx_10 = "),
                        fv.Link("fn00114434"),
                        fv.Span("(edx_10);")),
                    fv.Line(
                        fv.Span("    }")),
                    fv.Line(
                        fv.Span("}")));
                fv.MdiParent = this;
                fv.Show();
            }
            else
            {
                var mv = new MemoryView();
                mv.MdiParent = this;
                mv.Show();
            }
        }
Ejemplo n.º 2
0
        private void treeView1_DoubleClick(object sender, EventArgs e)
        {
            if (treeView1.SelectedNode == null)
                return;

            if (IsFnNode(treeView1.SelectedNode))
            {
                var fv = new ProcedureView();
                fv.EditorView.Model = fv.Model(
                    fv.Line(
                        fv.Span("// fn00112233", "cmt")),
                    fv.Line(
                        fv.Span("// Trashes - edx", "cmt")),
                    fv.Line(
                        fv.Span("void fn00112233(esi)")),
                    fv.Line(
                        fv.Span("{")),
                    fv.Line(
                        fv.Span("    "),
                        fv.Span("while", "keyword"),
                        fv.Span(" (edx_10 != 0)")),
                    fv.Line(
                        fv.Span("    {")), 
                    fv.Line(
                        fv.Span("        "),
                        fv.Span("edx_10 = "),
                        fv.Link("fn00114434"),
                        fv.Span("(edx_10);")),
                    fv.Line(
                        fv.Span("    }")),
                    fv.Line(
                        fv.Span("}")));
                fv.MdiParent = this;
                fv.Show();
            }
            else
            {
                var mv = new MemoryView();
                mv.MdiParent = this;
                mv.Show();
            }
        }