Beispiel #1
0
        private void logDNSQueriesToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            var Command = new RouterLogDNS(Data);

            Busy BusyWorker = new Busy(Command);

            if (BusyWorker.ShowDialog() == DialogResult.OK)
            {
                var ResultForm = new DNSLogViewer(Command.GetLogPath(), Data);
                ResultForm.ShowDialog();
            }
        }
Beispiel #2
0
        private void openDNSLogToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();

            openFile.Filter           = "All files (*.*)|*.*";
            openFile.FilterIndex      = 1;
            openFile.RestoreDirectory = true;

            if (openFile.ShowDialog() == DialogResult.OK)
            {
                var ResultForm = new DNSLogViewer(openFile.FileName, Data);
                ResultForm.ShowDialog();
            }
        }