Ejemplo n.º 1
0
		public MainForm()
		{
			InitializeComponent();
			Dump = new NetHookDump();

			selectedListViewItem = null;
			RepopulateInterface();

			itemsListView.ListViewItemSorter = new NetHookListViewItemSequentialComparer();
			specializations = LoadMessageObjectSpecializations();
		}
Ejemplo n.º 2
0
        void OnOpenToolStripMenuItemClick(object sender, EventArgs e)
        {
            var dialog = new FolderBrowserDialog {
                ShowNewFolderButton = false
            };
            var latestNethookDir = GetLatestNethookDumpDirectory();

            if (latestNethookDir != null)
            {
                dialog.SelectedPath = GetLatestNethookDumpDirectory();
            }

            if (dialog.ShowDialog() != WinForms.DialogResult.OK)
            {
                return;
            }

            var dumpDirectory = dialog.SelectedPath;

            var dump = new NetHookDump();

            dump.LoadFromDirectory(dumpDirectory);
            Dump = dump;

            Text = string.Format("NetHook2 Dump Analyzer - [{0}]", dumpDirectory);

            selectedListViewItem = null;
            RepopulateInterface();

            if (itemsListView.Items.Count > 0)
            {
                itemsListView.Select();
                itemsListView.Items[0].Selected = true;
            }

            InitializeFileSystemWatcher(dumpDirectory);

            if (automaticallySelectNewItemsToolStripMenuItem.Checked)
            {
                SelectLastItem();
            }
        }
Ejemplo n.º 3
0
		void OnOpenToolStripMenuItemClick(object sender, EventArgs e)
		{
			var dialog = new FolderBrowserDialog { ShowNewFolderButton = false };
			var latestNethookDir = GetLatestNethookDumpDirectory();
			if (latestNethookDir != null)
			{
				dialog.SelectedPath = GetLatestNethookDumpDirectory();
			}

			if (dialog.ShowDialog() != WinForms.DialogResult.OK)
			{
				return;
			}

			var dumpDirectory = dialog.SelectedPath;

			var dump = new NetHookDump();
			dump.LoadFromDirectory(dumpDirectory);
			Dump = dump;

			Text = string.Format("NetHook2 Dump Analyzer - [{0}]", dumpDirectory);

			selectedListViewItem = null;
			RepopulateInterface();

			if (itemsListView.Items.Count > 0)
			{
				itemsListView.Select();
				itemsListView.Items[0].Selected = true;
			}

			InitializeFileSystemWatcher(dumpDirectory);

			if (automaticallySelectNewItemsToolStripMenuItem.Checked)
			{
				SelectLastItem();
			}
		}