Exemplo n.º 1
0
        private List <Flavor> GetFlavors()
        {
            var thisFlavors = new List <Flavor>();

            var flavor1 = new Flavor("Brand Placeholder", Flavor1Name.Text, Flavor1PG.QuickParse(),
                                     Flavor1Percentage.QuickParse());
            var flavor2 = new Flavor("Brand Placeholder", Flavor2Name.Text, Flavor2PG.QuickParse(),
                                     Flavor2Percentage.QuickParse());
            var flavor3 = new Flavor("Brand Placeholder", Flavor3Name.Text, Flavor3PG.QuickParse(),
                                     Flavor3Percentage.QuickParse());
            var flavor4 = new Flavor("Brand Placeholder", Flavor4Name.Text, Flavor4PG.QuickParse(),
                                     Flavor4Percentage.QuickParse());
            var flavor5 = new Flavor("Brand Placeholder", Flavor5Name.Text, Flavor5PG.QuickParse(),
                                     Flavor5Percentage.QuickParse());
            var flavor6 = new Flavor("Brand Placeholder", Flavor6Name.Text, Flavor6PG.QuickParse(),
                                     Flavor6Percentage.QuickParse());
            var flavor7 = new Flavor("Brand Placeholder", Flavor7Name.Text, Flavor7PG.QuickParse(),
                                     Flavor7Percentage.QuickParse());
            var flavor8 = new Flavor("Brand Placeholder", Flavor8Name.Text, Flavor8PG.QuickParse(),
                                     Flavor8Percentage.QuickParse());
            var flavor9 = new Flavor("Brand Placeholder", Flavor9Name.Text, Flavor9PG.QuickParse(),
                                     Flavor9Percentage.QuickParse());
            var flavor10 = new Flavor("Brand Placeholder", Flavor10Name.Text, Flavor10PG.QuickParse(),
                                      Flavor10Percentage.QuickParse());

            Flavor[] arrFlavors =
            { flavor1, flavor2, flavor3, flavor4, flavor5, flavor6, flavor7, flavor8, flavor9, flavor10 };
            thisFlavors.AddRange(arrFlavors);
            return(thisFlavors);
        }
Exemplo n.º 2
0
 private void Flavor10PG_OnTextChanged(object sender, TextChangedEventArgs e) =>
 Flavor10PG.HandlePercentageHandlers(Flavor10VG);