private void addWorklogHistoryEntryMenuItem_Click(object sender, EventArgs e)
        {
            if ((gridPanel == null) || (gridPanel.Selected_Row == null) || (gridPanel.Selected_Row.Length == 0))
            {
                return;
            }

            Add_Workflow_Form workflowForm = new Add_Workflow_Form();

            if (workflowForm.ShowDialog() == DialogResult.OK)
            {
                Cursor = Cursors.WaitCursor;
                int      updated = 0;
                int      skipped = 0;
                string   type    = workflowForm.Workflow_Type;
                DateTime date    = workflowForm.Workflow_Date;
                string   notes   = workflowForm.Workflow_Notes;
                foreach (DataRow thisRow in gridPanel.Selected_Row)
                {
                    int itemid = Convert.ToInt32(thisRow["ItemID"]);
                    if (itemid > 0)
                    {
                        SobekCM_Database.Add_Past_Workflow(itemid, type, notes, date, username, String.Empty);
                        updated++;
                    }
                    else
                    {
                        skipped++;
                    }
                }

                Cursor = Cursors.Default;
                MessageBox.Show(updated + " records updated.\n\n" + skipped + " multi-volume records skipped");
            }
        }
        private void addWorklogHistoryEntryMenuItem_Click(object sender, EventArgs e)
        {
            if ((gridPanel == null) || (gridPanel.Selected_Row == null) || (gridPanel.Selected_Row.Length == 0))
                return;

            Add_Workflow_Form workflowForm = new Add_Workflow_Form();
            if (workflowForm.ShowDialog() == DialogResult.OK)
            {
                Cursor = Cursors.WaitCursor;
                int updated = 0;
                int skipped = 0;
                string type = workflowForm.Workflow_Type;
                DateTime date = workflowForm.Workflow_Date;
                string notes = workflowForm.Workflow_Notes;
                foreach (DataRow thisRow in gridPanel.Selected_Row)
                {
                    int itemid = Convert.ToInt32(thisRow["ItemID"]);
                    if (itemid > 0)
                    {
                        SobekCM_Database.Add_Past_Workflow(itemid, type, notes, date, username, String.Empty);
                        updated++;
                    }
                    else
                    {
                        skipped++;
                    }
                }

                Cursor = Cursors.Default;
                MessageBox.Show(updated + " records updated.\n\n" + skipped + " multi-volume records skipped");
            }
        }