All you need is just put Rodik code into a DLL and reference your project this DLL, So you can reuse the code easily.