Refactoring Form.ShowDialog() code to MVP
I have a WinForm and few properties that are set on it. for example : Name,Address are accepted on the Form. (many more properties in actual example) The current implementation is somewhat similar to frmName frmView = new frmName (); //frmName is WINFORM frmView.Name= "ABC"; //any valid string or read this from file frmView.Address="SomeAddress"; //any valid address or read this from file if (frmView.ShowDialog() == DialogResult.OK) { //OK CLICK PROCESS and // get new values edited by user string name = frmView .Name; string address = frmView.Address; doProcessing(name,address); } else{ /