I'm a bit confused by the word "changing", it implies that you already dressed them? Do you mean change them "on the fly", like a gump to do it in game? Anyway, here's a snippet for adding close to an npc.
Shirt shirt = new Shirt();
shirt.Movable = false;
AddItem(shirt);