示例#1
0
        private void toolStripButtonDetails_Click(object sender, EventArgs e)
        {
            QuarantineFileItem selectedItem = typedFileView.SelectedObject;

            if (selectedItem == null)
            {
                logger.Error("Attempted detail lookup when no file selected.");
                return;
            }

            try
            {
                Inspector.LaunchFileInspector(selectedItem.AbsolutePath);
            }
            catch (Exception ex)
            {
                MessageBox.Show(
                    string.Format(
                        "Unable to start the File Inspector utility.{0}Detail: {1}",
                        Environment.NewLine,
                        ex.Message),
                    "Quarantine Manager",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error,
                    MessageBoxDefaultButton.Button1);
            }
        }
示例#2
0
        private void toolStripButtonOpenOriginalLocation_Click(object sender, EventArgs e)
        {
            QuarantineFileItem selectedItem = typedFileView.SelectedObject;

            if (selectedItem == null)
            {
                logger.Error("Attempted original location access when no file selected.");
                return;
            }

            logger.Debug("Starting explorer process to show {0}", selectedItem.OriginalDirectoryPath);
            Process.Start("explorer.exe", selectedItem.OriginalDirectoryPath);
        }
示例#3
0
        private void toolStripMenuItemExtFES_Click(object sender, EventArgs e)
        {
            QuarantineFileItem selectedItem = typedFileView.SelectedObject;

            if (selectedItem == null)
            {
                logger.Error("Attempted online lookup when no file selected.");
                return;
            }

            Web.LookupSearchTerm(
                selectedItem.Extension.Name,
                OnlineSearchProvider.FILEEXTENSION);
        }