public MaskedTextControlView(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { try { _SortingColumns = (SortingColumnCollection)info.GetValue("_SortingColumns", typeof(SortingColumnCollection)); } catch { _SortingColumns = new SortingColumnCollection(); } try { _AutoAdjustTitleSize = info.GetBoolean("_AutoAdjustTitleSize"); } catch { _AutoAdjustTitleSize = true; } try { _MakeChanges = false; this._ColumnsWidth = info.GetValue("_ColumnsWidth", typeof(Int32Collection)) as Int32Collection; } catch { _MakeChanges = true; this._ColumnsWidth = new Int32Collection(); } try { this._MaskInfoSetting = (Webb.Reports.ExControls.Data.MaskInfoCollection)info.GetValue("_MaskInfoSetting", typeof(Webb.Reports.ExControls.Data.MaskInfoCollection)); } catch { _MaskInfoSetting = new MaskInfoCollection(); } try { this._RowsHight = info.GetValue("_RowsHight", typeof(Int32Collection)) as Int32Collection; } catch { this._RowsHight = new Int32Collection();; } try { _IndexedRow = info.GetInt32("_IndexedRow"); } catch { _IndexedRow = 0; } try { this._Filter = (DBFilter)info.GetValue("_AutoAdjustTitleSize", typeof(DBFilter)); } catch { _Filter = new DBFilter(); } }
public CustomImageView(SerializationInfo info, StreamingContext context) : base(info, context) { try { this._SortingColumns = (SortingColumnCollection)info.GetValue("_SortingColumns", typeof(SortingColumnCollection)); } catch { _SortingColumns = new SortingColumnCollection(); } try { this._PlayBookScoutType = (PlayBookScoutType)info.GetValue("_PlayBookScoutType", typeof(PlayBookScoutType)); } catch { _PlayBookScoutType = PlayBookScoutType.Default; } try { this._InvertPicture = (InvertPictureMode)info.GetValue("_InvertPicture", typeof(InvertPictureMode)); } catch { _InvertPicture = InvertPictureMode.None; } try { this._Image = info.GetValue("Image", typeof(Image)) as Image; } catch { } try { this._SizeMode = (PictureBoxSizeMode)info.GetValue("SizeMode", typeof(PictureBoxSizeMode)); } catch { this._SizeMode = PictureBoxSizeMode.StretchImage; } try { this._Field = info.GetString("Field"); } catch { this._Field = string.Empty; } try { this._UsePicDir = info.GetBoolean("_UsePicDir"); } catch { this._UsePicDir = false; } try { this._ReadDiagramFromPlaybook = info.GetBoolean("_ReadDiagramFromPlaybook"); } catch { this._ReadDiagramFromPlaybook = false; } // 01-04-2012 Scott try { this._Offset = (Size)info.GetValue("_Offset", typeof(Size)); } catch { this._Offset = new Size(0, 0); } }
public LabelControlView(SerializationInfo info, StreamingContext context) : base(info, context) { try { this.BorderSide = (DevExpress.XtraPrinting.BorderSide)info.GetValue("BorderSide", typeof(DevExpress.XtraPrinting.BorderSide)); } catch { this.BorderSide = DevExpress.XtraPrinting.BorderSide.None; } try { this.BorderColor = (Color)info.GetValue("BorderColor", typeof(Color)); } catch { this.BorderColor = Color.Black; } try { this.BorderWidth = info.GetInt32("BorderWidth"); } catch { this.BorderWidth = 1; } try { this.Height = info.GetInt32("Height"); } catch { this.Height = 0; } try { this.Width = info.GetInt32("Width"); } catch { this.Width = 0; } try { this.Font = info.GetValue("Font", typeof(Font)) as Font; } catch { this.Font = new Font(AppearanceObject.DefaultFont.FontFamily, 10f); } try { this.TextColor = (Color)info.GetValue("TextColor", typeof(Color)); } catch { this.TextColor = Color.Black; } try { this.BackColor = (Color)info.GetValue("BackColor", typeof(Color)); } catch { this.BackColor = Color.Transparent; } try { this.Text = info.GetString("Text"); } catch { this.Text = string.Empty; } try { this.Align = (Align)info.GetValue("Align", typeof(Align)); } catch { this.Align = Align.Horizontal; } try { this.HorzAlignment = (HorzAlignment)info.GetValue("HorzAlignment", typeof(HorzAlignment)); } catch { this.HorzAlignment = HorzAlignment.Default; } try { this.VertAlignment = (VertAlignment)info.GetValue("VertAlignment", typeof(VertAlignment)); } catch { this.VertAlignment = VertAlignment.Default; } try { this.OneValuePerPage = info.GetBoolean("OneValuePerPage"); } catch { this.OneValuePerPage = false; } try { this.Field = info.GetString("Field"); } catch { this.Field = string.Empty; } try { this._SortingColumns = (SortingColumnCollection)info.GetValue("_SortingColumns", typeof(SortingColumnCollection)); } catch { this._SortingColumns = new SortingColumnCollection(); } //09-01-2011 Scott try { this.IsTitle = info.GetBoolean("IsTitle"); } catch { this.IsTitle = false; } }