Exemplo n.º 1
0
        private void viewComparisonMenuItem_Click(object sender, System.EventArgs e)
        {
            currlogFileName = this.logFileName;

            OpenFileDialog openFileDialog1 = new OpenFileDialog();
            openFileDialog1.FileName = "*.log";
            openFileDialog1.Filter = "Allocation Logs | *.log";
            if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.CheckFileExists)
            {
                prevlogFileName = openFileDialog1.FileName;
            }
            this.noUI = false;
            graphtype = Graph.GraphType.AllocationGraph;
            try
            {
                ReportForm _MgrForm = new ReportForm(this);
                _MgrForm.Visible = true;
            }
            catch
            {
                /* errors already told user, so continue. */
            }
        }
Exemplo n.º 2
0
        static void Main(string[] arguments)
        {
            consoleCtrl = new ConsoleCtrl();
            consoleCtrl.ControlEvent += new ConsoleCtrl.ControlEventHandler(ConsoleEventHandler);
            MainForm f = new MainForm(arguments);

            if (f.exitProgram)
                return;

            if (!f.viewdiff && f.reportKind == MainForm.ReportKind.NoReport && f.processFileName == null)
            {
                Application.Run(f);
            }
            else
            {
                try
                {
                    ReportForm _MgrForm = new ReportForm(f);
                    if (!f.noUI)
                    {
                        Application.Run(_MgrForm);
                    }
                }
                catch
                {
                    Application.Exit();
                }
            }
        }