protected override void Layout(GwenSkin.Base skin) { base.Layout(skin); if (this.Parent == null && headerSection == null) { return; } BindDataFromReport(); headerSection.SizeWidthWith().AlignTopWith().AlignLeftWith().SizeToChildrenBlock(); arresteeInformationSection .AddContentChild(arrestInformationContent) .PlaceBelowOf(headerSection) .SizeWidthWith(); labeled_last_name.PlaceRightOf(labeled_first_name); labeled_dob.PlaceRightOf(labeled_last_name); labeled_home_address.PlaceBelowOf(labeled_first_name); arrestInformationContent.SizeToChildren(false, true); arresteeInformationSection.SizeToChildren(false, true); arrestLocationSection .AddContentChild(arrestLocationContent) .PlaceBelowOf(arresteeInformationSection) .SizeWidthWith(); labeled_arrest_date.PlaceRightOf(labeled_arrest_street_address, Configs.BaseFormControlSpacingDouble); labeled_arrest_city.PlaceBelowOf(labeled_arrest_street_address, Configs.BaseFormControlSpacingDouble); labeled_arrest_time.Align(labeled_arrest_date, labeled_arrest_city); arrestLocationContent.SizeToChildren(false, true); arrestLocationSection.SizeToChildren(false, true); labeledCharges.PlaceBelowOf(arrestLocationSection).SizeWidthWith().SizeChildrenWidth(); labeledAdditionalParties.PlaceBelowOf(labeledCharges).SizeWidthWith().SizeChildrenWidth(); tb_report_details.PlaceBelowOf(labeledAdditionalParties).SizeFull().SizeChildrenWidth().SizeChildrenHeight(); tb_report_details.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(); 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(); }
protected override void Layout(GwenSkin.Base skin) { base.Layout(skin); if (this.Parent == null && headerSection == null) { return; } BindDataFromCitation(); labeled_citation_report_id.Component.SmallSize(); if (btn_finish != null) { btn_finish.AlignRightWith().AlignTopWith(labeled_citation_report_id); } if (btn_finish_new != null) { btn_finish_new.PlaceLeftOf(btn_finish, Configs.BaseFormControlSpacingDouble * 2).AlignTopWith(btn_finish); } headerSection.SizeWidthWith().AlignTopWith().AlignLeftWith().SizeToChildrenBlock(); /* Persons Information */ citationeeInformationSection .AddContentChild(citationInformationContent) .PlaceBelowOf(headerSection) .SizeWidthWith(); labeled_last_name.PlaceRightOf(labeled_first_name, Configs.BaseFormControlSpacingHalf); labeled_dob.PlaceRightOf(labeled_last_name, Configs.BaseFormControlSpacingHalf); labeled_dob.Component.SmallSize(); labeled_home_address.PlaceBelowOf(labeled_first_name); citationInformationContent.SizeToChildren(false, true); citationeeInformationSection.SizeToChildren(false, true); /* Vehicle Information */ vehicleInformationSection .AddContentChild(vehicleInformationContent) .PlaceBelowOf(citationeeInformationSection) .SizeWidthWith(); labeled_vehicle_model.Component.SmallSize(); labeled_vehicle_color.Component.SmallSize(); labeled_vehicle_tag.Component.SmallSize(); labeled_vehicle_model.PlaceRightOf(labeled_vehicle_type, Configs.BaseFormControlSpacingHalf); labeled_vehicle_color.PlaceRightOf(labeled_vehicle_model, Configs.BaseFormControlSpacingHalf); labeled_vehicle_tag.PlaceRightOf(labeled_vehicle_color, Configs.BaseFormControlSpacingHalf); vehicleInformationContent.SizeToChildren(false, true); vehicleInformationSection.SizeToChildren(false, true); /* Location Information */ citationLocationSection .AddContentChild(citationLocationContent) .PlaceBelowOf(vehicleInformationSection) .SizeWidthWith(); labeled_citation_date.Component.SmallSize(); labeled_citation_time.Component.SmallSize(); labeled_citation_city.Component.MediumSize(); labeled_citation_date.PlaceRightOf(labeled_citation_street_address, Configs.BaseFormControlSpacingTriple * 2); labeled_citation_city.PlaceBelowOf(labeled_citation_street_address); labeled_citation_time.Align(labeled_citation_date, labeled_citation_city); citationLocationContent.SizeToChildren(false, true); citationLocationSection.SizeToChildren(false, true); /* Citation Details */ violationSection .AddContentChild(violationContent) .PlaceBelowOf(citationLocationSection) .SizeWidthWith(); labeled_available_citation_reasons .SizeWidthWith() .SetHeight(150) .SizeChildrenWidth() .SizeChildrenHeight(null, 30); labeled_citation_details .PlaceBelowOf(labeled_available_citation_reasons) .SizeWidthWith() .SetHeight(120) .SizeChildrenWidth() .SizeChildrenHeight(null, 30); violationContent.SizeToChildren(false, true); violationSection.SizeToChildren(false, true); }