Exemplo n.º 1
0
        private void EditCategory()
        {
            var element = ListCategories.SelectedItems[0];

            if (element == null)
            {
                return;
            }

            Presenter.Editcategory(int.Parse(element.Tag.ToString()));
            ListCategories.Select();
        }
Exemplo n.º 2
0
        private void btnDell_Click(object sender, EventArgs e)
        {
            var element = ListCategories.SelectedItems[0];

            if (element == null)
            {
                return;
            }

            Presenter.Deletecategory(int.Parse(element.Tag.ToString()));
            ListCategories.Select();
        }