private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Organization organization = GetOrganization(_currentNode);

            if (ClassForForm.DeleteOrganization(organization))
            {
                LoadTree();
            }
        }
        private void btnDeleteSubOrganization_Click(object sender, EventArgs e)
        {
            if ((treeView1.SelectedNode != null) && (treeView1.SelectedNode != treeView1.Nodes[0]))
            {
                Organization organization = GetOrganization(_currentNode);

                if (ClassForForm.DeleteOrganization(organization))
                {
                    LoadTree();
                }
            }
        }
Exemple #3
0
        public bool DeleteOrganization()
        {
            Organization organization = GetOrganization();

            if ((organization != null) && (ClassForForm.DeleteOrganization(organization)))
            {
                History.Save(organization, UserLogged.Get(), HistoryAction.Удалил);
                return(true);
            }

            return(false);
        }