private void caseInfoToolStripMenuItem_Click(object sender, EventArgs e) { Form form = new CaseInfo(ActiveCase); form.ShowDialog(); }
private bool NewCase() { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Case Files|*.case"; saveFileDialog.Title = "New Case Location"; if (saveFileDialog.ShowDialog() == DialogResult.OK) { Case newCase = new Case(saveFileDialog.FileName, Path.GetFileNameWithoutExtension(saveFileDialog.FileName)); newCase.LogAction(String.Format("Case '{0} created and saved to {1}", newCase.Name, saveFileDialog.FileName), ActionType.CaseCreated); newCase.Save(); LoadCase(saveFileDialog.FileName, true); Form form = new CaseInfo(ActiveCase); form.ShowDialog(); return true; } return false; }
public void RefreshCaseTree() { m_CaseRoot.Nodes.Clear(); //Images TreeNode images = new TreeNode("Images"); images.ImageKey = "Images"; images.SelectedImageKey = "Images"; foreach (Image image in ActiveCase.Images) { TreeNode imageNode = new TreeNode(image.ToString()); imageNode.Tag = image; imageNode.ImageKey = "Images"; imageNode.SelectedImageKey = "Images"; doubleClickActions[imageNode] = delegate(TreeNodeMouseClickEventArgs e) { ExplorableObject = ViewableObject = (IDataStream)e.Node.Tag; }; images.Nodes.Add(imageNode); } TreeNode caseSettings = new TreeNode("Case Info"); caseSettings.ImageKey = "Logs"; caseSettings.SelectedImageKey = "Logs"; doubleClickActions[caseSettings] = delegate(TreeNodeMouseClickEventArgs node) { Form caseForm = new CaseInfo(ActiveCase); caseForm.ShowDialog(); }; TreeNode actionLog = new TreeNode("Action Log"); actionLog.ImageKey = "Logs"; actionLog.SelectedImageKey = "Logs"; doubleClickActions[actionLog] = delegate(TreeNodeMouseClickEventArgs node) { Form logForm = new LogForm(ActiveCase.Actions); logForm.Show(); }; TreeNode digital = new TreeNode("Evidence"); digital.ImageKey = "Thumbprint"; digital.SelectedImageKey = "Thumbprint"; m_CaseRoot.Nodes.Add(caseSettings); m_CaseRoot.Nodes.Add(actionLog); m_CaseRoot.Nodes.Add(images); m_CaseRoot.Nodes.Add(digital); m_CaseRoot.ExpandAll(); }