/* protected void btnLeft_Click_old(object sender, ImageClickEventArgs e)
     * {
     *   //copy file  FROM GROUPS  to user\\
     * }*/

    protected void btnRight_Click(object sender, ImageClickEventArgs e)
    {
        //copy file  FROM user to groups


        string i       = DropDownList2.SelectedValue;
        int    groupid = Convert.ToInt32(i);

        if (groupid == 0)
        {
            errormessage.Text = " Please choose a specific group in the drop down list at the top before copying file into Group files.";
            return;
        }

        string usr_dir  = GetDirectory() + userDir + "\\" + MODELS;
        string filename = "no name yet ";

        //logFiles.ErrorLog("  right click - move to group " + filename);
        try
        {
            filename = lstPersonModels.SelectedItem.Text;// get_modelid line from personmodels!!!
            //logFiles.ErrorLog("  right click - move to group got name:  " + filename);
        } catch (Exception) {
            errormessage.Text = "Cannot Copy to Group Models. No user model selected. ";
            return;
        }

        int i1 = groupManagement.add_model_file(usr_dir, filename, username, groupid); // put file to groups!!!

        if (i1 == 0)
        {
            errormessage.Text = "An error has occured when copying model from user directory to group models.";
        }

        SetGroupModelsData(groupid);
        //xx  update List of FileS in grid !!!
    }