protected override void Layout(GwenSkin.Base skin) { base.Layout(skin); BindData(); cb_action.SetSize(200, cb_action.Height); cb_action.PlaceLeftOf(); cb_action.LogPositionAndSize(); registrationInformation .AddContentChild(registrationContent) .PlaceBelowOf(cb_action) .AlignLeftWith() .SizeWidthWith(); labeled_vehicle_license.Component.SmallSize(); labeled_vehicle_model.Component.SmallSize(); labeled_vehicle_insurance_status.Component.SmallSize(); labeled_vehicle_insurance_status.Component.SmallSize(); labeled_vehicle_registration_status.Component.SmallSize(); labeled_vehicle_license .PlaceRightOf(labeled_vehicle_model, Configs.BaseFormControlSpacingTriple) .AlignTopWith(labeled_vehicle_model); labeled_vehicle_insurance_status .PlaceBelowOf(labeled_vehicle_model) .AlignLeftWith(labeled_vehicle_model); labeled_vehicle_registration_status .PlaceBelowOf(labeled_vehicle_insurance_status) .AlignLeftWith(labeled_vehicle_insurance_status); labeled_vehicle_insurance_status.Component.AlignLeftWith(labeled_vehicle_license); labeled_vehicle_registration_status.Component.AlignLeftWith(labeled_vehicle_insurance_status.Component); if (ComputerPlusEntity.PersonaType == PersonaTypes.BPS) { labeled_vehicle_extra_1.Component.SmallSize(); labeled_vehicle_extra_2.Component.SmallSize(); labeled_vehicle_extra_1.PlaceBelowOf(labeled_vehicle_registration_status); labeled_vehicle_extra_1.Component.AlignLeftWith(labeled_vehicle_registration_status.Component); labeled_vehicle_extra_2.PlaceBelowOf(labeled_vehicle_extra_1); labeled_vehicle_extra_2.Component.AlignLeftWith(labeled_vehicle_extra_1.Component); } //labeled_vehicle_registration_status.Component.AlignLeftWith(labeled_vehicle_insurance_status.Component); image_vehicle_image_holder .PlaceLeftOf(); labeled_alpr .PlaceBelowOf(image_vehicle_image_holder) .AlignLeftWith(image_vehicle_image_holder) .SizeWidthWith(image_vehicle_image_holder); labeled_owner_alert .Align(labeled_vehicle_registration_status, labeled_alpr) .SizeWidthWith(labeled_vehicle_registration_status); registrationContent.SizeToChildrenBlock(); registrationInformation.SizeToChildrenBlock(); ownerInformation .AddContentChild(ownerContent) .PlaceBelowOf(registrationInformation) .SizeWidthWith(); labeled_first_name.Component.MediumSize(); labeled_last_name.Component.MediumSize(); labeled_times_stopped.Component.SmallSize(); labeled_wanted_status.Component.SmallSize(); labeled_license_status.Component.SmallSize(); labeled_age.Component.SmallSize(); labeled_dob.Component.SmallSize(); labeled_last_name .PlaceRightOf(labeled_first_name, Configs.BaseFormControlSpacingDouble) .AlignTopWith(labeled_first_name); labeled_age .PlaceRightOf(labeled_last_name, Configs.BaseFormControlSpacingDouble) .AlignTopWith(labeled_last_name); labeled_home_address .PlaceBelowOf(labeled_first_name, Configs.BaseFormControlSpacingDouble) .AlignLeftWith(labeled_first_name); labeled_dob .Align(labeled_age, labeled_home_address); labeled_license_status .PlaceBelowOf(labeled_home_address, Configs.BaseFormControlSpacingDouble) .AlignLeftWith(labeled_home_address); labeled_times_stopped .AlignRightWith(labeled_dob) .AlignTopWith(labeled_license_status); if (ComputerPlusEntity.PersonaType == PersonaTypes.BPS) { labeled_ped_extra_1.Component.SmallSize(); labeled_ped_extra_1.PlaceBelowOf(labeled_times_stopped) .AlignLeftWith(labeled_times_stopped); //Adjust left for labeled_times_stopped labeled_times_stopped.Component.AlignLeftWith(labeled_ped_extra_1.Component); } labeled_wanted_status .PlaceBelowOf(labeled_license_status) .AlignLeftWith(labeled_license_status); image_ped_image_holder .PlaceLeftOf(); ownerInformation.SizeToChildrenBlock(); ownerContent.SizeToChildrenBlock(); }
protected override void Layout(GwenSkin.Base skin) { base.Layout(skin); BindData(); cb_action.SetSize(200, cb_action.Height); cb_action.PlaceLeftOf(); cb_action.LogPositionAndSize(); pedInformation .AddContentChild(pedContent) .PlaceBelowOf(cb_action) .AlignLeftWith() .SizeWidthWith(); text_first_name.Component.NormalSize(); text_last_name.Component.NormalSize(); text_age.Component.SmallSize(); text_times_stopped.Component.SmallSize(); text_wanted_status_false.Component.SmallSize(); text_wanted_status_true.Component.SetSize(332, 90); text_license_status.Component.SetSize(150, 21); text_dob.Component.SmallSize(); text_home_address.Component.LongSize(); text_last_name .PlaceRightOf(text_first_name, Configs.BaseFormControlSpacingDouble) .AlignTopWith(text_first_name); text_age .PlaceRightOf(text_last_name, Configs.BaseFormControlSpacingDouble) .AlignTopWith(text_last_name); text_home_address .PlaceBelowOf(text_first_name, Configs.BaseFormControlSpacingDouble) .AlignLeftWith(text_first_name); text_dob .Align(text_age, text_home_address); text_license_status .PlaceBelowOf(text_home_address, Configs.BaseFormControlSpacingDouble) .AlignLeftWith(text_home_address); text_times_stopped .PlaceBelowOf(text_license_status) .AlignLeftWith(text_license_status); text_wanted_status_false .PlaceBelowOf(text_times_stopped) .AlignLeftWith(text_times_stopped); text_wanted_status_true .PlaceBelowOf(text_times_stopped) .AlignLeftWith(text_times_stopped); ped_image_holder .PlaceLeftOf(); pedInformation.SizeToChildrenBlock(); pedContent.SizeToChildrenBlock(); }