public FrmItemSize(ApplicationPresenter ap, BOItemSize model)
            : base(ap)
        {
            InitializeComponent();

            mModel     = model;
            mViewModel = new BOViewModel(mModel);
            mViewModel.ErrorProvider = errorProvider;

            BindViews();
            RegisterEventHandlers();
        }
 public void ShowItemSizeForItemAddOn(BOItemSize model)
 {
     if (IsInvalid(mFrmItemSizeForItemAddOn))
     {
         mFrmItemSizeForItemAddOn = new DacII.WinForms.Definitions.FrmItemSize(mApplicationController, model);
     }
     else
     {
         mFrmItemSizeForItemAddOn.Model = model;
         mFrmItemSizeForItemAddOn.UpdateView();
     }
     SetCurrentDlg(mFrmItemSizeForItemAddOn);
 }