public SupplierEditorForm(SupplierEditorModel model)
        {
            InitializeComponent();
            _presenter = new SupplierEditorPresenter(this, model);

            // set validation alignment
            valSupplierName.SetIconAlignment(txtSupplierName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valAddress.SetIconAlignment(txtAddress, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valPhone.SetIconAlignment(txtPhoneNumber, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valCity.SetIconAlignment(cbCity, System.Windows.Forms.ErrorIconAlignment.MiddleRight);

            this.Load += SupplierEditorForm_Load;
        }
        public SupplierEditorForm(SupplierEditorModel model)
        {
            InitializeComponent();
            _presenter = new SupplierEditorPresenter(this, model);

            // set validation alignment
            valSupplierName.SetIconAlignment(txtSupplierName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valAddress.SetIconAlignment(txtAddress, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valPhone.SetIconAlignment(txtPhoneNumber, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valCity.SetIconAlignment(cbCity, System.Windows.Forms.ErrorIconAlignment.MiddleRight);

            this.Load += SupplierEditorForm_Load;
        }