.Net gui refactor