private void AddNew_ContextEvent(object sender, EventArgs e)
        {
            switch (currentSelectedNode.Tag)
            {
            case "usersNode":
                UserConfigForm userForm = new UserConfigForm();
                userForm.ShowDialog();
                GetUsers(true);
                break;

            case "classesNode":
                ClassConfigForm classForm = new ClassConfigForm();
                classForm.ShowDialog();
                GetClasses(true);
                break;

            case "workspacesNode":
                WorkspaceConfigForm workspaceForm = new WorkspaceConfigForm();
                workspaceForm.ShowDialog();
                GetWorkspaces(true);
                break;

            default:
                break;
            }
        }
        private void EditEntry_ContextEvent(object sender, EventArgs e)
        {
            int             selectedRowIndex = dataGridView.SelectedCells[0].RowIndex;
            DataGridViewRow selectedRow      = dataGridView.Rows[selectedRowIndex];

            switch (currentSelectedNode.Tag)
            {
            case "usersNode":
                int            userID   = int.Parse(selectedRow.Cells["userID"].Value.ToString());
                UserConfigForm userForm = new UserConfigForm(userID);
                userForm.ShowDialog();
                GetUsers(true);
                break;

            case "classesNode":
                int             classID   = int.Parse(selectedRow.Cells["classID"].Value.ToString());
                ClassConfigForm classForm = new ClassConfigForm(classID);
                classForm.ShowDialog();
                GetClasses(true);
                break;

            case "workspacesNode":
                int workspaceID = int.Parse(selectedRow.Cells["workspaceID"].Value.ToString());
                WorkspaceConfigForm workspaceForm = new WorkspaceConfigForm(workspaceID);
                workspaceForm.ShowDialog();
                GetWorkspaces(true);
                break;

            default:
                break;
            }
        }