예제 #1
0
        private void EditCategory()
        {
            var element = ListCategories.SelectedItems[0];

            if (element == null)
            {
                return;
            }

            Presenter.Editcategory(int.Parse(element.Tag.ToString()));
            ListCategories.Select();
        }
예제 #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();
        }