コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }