Exemplo n.º 1
0
        /// <summary>
        /// Deleting department
        /// </summary>
        public void DeleteDepartment()
        {
            if (view.ListViewDep.SelectedIndex != -1)
            {
                model.DeleteDepartment(view.ListViewDep.SelectedIndex);
            }
            else
            {
                MessageBox.Show("Selet item from list");
            }

            RefreshDepListCB();
        }