public SparepartEditorForm(SparepartEditorModel model) { InitializeComponent(); _presenter = new SparepartEditorPresenter(this, model); valCategory.SetIconAlignment(lookUpCategory, ErrorIconAlignment.MiddleRight); valUnit.SetIconAlignment(lookUpUnit, ErrorIconAlignment.MiddleRight); valCode.SetIconAlignment(txtCode, ErrorIconAlignment.MiddleRight); valName.SetIconAlignment(txtName, ErrorIconAlignment.MiddleRight); this.Load += SparepartEditorForm_Load; }