public void GetProperty()
        {
            IComponentModel componentModel = DefaultContainer.Instance.GetComponentByName("TestUnidad1");

            Assert.IsNotNull(componentModel.GetProperty("Entero"));
            Assert.AreEqual((int)componentModel.GetProperty("Entero"), 0);
        }
        private void OnPreferencesClicked(object sender, EventArgs args)
        {
            preferencesView = new PreferencesView();
            IComponentModel componentModel = DefaultContainer.Instance["ComponentBuilder"];

            preferencesView.LoadDataForm((IDataTransferObject)componentModel.GetProperty("PreferencesDTO"));
            PreferencesDTO preferencesDTO = (PreferencesDTO)preferencesView.GetDataForm();

            if (preferencesDTO != null)
            {
                componentModel.SetProperty("PreferencesDTO", preferencesDTO);
                componentModel.Execute("SerializePreferences", null, this);
            }
            preferencesView = null;
        }