private void lstDocuments_DoubleClick(object sender, EventArgs e)
        {
            string           assessmentNo;
            Transaction_Type sopType;

            if (lstDocuments.SelectedItems.Count == 1)
            {
                assessmentNo = lstDocuments.SelectedItems[0].Text;
                if (lstDocuments.SelectedItems[0].SubItems[1].Text
                    == Enum.GetName(typeof(Transaction_Type), Transaction_Type.Assessment))
                {
                    sopType = Transaction_Type.Assessment;
                }
                else if (lstDocuments.SelectedItems[0].SubItems[1].Text
                         == Enum.GetName(typeof(Transaction_Type), Transaction_Type.Drop))
                {
                    sopType = Transaction_Type.Drop;
                }
                else
                {
                    sopType = Transaction_Type.Add;
                }


                if (viewAssessment == null)
                {
                    viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                }
                else
                {
                    if (viewAssessment.Created == false)
                    {
                        viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                    }
                    else
                    {
                        viewAssessment.Close();
                        viewAssessment = null;

                        viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                    }
                }
                viewAssessment.MdiParent = this.ParentForm; //added 20101006
                viewAssessment.Show();
                viewAssessment.Activate();
            }
        }
        private void lstDocuments_DoubleClick(object sender, EventArgs e)
        {
            string assessmentNo;
            Transaction_Type sopType;
            if (lstDocuments.SelectedItems.Count == 1)
            {
                assessmentNo = lstDocuments.SelectedItems[0].Text;
                if (lstDocuments.SelectedItems[0].SubItems[1].Text
                    == Enum.GetName(typeof(Transaction_Type), Transaction_Type.Assessment))
                {
                    sopType = Transaction_Type.Assessment;
                }
                else if (lstDocuments.SelectedItems[0].SubItems[1].Text
                    == Enum.GetName(typeof(Transaction_Type), Transaction_Type.Drop))
                {
                    sopType = Transaction_Type.Drop;
                }
                else
                {
                    sopType = Transaction_Type.Add;
                }

                if (viewAssessment == null)
                {
                    viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                }
                else
                {
                    if (viewAssessment.Created == false)
                    {
                        viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                    }
                    else
                    {
                        viewAssessment.Close();
                        viewAssessment = null;

                        viewAssessment = new frmViewAssessment(transactions.GetTransaction(assessmentNo, sopType));
                    }
                }
                viewAssessment.MdiParent = this.ParentForm; //added 20101006
                viewAssessment.Show();
                viewAssessment.Activate();
            }
        }