Exemplo n.º 1
0
 private void btn_department_edit_Click(object sender, EventArgs e)
 {
     using (EditNodeView editCompany = new EditNodeView(Convert.ToInt32(dgv_departments.SelectedCells[0].Value)))
     {
         editCompany.ShowDialog();
     }
     ReloadGrids();
 }
Exemplo n.º 2
0
 private void btn_company_add_Click(object sender, EventArgs e)
 {
     using (EditNodeView addCompany = new EditNodeView(HierarchyLevel.Company, null))
     {
         addCompany.ShowDialog();
     }
     ReloadGrids();
 }
Exemplo n.º 3
0
        private void btn_department_add_Click(object sender, EventArgs e)
        {
            int parentNodeID = Convert.ToInt32(dgv_projects.SelectedRows[0].Cells[0].Value);

            using (EditNodeView addDepartment = new EditNodeView(HierarchyLevel.Project, parentNodeID))
            {
                addDepartment.ShowDialog();
            }
            ReloadGrids();
        }
Exemplo n.º 4
0
        private void btn_division_add_Click(object sender, EventArgs e)
        {
            int parentNodeID = Convert.ToInt32(dgv_companies.SelectedRows[0].Cells[0].Value);

            using (EditNodeView addDivision = new EditNodeView(HierarchyLevel.Division, parentNodeID))
            {
                addDivision.ShowDialog();
            }
            ReloadGrids();
        }