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; } } }
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(); } } } }
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); } }
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); } }
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)); } }