Ejemplo n.º 1
0
        public static void FinalCoast(this Gift gifts)
        {
            float summ = 0;

            for (Int32 i = 0; i < gifts.List.Count; i++)
            {
                if (gifts.List[i] is Clock)
                {
                    Clock clock = new Clock();
                    clock = (Clock)gifts.List[i];
                    summ  = summ + clock.Price;
                }
                if (gifts.List[i] is Flowers)
                {
                    Flowers flower = new Flowers();
                    flower = (Flowers)gifts.List[i];
                    summ   = summ + flower.Price;
                }
                if (gifts.List[i] is Cake)
                {
                    Cake cake = new Cake();
                    cake = (Cake)gifts.List[i];
                    summ = summ + cake.Price;
                }
            }

            Console.WriteLine(summ);
        }
Ejemplo n.º 2
0
        //Mérodo que envia datos por parametro a la vista edutflowerView:
        public async Task EditFlower(Flowers flower)
        {
            var mainViewModel = MainViewModel.GetInstance();

            mainViewModel.EditFlower = new EditFlowerViewModel(flower);
            await App.Current.MainPage.Navigation.PushAsync(new EditFlowerView());
        }
Ejemplo n.º 3
0
 public static void MinWeight(this Gift gifts)
 {
     Int32[] weight = new Int32[gifts.List.Count];
     for (Int32 i = 0; i < gifts.List.Count; i++)
     {
         if (gifts.List[i] is Clock)
         {
             Clock clock = new Clock();
             clock     = (Clock)gifts.List[i];
             weight[i] = clock.Weight;
         }
         if (gifts.List[i] is Flowers)
         {
             Flowers flower = new Flowers();
             flower    = (Flowers)gifts.List[i];
             weight[i] = flower.Weight;
         }
         if (gifts.List[i] is Cake)
         {
             Cake cake = new Cake();
             cake      = (Cake)gifts.List[i];
             weight[i] = cake.Weight;
         }
     }
     Console.WriteLine(weight.Min());
 }
Ejemplo n.º 4
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Task1: ");

            var trapeze = new List <Trapeze> {
                new Trapeze(-4, 0, -2, 4, 2, 4, 4, 0),
                new Trapeze(-6, 5, -2, 4, 2, 4, 6, 5),
                new Trapeze(1, -2, -1, -1, -1, 1, 1, 2),
                new Trapeze(3, -5, 6, 4, 10, 4, 13, -5),
                new Trapeze(3, -5, 6, 4, 10, 4, 20, -5)
            };

            trapeze.ForEach(points => points.PrintInfo());
            Console.WriteLine($"\nSumArea: {Trapeze.SumArea(trapeze):F3}");
            //Trapeze.SumArea(trapeze);
            int    counter = 0;
            double sumArea = Trapeze.SumArea(trapeze);
            double mean    = sumArea / trapeze.Count;

            for (int i = 0; i < trapeze.Count; i++)
            {
                if (trapeze[i].GetArea() > mean)
                {
                    counter++;
                }
            }
            Console.WriteLine($"\nMean: {mean:F3} \nCounter trapeze whose has area more than mean: {counter}");



            Console.WriteLine("-----------------------------------------");

            Console.WriteLine("Task2: ");

            var circleFirst      = new CircleFirst(12, 0, 0);
            var circleSecond     = new CircleSecond(11, 3, 5);
            var areaCircleFirst  = circleFirst.GetArea();
            var areaCircleSecond = circleSecond.GetArea();

            Console.WriteLine($"\nCircle first: \n{circleFirst.PrintInfo()}, \nCircle second: \n{circleSecond.PrintInfo()}," +
                              $"\nArea circle first {areaCircleFirst:F3}, \narea circle second {areaCircleSecond:F3}," +
                              $"\n{Circle.EqualAreasCheck(areaCircleFirst, areaCircleSecond):F3}");

            Console.WriteLine("----------------------------------------------");

            Console.WriteLine("Task5");
            var bouquet = new List <Flowers>()
            {
                new Roses(),
                new Carnations(),
                new Tulips(),
                new Tulips()
            };

            bouquet.ForEach(flowers => flowers.PrintInfo());
            Console.WriteLine($"Price this bouquet: {Flowers.FindingPriceOfBouquet(bouquet):F3}");


            Console.ReadLine();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Завершение заказа. Вычитание со склада компонентов, необходимых для создания каждого букета
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void button__Complete_Click(object sender, RoutedEventArgs e)
        {
            // Составляем соотношение букета и его компонентов.
            foreach (var b in lCart_Bouquet)
            {
                Bouquet_Content current_bouquet = new Bouquet_Content();

                current_bouquet.bouquet = b.bouquet;

                current_bouquet.lContent = await oContentsRepository.Select_Contents_Async("select * from contents where bouquets_id = " + b.bouquet.bouquets_id);

                // Вычитаем со склада компоненты для букета.
                foreach (var c in current_bouquet.lContent)
                {
                    if (c.accessories_id != -1)
                    {
                        Accessories result = await conn.GetAsync <Accessories>(c.accessories_id);

                        for (int i = 0; i < b.cart.count; i++)
                        {
                            result.in_stock -= c.count;
                        }

                        await oAccessoriesRepository.Update_Accessories_Async(result);
                    }
                    else
                    {
                        Flowers result = await conn.GetAsync <Flowers>(c.flowers_id);

                        for (int i = 0; i < b.cart.count; i++)
                        {
                            result.in_stock -= c.count;
                        }

                        await oFlowersRepository.Update_Flowers_Async(result);
                    }
                }
            }

            // Добавляем данные о заказе в БД
            Orders order = new Orders(oClient_Card.client.clients_id, DateTime.Now, textbox_Address.Text, oCart_Bouquet.cost, "В обработке");

            await oOrdersRepository.Insert_Orders_Async(order);

            // Добавляем данные о корзине заказа в БД
            foreach (var c in lCart_Bouquet)
            {
                c.cart.orders_id = order.orders_id;

                await oCartsRepository.Insert_Carts_Async(c.cart);
            }

            Clear_Control_All();

            this.Close();

            System.Windows.Forms.MessageBox.Show("Заказ успешно создан!");
        }
Ejemplo n.º 6
0
        static void Main(string[] args)
        {
            Console.WriteLine(GetValue(1.5f));
            Flowers narcissus = Flowers.Narcissus;

            Console.WriteLine(GetFlowerPrice(narcissus));

            Console.ReadKey();
        }
Ejemplo n.º 7
0
        public void AddFlower(Flower flower)
        {
            if (flower == null)
            {
                throw new ArgumentException($"Flower cannot be empty", nameof(flower));
            }

            Flowers.Add(flower);
        }
Ejemplo n.º 8
0
        private async void NewFlower()
        {
            if (string.IsNullOrEmpty(Description))
            {
                await dialogService.ShowConfirm("Error", "YOu must enter a description.");

                return;
            }

            if (Price <= 0)
            {
                await dialogService.ShowConfirm("Error", "You must enter a number greater than zero in Price.");

                return;
            }

            //aqui invoco el metodo de la clase fileHelper para con vertir los bits de la foto a array de string:
            var imageArray = FilesHelper.ReadFully(file.GetStream());

            //limpio memoria:
            file.Dispose();

            IsBusy    = true;
            IsEnabled = false;


            var flower = new  Flowers()
            {
                Description  = Description,
                Price        = Price,
                IsActive     = IsActive,
                LastPurchase = LastPurchase,
                Observation  = Observation,
                ImageArray   = imageArray,
            };



            var response = await apiService.Post("http://flowershome.azurewebsites.net", "/api", "/Flowers", flower);

            IsBusy    = false;
            IsEnabled = true;

            //aqui pregunto si no fue ingresado el objeto nuevo

            if (!response.IsSuccess)
            {
                await dialogService.showMessage("Error", response.Message);

                return;
            }

            //aqui pregunto si fue ingresado lo envio a la página princupal:
            await navigationService.Back();
        }
Ejemplo n.º 9
0
        private async void SaveFlower()
        {
            if (string.IsNullOrEmpty(Description))
            {
                await dialogService.showMessage("Error", "You must enter a description.");

                return;
            }



            if (Price <= 0)
            {
                await dialogService.showMessage("Error", "You must enter a number greater than zero in Price.");

                return;
            }

            //aqui invoco el metodo de la clase fileHelper para con vertir los bits de la foto a array de string:
            var imageArray = FilesHelper.ReadFully(file.GetStream());

            //limpio memoria:
            file.Dispose();


            var flawer = new Flowers()
            {
                Image        = Image,
                LastPurchase = LastPurchase,
                IsActive     = IsActive,
                Observation  = Observation,
                ImageArray   = imageArray,
                Description  = Description,
                FlowerId     = FlowerId,
                Price        = Price,
            };

            IsRunning = true;
            IsEnabled = false;

            var response = await apiService.Put("http://flowershome.azurewebsites.net", "/api", "/Flowers", flawer);

            IsRunning = false;
            IsEnabled = true;

            if (!response.IsSuccess)
            {
                await dialogService.showMessage("Error", response.Message);

                return;
            }


            await navigationService.Back();
        }
Ejemplo n.º 10
0
        private async Task Update_ListView_Contents(string name)
        {
            List <Accessories_Flowers> acc_flo = new List <Accessories_Flowers>();

            List <Contents> result = await oContentsRepository.Select_Contents_Async("select * from contents where bouquets_id = " + bouquet.bouquets_id);

            foreach (var content in result)
            {
                Accessories_Flowers temp_Accessories_Flowers = new Accessories_Flowers();

                temp_Accessories_Flowers.contents = content; // Необходимо для реализации обновления и удаления
                //temp_Accessories_Flowers.count = content.count; // Необходима для корректного отображения количества.

                if (content.accessories_id != -1)
                {
                    Accessories tempAccessories = await conn.GetAsync <Accessories>(content.accessories_id);

                    if (tempAccessories.name.ToLower().Contains(name.ToLower()))
                    {
                        temp_Accessories_Flowers.component  = tempAccessories;
                        temp_Accessories_Flowers.type       = "Аксессуар";
                        temp_Accessories_Flowers.type_index = 0;

                        temp_Accessories_Flowers.component_index = await Get_Component_Index(true, tempAccessories.accessories_id);
                    }
                    else
                    {
                        continue;
                    }
                }
                else
                {
                    Flowers tempFlowers = await conn.GetAsync <Flowers>(content.flowers_id);

                    if (tempFlowers.name.ToLower().Contains(name.ToLower()))
                    {
                        temp_Accessories_Flowers.component  = tempFlowers;
                        temp_Accessories_Flowers.type       = "Цветок";
                        temp_Accessories_Flowers.type_index = 1;

                        temp_Accessories_Flowers.component_index = await Get_Component_Index(false, tempFlowers.flowers_id);
                    }
                    else
                    {
                        continue;
                    }
                }

                acc_flo.Add(temp_Accessories_Flowers);
            }

            listview_Content.ItemsSource = acc_flo;
        }
Ejemplo n.º 11
0
    private void DoThrow(Flowers flowers)
    {
        float moveTime = Random.Range (minimumFlowerFlyTime, maximumFlowerFlyTime);

        float flowerTargetX = Random.Range (flowerMinThrowTarget.position.x, flowerMaxThrowTarget.position.x);

        flowers.MoveInArc(new Vector3(
            flowerTargetX,
            flowerMinThrowTarget.position.y,
            flowers.transform.position.z
            ), moveTime);
    }
Ejemplo n.º 12
0
        private void ReloadFlowers(List<Flower> flowers)
        {
            Flowers.Clear();
            foreach (var flower in flowers)
            {
                Flowers.Add(new FlowerItemViewModel
                {
                    Description = flower.Description,
                    FlowerId = flower.FlowerId,
                    Price = flower.Price,
                });

            }
        }
Ejemplo n.º 13
0
    public void ThrowFlower()
    {
        CancelInvoke("ThrowFlower");

        Flowers flowers = (Flowers) GameObject.Instantiate(flowerPrefab, flowerThrowPoint.position, Quaternion.identity);
        DoThrow(flowers);
        --flowersToThrow;

        if(flowersToThrow > 0) {
            Invoke ("ThrowFlower", flowerThrowTimeout);
        } else {
            if(isDoneTalking)
                DoFade();
        }
    }
Ejemplo n.º 14
0
        /// <summary>
        /// Выделение записи
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listview_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (combobox_Type.SelectedIndex == 0)
            {
                oFlowers         = listview.SelectedItem as Flowers;
                grid.DataContext = oFlowers;
            }
            if (combobox_Type.SelectedIndex == 1)
            {
                oAccessories     = listview.SelectedItem as Accessories;
                grid.DataContext = oAccessories;
            }

            button_insert.IsEnabled = false;
            button_update.IsEnabled = true;
            button_delete.IsEnabled = true;
        }
Ejemplo n.º 15
0
 private void ReloadFlowers(List <Flower> flowers)
 {
     Flowers.Clear();
     //foreach (var flower in flowers)
     foreach (var flower in flowers.OrderBy(f => f.Description))
     {
         Flowers.Add(new FlowerItemViewModel
         {
             Description  = flower.Description,
             FlowerId     = flower.FlowerId,
             Price        = flower.Price,
             Image        = flower.Image,
             IsActive     = flower.IsActive,
             LastPurchase = flower.LastPurchase,
             Observation  = flower.Observation,
         });
     }
 }
Ejemplo n.º 16
0
        static double GetFlowerPrice(Flowers flower)
        {
            switch (flower)
            {
            case Flowers.Aloes:
                return(8.99);

            case Flowers.Narcissus:
                return(19.50);

            case Flowers.Rose:
                return(4.19);

            case Flowers.Tulip:
                return(6.09);

            default:
                return(double.MinValue);
            }
        }
Ejemplo n.º 17
0
        private void OnAdd()
        {
            bool exists = false;

            foreach (Flower flower in Flowers)
            {
                if (flower.NameOfFlower.Equals(_enteredFlower))
                {
                    exists = true;
                    break;
                }
            }
            if (!exists)
            {
                Flowers.Add(new Flower {
                    NameOfFlower = _enteredFlower
                });
                EnteredFlower = string.Empty;
            }
        }
Ejemplo n.º 18
0
        public EditFlowerViewModel(Flowers flowers)
        {
            Description  = flowers.Description;
            Price        = flowers.Price;
            FlowerId     = flowers.FlowerId;
            LastPurchase = flowers.LastPurchase;
            IsActive     = flowers.IsActive;
            Observation  = flowers.Observation;
            Image        = flowers.Image;

            IsEnabled = true;



            //services:
            dialogService     = new DialogService();
            apiService        = new ApiService();
            navigationService = new NavigationService();


            //los boton se inician: en verdaderos
            IsEnabled = true;
        }
 // GET: /AutocompleteAutofill/
 public ActionResult Autofill()
 {
     ViewBag.datasource = Flowers.GetFlowers();
     return(View());
 }
Ejemplo n.º 20
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Task 3");
            var figures = new List <BaseFigure> {
                new Circle(15), new Rectangle(10, 80), new Square(10)
            };

            figures.ForEach(figure => figure.PrintInfo());

            Console.WriteLine("_______________________________");
            Console.WriteLine("Task 4");
            Console.ReadKey();
            var storage = new Storage();

            storage.Products.AddRange(new List <IInfo> {
                new Chair("Mebli"), new IronRaw(100), new WoodenRaw(500, "Oak"), new Chair("Dreamchair")
            });

            storage.Products.ForEach(product => product.PrintInfo());

            Console.WriteLine("Task 1");

            var trapezoid = new List <IsoscelesTrapezoid>()
            {
                new IsoscelesTrapezoid(new Point(2, 3), new Point(3, 7), new Point(4, 5), new Point(5, 4)),
                new IsoscelesTrapezoid(new Point(3, 5), new Point(4, 8), new Point(5, 6), new Point(6, 5)),
                new IsoscelesTrapezoid(new Point(4, 5), new Point(5, 9), new Point(6, 7), new Point(7, 6)),
                new IsoscelesTrapezoid(new Point(5, 6), new Point(6, 10), new Point(3, 8), new Point(8, 7)),
                new IsoscelesTrapezoid(new Point(6, 7), new Point(7, 11), new Point(10, 9), new Point(9, 8))
            };

            trapezoid.ForEach(trapez => trapez.GetIsoscelesTest());

            Console.WriteLine("_______________________________");

            trapezoid.ForEach(trapez => trapez.GetInfo());

            int    counterArea = 0;
            double mean        = IsoscelesTrapezoid.Mean(trapezoid);

            for (int i = 0; i < trapezoid.Count; i++)
            {
                if (trapezoid[i].GetArea() > mean)
                {
                    counterArea++;
                }
            }
            Console.WriteLine($"trapezoid, whose area is larger than average {counterArea}");

            Console.WriteLine("_______________________________");
            Console.WriteLine("Task 2");
            var circles = new List <Circles>()
            {
                new Circles(new Point(0, 0), 12),
                new Circles(new Point(3, 5), 11)
            };

            circles.ForEach(circle => circle.GetInfo());
            Console.WriteLine($"{Circles.EqualityCheckArea(circles[0].GetArea(),circles[1].GetArea())}");

            Console.WriteLine("_______________________________");
            Console.WriteLine("Task 5");

            var bouquet = new List <Flowers>()
            {
                new Rose(10), new Lily(11), new Chrysanthemum(17), new Tulip(15), new Tulip(15), new Tulip(15), new Tulip(15)
            };

            Console.WriteLine($"Your bouquet cost:{Flowers.GetPriceOfBouquet(bouquet)}");
            Console.WriteLine("_______________________________");

            Console.ReadKey();
        }
Ejemplo n.º 21
0
 // GET: //
 public ActionResult Methods()
 {
     ViewBag.datasource = Flowers.GetFlowers();
     return(View());
 }
Ejemplo n.º 22
0
 // Use this for initialization
 void Start()
 {
     steeringBasics = GetComponent <SteeringBasics>();
     flowers        = GetComponent <Flowers>();
 }
Ejemplo n.º 23
0
        static void Main(string[] args)
        {
            User[] users = new User[2];
            users[0].name = "Swatar";
            users[0].age  = 18;
            users[1].name = "MrWeebeez";
            users[1].age  = 18;

            var clock1  = new Clock(ClockModel.G_shock, "China", "1 year", 59.99F, 20);
            var clock2  = new Clock(ClockModel.ApplWtc, "USA", "5 year", 399.99F, 30);
            var clock3  = new Clock(ClockModel.Mi_Band, "China", "4 year", 149.99F, 40);
            var flower1 = new Flowers(Flower.Rose, "Вкусно", "Italy", "5 days", 5, 4);
            var Lakomka = new Cake("Вкусно", "Belarus", "5 days", 8, 50, 20, 50, 10, 20, 40, 50);
            var gift    = new Gift();


            var products = new Product[5];

            products[0] = clock1;
            products[1] = clock2;
            products[2] = clock3;
            products[3] = flower1;
            products[4] = Lakomka;

            Int32          varint = 0;
            ConsoleKeyInfo info;

            while (varint == 0)
            {
                Console.WriteLine(
                    "Введите функцию, которую хотите выполнить:" +
                    "\n1)Показать информацию о товарах\n2)Чтобы что-нибудь скушать\n3)Кинуть часы(class)\n4)Кинуть часы(interface)\n" +
                    "5)G_shock - это часы?\n6)Типы наших товаров\n7)Работа с подарком на Новый Год\n8)Работа с Экзепшионами\n9)Тест\n0)Выход из программы");

                Console.WriteLine(new string('_', 100));
                info = Console.ReadKey(true);
                if (info.KeyChar == '1')
                {
                    Console.Clear();
                    try
                    {
                        foreach (Product product in products)
                        {
                            product.Info();
                        }
                    }
                    catch
                    {
                        throw new ArgumentOutOfRangeException("Выход за пределы массива");
                    }
                }

                if (info.KeyChar == '2')
                {
                    Console.Clear();
                    Console.WriteLine("1-Часы\n2-Торт\n3-Цветок");
                    Console.WriteLine(new string('_', 100));
                    info = Console.ReadKey(true);
                    if (info.KeyChar == '1')
                    {
                        Console.Clear();
                        clock1.Eat();
                    }
                    if (info.KeyChar == '2')
                    {
                        Console.Clear();
                        Lakomka.Eat();
                    }
                    if (info.KeyChar == '3')
                    {
                        ComAliasNameAttribute a = new ComAliasNameAttribute(alias:);
                    }
                }


                if (info.KeyChar == '4')
                {
                    Console.Clear();
                    ((Ieat)clock2).Throw();
                }

                if (info.KeyChar == '5')
                {
                    Console.Clear();
                    Console.WriteLine("Являются ли часы G_shock_2 часами?");
                    Console.WriteLine(clock2 is Clock);
                    Console.WriteLine(new string('_', 100));
                }

                if (info.KeyChar == '6')
                {
                    Console.Clear();
                    try
                    {
                        foreach (Product produc in products)
                        {
                            Console.WriteLine(produc.ToString());
                        }
                    }
                    catch
                    {
                        throw new ArgumentOutOfRangeException("Выход за пределы массива");
                    }
                    Console.WriteLine(new string('_', 100));
                }

                if (info.KeyChar == '7')
                {
                    Console.WriteLine("1)Добавить подарок\n2)Вывести содержимое подарка\n3)Удаление содержимого из подарка\n4)Стоимость подарка\n5)Самый лёгкий элемент подарка");
                    info = Console.ReadKey(true);
                    Console.Clear();
                    if (info.KeyChar == '1')
                    {
                        Console.Clear();
                        for (Int32 i = 0; i < products.Length; i++)
                        {
                            gift.List.Add(products[i]);
                        }
                        Console.WriteLine("Вещи добавлены");
                        Console.WriteLine(new string('_', 100));
                    }

                    if (info.KeyChar == '2')
                    {
                        for (Int32 i = 0; i < gift.List.Count; i++)
                        {
                            Console.WriteLine(gift.List[i]);
                        }
                        Console.WriteLine(new string('_', 100));
                    }

                    if (info.KeyChar == '3')
                    {
                        Console.WriteLine("1)Удалить ВСЁ\n2)Удалить выбранный элемент");
                        info = Console.ReadKey(true);
                        Console.Clear();
                        if (info.KeyChar == '1')
                        {
                            gift.List.Clear();
                        }
                        if (info.KeyChar == '2')
                        {
                            Int32 elem;
                            Console.WriteLine("Введите индекс элемента, который вы хотите удалить:");
                            while (!Int32.TryParse(Console.ReadLine(), out elem))
                            {
                                Console.Clear();
                                Console.WriteLine("Введите корректное число!");
                            }
                            gift.List.RemoveAt(elem);
                            Console.WriteLine(new string('_', 100));
                        }
                    }

                    if (info.KeyChar == '4')
                    {
                        gift.FinalCoast();
                    }

                    if (info.KeyChar == '5')
                    {
                        gift.MinWeight();
                    }
                }

                if (info.KeyChar == '8')
                {
                    Person p = new Person();
                    try
                    {
                        p = new Person {
                            Name = "Сватар", Age = 17
                        };
                    }
                    catch (AgeException ex)
                    {
                        Console.Clear();
                        Console.WriteLine("Ошибка: " + ex.Message);
                    }
                    finally
                    {
                        Console.WriteLine(new String('_', 100));
                    }
                    Console.WriteLine(p.Name);
                    int[] aa = null;
                    Debug.Assert(aa != null, "Values array cannot be null");
                }

                if (info.KeyChar == '9')
                {
                    string[] str = new string[5];
                    try
                    {
                        str[7] = "anythinddddg";
                        Console.WriteLine("It's OK");
                    }
                    catch (IndexOutOfRangeException e)
                    {
                        Console.WriteLine("IndexOutOfRangeException");
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Exception");
                    }
                }

                if (info.KeyChar == '0')
                {
                    Console.Clear();
                    varint++;
                }
            }
        }
Ejemplo n.º 24
0
        // Element löschen

        private void OnDelete()
        {
            Flowers.Remove(SelectedFlower);
        }
        //
        // GET: /Sorting/

        public ActionResult Sorting()
        {
            ViewBag.datasource = Flowers.GetFlowers();
            return(View());
        }
Ejemplo n.º 26
0
 public void AddFlower(Flower flower)
 {
     Flowers.Add(flower);
 }
Ejemplo n.º 27
0
 public async Task Insert_Flowers_Async(Flowers flowers)
 {
     await conn.InsertAsync(flowers);
 }
Ejemplo n.º 28
0
 public async Task Update_Flowers_Async(Flowers flowers)
 {
     await conn.UpdateAsync(flowers);
 }
Ejemplo n.º 29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.selectFlower.DataSource = Flowers.GetFlowers();
 }
Ejemplo n.º 30
0
 public async Task Delete_Flowers_Async(Flowers flowers)
 {
     await conn.DeleteAsync(flowers);
 }