Exemple #1
0
        public void InitializeGraphics()
        {
            var filenames = (from pr in allFiles.Items
                             orderby pr.PairedResult.PureFileName
                             select pr.PairedResult.PureFileName).Distinct().ToList();

            while (tcGraph.TabCount > 1)
            {
                tcGraph.TabPages.RemoveAt(tcGraph.TabCount - 1);
                scanGraphs.RemoveAt(scanGraphs.Count - 1);
            }

            while (tcGraph.TabCount < filenames.Count + 1)
            {
                tcGraph.TabPages.Add(filenames[tcGraph.TabCount - 1]);
                var page = tcGraph.TabPages[tcGraph.TabCount - 1];
                var zgc  = new ZedGraphControl();
                zgc.Parent = page;
                page.Controls.Add(zgc);
                zgc.Dock = DockStyle.Fill;
                var scan = new ZedGraphMRMPeptideItemScans(zgc, this.CreateGraphics());
                scanGraphs.Add(scan);
            }

            for (int i = 0; i < filenames.Count; i++)
            {
                scanGraphs[i].FileName = filenames[i];
            }
        }
        public SrmBrowserUI()
        {
            InitializeComponent();

            base.SetFileArgument("MRMFile", new OpenFileArgument("MRM Distiller", ".mrm"));

            PeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcPeptide, this.CreateGraphics()).Update;

            ProductIonUpdate += new ZedGraphMRMProductIonScansAndRegression(zgcTransaction, this.CreateGraphics()).Update;
            ProductIonUpdate += (sender, e) =>
            {
                var ion          = e.Item;
                var lightEnabled = ion.Light == null ? null : (from scan in ion.Light.Intensities
                                                               where scan.Enabled
                                                               select scan).ToList();
                var heavyEnabled = ion.Heavy == null ? null : (from scan in ion.Heavy.Intensities
                                                               where scan.Enabled
                                                               select scan).ToList();
                lightView.DataSource = lightEnabled;
                heavyView.DataSource = heavyEnabled;
            };

            this.AddButton(btnSaveCross);
            this.AddButton(btnExport);

            this.Text = Constants.GetSQHTitle(title, version);
        }
Exemple #3
0
        public SrmCompoundModeForm()
        {
            InitializeComponent();

            this.peptideGraph = new ZedGraphMRMPeptideItemScans(zgcPeptide, this.CreateGraphics());

            this.rtGraph = new ZedGraphMRMPeptideItemRetentionTimes(zgcRetentionTime);

            this.ViewOption = new SrmViewOption();
        }
        public SrmFileModeForm()
        {
            InitializeComponent();

            PeptideItemUpdate += UpdatePeptide;
            PeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcPeptide, this.CreateGraphics()).Update;
            ProductIonUpdate  += new ZedGraphMRMProductIonScansAndRegression(zgcTransaction, this.CreateGraphics()).Update;

            ViewOption = new SrmViewOption();
        }
        public SrmValidatorUI()
        {
            InitializeComponent();

            this.Text = Constants.GetSQHTitle(title, version);

            this.viewOption = new SrmViewOption();

            FileModePeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcFileModePeptide, this.CreateGraphics()).Update;
            FileModePeptideItemUpdate += new ZedGraphSrmPeptideItem(zgcAllInOne).Update;
            FileModeProductIonUpdate  += new ZedGraphMRMProductIonScansAndRegression(zgcFileModeTransaction, this.CreateGraphics()).Update;

            CompoundModePeptideItemUpdate += new ZedGraphMRMPeptideItemScans(zgcCompoundModePeptide, this.CreateGraphics()).Update;
            CompoundModePeptideItemUpdate += new ZedGraphMRMPeptideItemRetentionTimes(zgcRetentionTime).Update;

            btnFileMode.PerformClick();
        }