Ejemplo n.º 1
0
        public void Save()
        {
            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    if (page.IsReadOnlyProperty(property.Name))
                    {
                        return;
                    }
                }

                try
                {
                    object obj = page.SelectedObject;

                    if (obj != null)
                    {
                        if (property != null)
                        {
                            Type type = property.PropertyType;

                            page.SetPropertyValue(propertyName, Convert.ChangeType(this.Text, type));
                        }
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            if (initialized)
            {
                return;
            }
            initialized = true;

            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    if (page.IsReadOnlyProperty(property.Name))
                    {
                        this.ReadOnly = true;
                    }
                }

                if (!Page.IsPostBack)
                {
                    object value = page.GetPropertyValue(propertyName);

                    if (value != null)
                    {
                        this.Text = value.ToString();
                    }
                }
            }
        }
Ejemplo n.º 3
0
        public void Save()
        {
            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    if (page.IsReadOnlyProperty(property.Name))
                        return;
                }

                page.SetPropertyValue(propertyName, this.SelectedDate);
            }
        }
Ejemplo n.º 4
0
        public void Save()
        {
            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    if (page.IsReadOnlyProperty(property.Name))
                    {
                        return;
                    }
                }

                page.SetPropertyNullStatus(propertyName, this.Checked);
            }
        }
Ejemplo n.º 5
0
        public void Save()
        {
            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                PropertyInfo property = page.GetPropertyInfo(propertyName);
                if (property != null)
                {
                    if (page.IsReadOnlyProperty(property.Name))
                    {
                        return;
                    }
                }

                page.SetPropertyValue(propertyName, Enum.Parse(property.PropertyType, this.SelectedItem.Text));
            }
        }