Abstracted out the code that modifies and saves test case automation.
- Tweaked dialog view-model creation a bit.
- If manual edit is opened for a test case with existing automation, the fields will be pre-populated.