Example #1
0
        public MechanicEditorForm(MechanicEditorModel model)
        {
            InitializeComponent();

            _presenter = new MechanicEditorPresenter(this, model);

            // set validation alignment
            valCode.SetIconAlignment(txtCode, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valMechanicName.SetIconAlignment(txtMechanicName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valAddress.SetIconAlignment(txtAddress, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valPhone.SetIconAlignment(txtPhoneNumber, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valBaseFee.SetIconAlignment(txtBaseFee, System.Windows.Forms.ErrorIconAlignment.MiddleRight);

            this.Load += MechanicEditorForm_Load;
        }
        public MechanicEditorForm(MechanicEditorModel model)
        {
            InitializeComponent();

            _presenter = new MechanicEditorPresenter(this, model);

            // set validation alignment
            valCode.SetIconAlignment(txtCode, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valMechanicName.SetIconAlignment(txtMechanicName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valAddress.SetIconAlignment(txtAddress, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valPhone.SetIconAlignment(txtPhoneNumber, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valBaseFee.SetIconAlignment(txtBaseFee, System.Windows.Forms.ErrorIconAlignment.MiddleRight);

            this.Load += MechanicEditorForm_Load;
        }