示例#1
0
        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();
        }
示例#2
0
 private void showLogToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form logForm = new LogForm(ActiveCase.Actions);
     logForm.Show();
 }
示例#3
0
 private void btnLog_Click(object sender, EventArgs e)
 {
     Form form = new LogForm(m_Case.Actions);
     form.Show();
 }