Exemplo n.º 1
0
        public ContractCollateralForm(CollateralProduct product)
        {
            this.product       = product;
            contractCollateral = new ContractCollateral();
            myProperties       = new CustomClass();
            collections        = new CollectionList();

            InitializeComponent();
            FillCollateralProperties();
        }
Exemplo n.º 2
0
        public ContractCollateralForm(CollateralProduct product, ContractCollateral contractCollateral, bool isView)
        {
            this.product            = product;
            this.contractCollateral = contractCollateral;
            myProperties            = new CustomClass();
            collections             = new CollectionList();

            InitializeComponent();
            FillCollateralPropertyValues(contractCollateral);

            if (isView)
            {
                propertyGrid.Enabled         = false;
                groupBoxOwnerDetails.Enabled = false;
                buttonSave.Enabled           = false;
            }
        }
        public ContractCollateralForm(CollateralProduct product, bool isView, IApplicationController applicationController)
        {
            _applicationController = applicationController;
            this.product           = product;
            contractCollateral     = new ContractCollateral();
            myProperties           = new CustomClass();
            collections            = new CollectionList();

            InitializeComponent();
            FillCollateralProperties();

            if (isView)
            {
                propertyGrid.Enabled         = false;
                groupBoxOwnerDetails.Enabled = false;
                buttonSave.Enabled           = false;
            }
        }