Example #1
0
        private void Create_FirmContact_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'trendDataSet.Firm' table. You can move, or remove it, as needed.
            firmTableAdapter.Fill(trendDataSet.Firm);
            // TODO: This line of code loads data into the 'trendDataSet.FirmContact' table. You can move, or remove it, as needed.
            firmContactTableAdapter.Fill(trendDataSet.FirmContact);

            EntitiesToComboBox.FillFirmComboBox(firm_idComboBox);
        }
Example #2
0
        private void Create_ActiveUserFile_Shown(object sender, EventArgs e)
        {
            var comboDictionaryOfComputers = new Dictionary <string, Computer>();

            ReferenceComputers.ToList().ForEach(
                x => { comboDictionaryOfComputers.Add((x.Make + " " + x.Model + " [" + x.SerialNumber + "]"), x); });

            comboBoxAUFReferenceComputer.DataSource    = new BindingSource(comboDictionaryOfComputers, null);
            comboBoxAUFReferenceComputer.DisplayMember = "Key";
            comboBoxAUFReferenceComputer.ValueMember   = "Value";

            EntitiesToComboBox.FillEmployeeComboBox(comboBoxCdfInfoTech);
        }
Example #3
0
        private void PopulateFormComboBoxes()
        {
            EntitiesToComboBox.FillEmployeeComboBox(comboBoxCDFInfoTech);

            addProcessPerformedHelper.PopulateComboBoxWithUtilityStrings();
            addDeviceUsedHelper.PopulateComboBoxWithUtilityStrings();
            addSoftwareHelper.PopulateComboBoxWithUtilityStrings();
            addImagesMadeHelper.PopulateComboBoxWithUtilityStrings();
            addImagesVerifiedByHelper.PopulateComboBoxWithUtilityStrings();

            ////processing performed
            //comboBoxProcessPerformed.Items.Clear();
            //comboBoxProcessPerformed.Items.Add("Imaging");
            //comboBoxProcessPerformed.Items.Add("Logical Copy");
            //comboBoxProcessPerformed.Items.Add("Clone");
            //comboBoxProcessPerformed.Items.Add("Review");
            //comboBoxProcessPerformed.Items.Add("No Processing");

            ////forensic device used
            //comboBoxDeviceUsed.Items.Clear();
            //comboBoxDeviceUsed.Items.Add("Portable Computer");
            //comboBoxDeviceUsed.Items.Add("Write Blocker");
            //comboBoxDeviceUsed.Items.Add("TD1 Duplicator");
            //comboBoxDeviceUsed.Items.Add("Other");

            ////software used
            //comboBoxSoftwareProcessing.Items.Clear();
            //comboBoxSoftwareProcessing.Items.Add("FTK Imager");
            //comboBoxSoftwareProcessing.Items.Add("EnCase");
            //comboBoxSoftwareProcessing.Items.Add("Helix Pro");
            //comboBoxSoftwareProcessing.Items.Add("Other");
            //comboBoxSoftwareProcessing.Items.Add("Version");


            ////images made
            //comboBoxImagesMade.Items.Clear();
            //comboBoxImagesMade.Items.Add("EDD");
            //comboBoxImagesMade.Items.Add("Examination Copy");
            //comboBoxImagesMade.Items.Add("Clone Copy");
            //comboBoxImagesMade.Items.Add("Archive");
            //comboBoxImagesMade.Items.Add("Other");

            ////images verified by
            //comboBoxImagesVerifiedBy.Items.Clear();
            //comboBoxImagesVerifiedBy.Items.Add("MD5 Hash");
            //comboBoxImagesVerifiedBy.Items.Add("SHA1 Hash");
            //comboBoxImagesVerifiedBy.Items.Add("SHA 256 Hash");
            //comboBoxImagesVerifiedBy.Items.Add("Not Verified");
            //comboBoxImagesVerifiedBy.Items.Add("Other");
        }
Example #4
0
        private void PopulateFormComboBoxes()
        {
            comboBoxHDType.Items.Clear();
            comboBoxHDType.Items.Add("Solid State Drive");
            comboBoxHDType.Items.Add("Consumer Internal Disk Drive");
            comboBoxHDType.Items.Add("Enterprise Internal Disk Drive");
            comboBoxHDType.Items.Add("External Disk Drive");
            comboBoxHDType.Items.Add("External Flash Drive");
            comboBoxHDType.Items.Add("Other");

            EntitiesToComboBox.FillEmployeeComboBox(comboBoxCdfInfoTech);

            addMakeHelper.PopulateComboBoxWithUtilityStrings();
            addModelHelper.PopulateComboBoxWithUtilityStrings();
        }
        public void UpdateComboBoxes()
        {
            EntitiesToComboBox.FillEmployeeComboBox(examiner_idComboBox);
            EntitiesToComboBox.FillFirmComboBox(firm_idComboBox);
            EntitiesToComboBox.FillEmployeeComboBox(comboBoxCdfInfoTech);

            if (firm_idComboBox.SelectedValue != null)
            {
                var firmGuid = new Guid(firm_idComboBox.SelectedValue.ToString());
                EntitiesToComboBox.FillFirmContactComboBoxByFirm(firmGuid, requester_idComboBox);
            }


            // EntitiesToComboBox.FillReferenceComputersComboBox();
            //shouldn't there be a requester entities to combobox here? like fillfirmcontactcombobox or fillfirmcontactcomboboxbyfirm
        }
Example #6
0
        //i want to make the checkbox 'systemwasserver' checked, and the combobox 'servertype' enabled, if the comp type is a server
        //private void comboBoxType_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    if (comboBoxType.SelectedIndex == 2)
        //    {
        //        checkBoxSystemWasServer.Checked = true;
        //        comboBoxServerType.Enabled = true;
        //    }
        //    else
        //    {
        //        //
        //    }
        //}


        private void PopulateFormComboBoxes()
        {
            //Populate combo Boxes
            EntitiesToComboBox.FillEmployeeComboBox(comboBoxShutDownBy);
            EntitiesToComboBox.FillEmployeeComboBox(comboBoxCdfInfoTech);

            addMakeHelper.PopulateComboBoxWithUtilityStrings();
            addModelHelper.PopulateComboBoxWithUtilityStrings();
            addSetupkeystrokeHelper.PopulateComboBoxWithUtilityStrings();
            addTimeProvidedByHelper.PopulateComboBoxWithUtilityStrings();

            comboBoxType.Items.Clear();
            comboBoxType.Items.Add("Desktop");
            comboBoxType.Items.Add("Laptop");
            comboBoxType.Items.Add("Server");
            comboBoxType.Items.Add("Mobile");
            comboBoxType.Items.Add("Other");
        }
        private void PopulateFormwithCase(Case incomingCase)
        {
            ISessionFactory factory = SessionConfig.SessionFactory;

            using (ISession session = factory.OpenSession())
            {
                using (ITransaction transaction = session.BeginTransaction())
                {
                    incomingCase = session.CreateCriteria(typeof(Case))
                                   .Add(Restrictions.Eq("Id", incomingCase.Id))
                                   .UniqueResult <Case>();

                    matterTextBox.Text                      = incomingCase.Matter;
                    caseNumberTextBox.Text                  = Math.Truncate(incomingCase.CaseNumber).ToString();
                    itemNumberTextBox.Text                  = incomingCase.ItemNumber.ToString();
                    startDateDateTimePicker.Value           = incomingCase.StartDate;
                    barcodeTextBox.Text                     = incomingCase.Barcode;
                    barcodeDateVerifiedDateTimePicker.Value = incomingCase.BarcodeDateVerified;
                    firm_idComboBox.SelectedValue           = incomingCase.Firm.Id;
                    EntitiesToComboBox.FillFirmContactComboBoxByFirm(incomingCase.Firm.Id, requester_idComboBox);
                    requester_idComboBox.SelectedValue = incomingCase.Requester.Id;
                    examiner_idComboBox.SelectedValue  = incomingCase.Examiner.Id;
                    textBoxConclusion.Text             = incomingCase.NotesAndConclusion.Conclusion;
                    textBoxNACNotes.Text = incomingCase.NotesAndConclusion.Notes;

                    NewCase               = incomingCase;
                    CaseComputers         = incomingCase.Computers;
                    CaseHardDrives        = incomingCase.HardDrives;
                    CaseForensicProcesses = incomingCase.ForensicProcesses;
                    CaseActiveUserFiles   = incomingCase.ActiveUserFiles;

                    EntitiesToListView.FillActiveUserFilesListViewDetailView(CaseActiveUserFiles,
                                                                             listViewAUFActiveUserFiles);
                    EntitiesToListView.FillComputersListview(CaseComputers, listViewAssociatedComputerList);
                    EntitiesToListView.FillHardDrivesListView(CaseHardDrives, listViewHardDrivesOnHardDrivePage);
                    EntitiesToListView.FillForensicProcessListView(CaseForensicProcesses, listViewForensicProcesses);

                    transaction.Commit();
                }
            }
        }
 private void View_CaseBrowser_Load(object sender, EventArgs e)
 {
     EntitiesToComboBox.FillEmployeeComboBox(examiner_idComboBox, true);
     EntitiesToComboBox.FillFirmComboBox(firm_idComboBox, true);
     EntitiesToComboBox.FillFirmContactComboBox(requester_idComboBox, true);
 }
        private void firm_idComboBox_SelectionChangeCommitted(object sender, EventArgs e)
        {
            var selectedfirm = new Guid(firm_idComboBox.SelectedValue.ToString());

            EntitiesToComboBox.FillFirmContactComboBoxByFirm(selectedfirm, requester_idComboBox);
        }