public PriceCalculatorResultPage(PriceCalculatorViewModel priceCalculatorViewModel, Grial.RLC rlc) { InitializeComponent(); this.rlc = rlc; _priceCalculatorResultViewModel = new PriceCalculatorResultViewModel { Name = rlc.Name, Country = rlc.Country, EndDate = priceCalculatorViewModel.EndDate, StartDate = priceCalculatorViewModel.StartDate, BankingProduct = priceCalculatorViewModel.BankingProduct, Tenor = String.Format("{0} Months", priceCalculatorViewModel.Tenor), Interest = "10 %", Price = "10,000", Situation = new List <Situation> { new Situation { Label = "Outstanding", OutstandingAmount = rlc.LineSituation[0].OutstandingAmount }, new Situation { Label = "Availablity", OutstandingAmount = (rlc.LineSituation[0].LimitAmount - rlc.LineSituation[0].OutstandingAmount) } }, Colors = new List <Color> { Color.FromRgb(230, 0, 40), Color.FromRgb(35, 85, 140) } }; BindingContext = _priceCalculatorResultViewModel; AddToolbar(); }
public DetailedSituationTabbedPage(Grial.RLC rlc, TrcType selectedBucket) { InitializeComponent(); this.rlc = rlc; this.selectedBucket = selectedBucket; AddChildern(); SetCurrentPage(); AddToolbar(); }
public PriceCalculatorPage(Grial.RLC rlc) { InitializeComponent(); this.rlc = rlc; BankingProduct = string.Empty; _priceCalculatorViewModel = new PriceCalculatorViewModel(); BindingContext = _priceCalculatorViewModel; AddToolbar(); }
public UnspecificDetailedSituation(Grial.RLC rlc) { InitializeComponent(); this.rlc = rlc; //BindingContext = this; }