示例#1
0
        private async void categoryWin()
        {
            CategoryList cl = await DataProccesorCat.LoadCategory(); //assigning result to list

            Form3 form3 = new Form3();                               //creating new window

            form3.testukas(cl.categories[listBox1.SelectedIndex]);   //sending particular category name
            form3.Show();                                            //making window visible
        }
示例#2
0
        private async void setupCategories()
        {
            CategoryList cl = await DataProccesorCat.LoadCategory();//Assigning request results and showing them on the listbox

            foreach (CategoryModel cm in cl.categories)
            {
                listBox1.Items.Add(cm.strCategory);
            }
        }