示例#1
0
        private void openResultToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialogProgramMainForm.Filter = "mpex files (*.mpex)|*.mpex";

            if (openFileDialogProgramMainForm.ShowDialog() != DialogResult.Cancel)
            {
                MAlginerrForm maf = new MAlginerrForm();
                maf.Width = 900;
                maf.MyViewer.LoadResult(openFileDialogProgramMainForm.FileName);
                maf.Text = "PepExplorer 2.0 - " + openFileDialogProgramMainForm.FileName;
                maf.ShowDialog();
            }
        }
示例#2
0
        private void backgroundWorkerProgramMainForm_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            timerProgramMainForm.Enabled     = false;
            progressBarProgramMainForm.Value = 100;

            if (e.Error != null)
            {
                MessageBox.Show(e.Error.Message, "Error");
            }
            else
            {
                MAlginerrForm mf = new MAlginerrForm();
                mf.MyViewer.MyResultPackage = Engine.MResultPckg;
                mf.MyViewer.UpdateDisplay();
                mf.ShowDialog();
            }

            buttonStart.Enabled = true;
            dataViewerToolStripMenuItem.Enabled = true;

            dataViewerToolStripMenuItem.Enabled = true;
        }