public HomePage() { InitializeComponent(); //NavigationPage.SetHasNavigationBar(this, false); _objComapreRatesByZipcodeRequest = new ComapreRatesByZipcodeRequest(); selectedConsumer = 0; selectedElement = 0; listTabsConsumerTypes = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("ImgResidence", "Residence"), new KeyValuePair <string, string>("ImgCommercial", "Commercial") }; listTabsElementTypes = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("ImgElctricity", "Elctricity"), new KeyValuePair <string, string>("ImgGas", "Gas") }; imagesNameConsumer = new List <string>() { "residence", "commercial" }; imagesNameElement = new List <string>() { "electicity", "gas" }; _objComapreRatesByZipcodeRequest.requestSearch.isResidential = true; _objComapreRatesByZipcodeRequest.requestSearch.isElectricity = true; _objComapreRatesByZipcodeRequest.requestFilterSearch.supplierName = string.Empty; _objComapreRatesByZipcodeRequest.requestFilterSearch.terms = 0; // XFBtnCompareRates.Focus(); }
public ElectricityAndGasListing(ComapreRatesByZipcodeRequest ObjComapreRatesByZipcodeRequest) { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, ""); _objComapreRatesByZipcodeRequest = new ComapreRatesByZipcodeRequest(); _objComapreRatesByZipcodeRequest = ObjComapreRatesByZipcodeRequest; _objComapreRatesByZipcodeResponse = new ComapreRatesByZipcodeResponse(); _apiService = new RestApi(); if (_objComapreRatesByZipcodeRequest.requestSearch.isElectricity) { // XFLabelTitle.Text = "Electricity"; } else { // XFLabelTitle.Text = "Gas"; } _baseUrl = Domain.Url + Domain.LoadDataByZipCodeApiConstant; LoadSupplierAndRetailerList(); base.BindingContext = this; }