Change button type of WinForm when the record is not saved yet

review894002
issue3325
Do not set value of keys in modified fields

issue3225
review910002