public Zones()
 {
     InitializeComponent();
     this.bsHoriz                     = new BindingSource();
     this.bsHoriz.DataMember          = "HorizontalZones";
     this.bsHoriz.CurrentItemChanged += new EventHandler(bsHoriz_CurrentItemChanged);
     this.bsVert                             = new BindingSource();
     this.bsVert.DataMember                  = "VerticalZones";
     this.bsVert.CurrentItemChanged         += new EventHandler(bsVert_CurrentItemChanged);
     this.bsZoneHoriz.RaiseListChangedEvents = false;
     this.bsZoneHoriz.DataSourceChanged     += new EventHandler(bsZoneHoriz_DataSourceChanged);
     this.bsZoneVert.RaiseListChangedEvents  = false;
     this.bsZoneVert.DataSourceChanged      += new EventHandler(bsZoneVert_DataSourceChanged);
     this.rbHorizWidth                       = new ZonesBinding(typeof(Library.EnumConstraint), this.bsZoneHoriz, "ConstraintWidth", "Width");
     rbHorizWidth.modified                  += rb_modified;
     rbHorizWidth.AddControlsIntoGroupBox(this.grpHLng, FlowDirection.LeftToRight);
     this.rbHorizHeight      = new ZonesBinding(typeof(Library.EnumConstraint), this.bsZoneHoriz, "ConstraintHeight", "Height");
     rbHorizHeight.modified += rb_modified;
     rbHorizHeight.AddControlsIntoGroupBox(this.grpHHt, FlowDirection.LeftToRight);
     this.rbVertWidth      = new ZonesBinding(typeof(Library.EnumConstraint), this.bsZoneVert, "ConstraintWidth", "Width");
     rbVertWidth.modified += rb_modified;
     rbVertWidth.AddControlsIntoGroupBox(this.grpVLng, FlowDirection.LeftToRight);
     this.rbVertHeight      = new ZonesBinding(typeof(Library.EnumConstraint), this.bsZoneVert, "ConstraintHeight", "Height");
     rbVertHeight.modified += rb_modified;
     rbVertHeight.AddControlsIntoGroupBox(this.grpVHt, FlowDirection.LeftToRight);
     this.RegisterControls(ref this.localeComponentId);
 }
Пример #2
0
 public SimpleObjectView(string title)
 {
     InitializeComponent();
     this.rbWidth = new ZonesBinding(typeof(Library.EnumConstraint), this.hTMLObjectBindingSource, "ConstraintWidth", "Width");
     rbWidth.AddControlsIntoGroupBox(this.groupBox3, FlowDirection.LeftToRight);
     this.rbHeight = new ZonesBinding(typeof(Library.EnumConstraint), this.hTMLObjectBindingSource, "ConstraintHeight", "Height");
     rbHeight.AddControlsIntoGroupBox(this.groupBox4, FlowDirection.LeftToRight);
     this.RegisterControls(ref this.localeComponentId, title);
 }
Пример #3
0
 public MasterObjectCreationForm()
 {
     InitializeComponent();
     rbWidth = new ZonesBinding(typeof(Library.EnumConstraint), this.masterObjectBindingSource, "ConstraintWidth", "Width");
     rbWidth.AddControlsIntoGroupBox(this.groupBox1, FlowDirection.LeftToRight);
     rbHeight = new ZonesBinding(typeof(Library.EnumConstraint), this.masterObjectBindingSource, "ConstraintHeight", "Height");
     rbHeight.AddControlsIntoGroupBox(this.groupBox2, FlowDirection.LeftToRight);
     this.RegisterControls(ref this.localeComponentId);
 }
Пример #4
0
 public MasterPageView(string title)
 {
     InitializeComponent();
     this.rbWidth      = new ZonesBinding(typeof(Library.EnumConstraint), this.masterPageBindingSource, "ConstraintWidth", "Width");
     rbWidth.modified += z_modified;
     rbWidth.AddControlsIntoGroupBox(this.groupBox2, FlowDirection.LeftToRight);
     this.rbHeight      = new ZonesBinding(typeof(Library.EnumConstraint), this.masterPageBindingSource, "ConstraintHeight", "Height");
     rbHeight.modified += z_modified;
     rbHeight.AddControlsIntoGroupBox(this.groupBox3, FlowDirection.LeftToRight);
     this.RegisterControls(ref this.localeComponentId, title);
 }