How do I combine two vertexbuffers and then use the DrawIndexedPrimitives() to draw them?

I have two vertexbuffers and each have its own TransformedColored[]

and IndexBuffer .There have much method to draw them.But I want to use this method.

The method is to combine two vertexbuffers and then use the DrawIndexedPrimitives() to draw .But I dont known how to set the code.

like :

device.SetStreamSource();
device.DrawIndexedPrimitives();

and my two VertexBuffer is below:

static VertexBuffer vertexBuffer1;

CustomVertex.TransformedColored[] verts1 = new CustomVertex.TransformedColored[4];
verts1[0].X=150;verts1[0].Y=50;verts1[0].Z=0.5f; verts1[0].Color=System.Drawing.Color.Red.ToArgb();
verts1[1].X=250;verts1[1].Y=250;verts1[1].Z=0.5f; verts1[1].Color=System.Drawing.Color.Brown.ToArgb();
verts1[2].X=50;verts1[2].Y=250;verts1[2].Z=0.5f; verts1[2].Color = System.Drawing.Color.LightPink.ToArgb();
verts1[3].X=50;verts1[3].Y=50;verts1[3].Z=0.5f; verts1[3].Color = System.Drawing.Color.Green.ToArgb();

short[] indics1=new shortDevil;
indics1[0]=0;
indics1[1]=1;
indics1[2]=2;
indics1[3]=0;
indics1[4]=1;
indics1[5]=3;

static VertexBuffer vertexBuffer2;

CustomVertex.TransformedColored[] verts2 = new CustomVertex.TransformedColored[4];
verts2[0].X=250;verts2[0].Y=50;verts2[0].Z=0.5f; verts2[0].Color=System.Drawing.Color.Pink.ToArgb();
verts2[1].X=350;verts2[1].Y=250;verts2[1].Z=0.5f; verts2[1].Color=System.Drawing.Color.Pink.ToArgb();
verts2[2].X=150;verts2[2].Y=250;verts2[2].Z=0.5f; verts2[2].Color =System.Drawing.Color.Pink.ToArgb();
verts2[3].X=150;verts2[3].Y=50;verts2[3].Z=0.5f; verts2[3].Color =System.Drawing.Color.Pink.ToArgb();

short[] indics2=new shortDevil;
indics2[0]=0;
indics2[1]=1;
indics2[2]=2;
indics2[3]=0;
indics2[4]=1;
indics2[5]=3;

Someone can tell me? thanks!!

[2000 byte] By [hackbabu] at [2007-12-22]