Пример #1
0
        public BrandEditDlg()
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("btn_cancel.gif");

            fPresenter = new BrandEditorPresenter(this);
        }
        public BrandEditorForm(BrandEditorModel model)
        {
            InitializeComponent();
            _presenter = new BrandEditorPresenter(this, model);

            // set validation alignment
            valName.SetIconAlignment(txtName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valDescription.SetIconAlignment(txtDescription, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            this.Load += BrandEditorForm_Load;
        }
        public BrandEditorForm(BrandEditorModel model)
        {
            InitializeComponent();
            _presenter = new BrandEditorPresenter(this, model);

            // set validation alignment
            valName.SetIconAlignment(txtName, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            valDescription.SetIconAlignment(txtDescription, System.Windows.Forms.ErrorIconAlignment.MiddleRight);
            this.Load += BrandEditorForm_Load;
        }