dar seems a bit more formal than tooye in addition u can not always use these two prepositions interchangeably .tooye is usually used when u are saying sth is placed in sth else or a place ... like tooye khane tooye goldan .but dar may be used in more general cases like "dar morede in masale" "dar nazdikie in khane " "dar barabare digaran" and etc