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