public bool HandleKeyDownEvent(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
//                case Keys.D2:
//                    if (e.Alt)
//                    {
//                        GraphSummary.Hide();
//                        return true;
//                    }
//                    break;
            case Keys.F8:
                if (!e.Alt && !(e.Shift && e.Control))
                {
                    if (e.Shift)
                    {
                        GraphType = GraphTypeRT.regression;
                    }
                    else if (e.Control)
                    {
                        GraphType = GraphTypeRT.peptide;
                    }
                    else
                    {
                        GraphType = GraphTypeRT.replicate;
                    }
                    GraphSummary.UpdateUI();
                    return(true);
                }
                break;
            }
            return(false);
        }
Esempio n. 2
0
 public void OnRatioIndexChanged()
 {
     if (GraphSummary.GraphPanes.OfType <AreaReplicateGraphPane>().Any() /* || !Settings.Default.AreaAverageReplicates */)
     {
         GraphSummary.UpdateUI();
     }
 }
Esempio n. 3
0
 public void OnActiveLibraryChanged()
 {
     if (GraphSummary.GraphPanes.OfType <AreaReplicateGraphPane>().Any())
     {
         GraphSummary.UpdateUI();
     }
 }
Esempio n. 4
0
 public void OnNormalizeOptionChanged()
 {
     if (GraphSummary.GraphPanes.OfType <MassErrorReplicateGraphPane>().Any() /* || !Settings.Default.AreaAverageReplicates */)
     {
         GraphSummary.UpdateUI();
     }
 }
Esempio n. 5
0
        public bool HandleKeyDownEvent(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
//                case Keys.D3:
//                    if (e.Alt)
//                        GraphSummary.Hide();
//                    break;
            case Keys.F7:
                if (!e.Alt && !(e.Shift && e.Control))
                {
                    if (e.Control)
                    {
                        Settings.Default.AreaGraphType = GraphTypeArea.peptide.ToString();
                    }
                    else
                    {
                        Settings.Default.AreaGraphType = GraphTypeArea.replicate.ToString();
                    }
                    GraphSummary.UpdateUI();
                }
                break;
            }
            return(false);
        }
Esempio n. 6
0
 public void OnResultsIndexChanged()
 {
     if (GraphSummary.GraphPanes.OfType <AreaReplicateGraphPane>().Any() /* || !Settings.Default.AreaAverageReplicates */ ||
         RTLinearRegressionGraphPane.ShowReplicate == ReplicateDisplay.single)
     {
         GraphSummary.UpdateUI();
     }
 }
 public void OnResultsIndexChanged()
 {
     if (GraphSummary.GraphPanes.FirstOrDefault() is RTReplicateGraphPane ||
         RTLinearRegressionGraphPane.ShowReplicate == ReplicateDisplay.single)
     {
         GraphSummary.UpdateUI();
     }
 }
Esempio n. 8
0
        public void OnResultsIndexChanged()
        {
            var fod = GraphSummary.GraphPanes.FirstOrDefault() as IUpdateGraphPaneController;

            if (fod != null && fod.UpdateUIOnIndexChanged())
            {
                GraphSummary.UpdateUI();
            }
        }
Esempio n. 9
0
        public void OnActiveLibraryChanged()
        {
            var fod = GraphSummary.GraphPanes.FirstOrDefault() as IUpdateGraphPaneController;

            if (fod != null && fod.UpdateUIOnLibraryChanged())
            {
                GraphSummary.UpdateUI();
            }
        }
Esempio n. 10
0
        public void SetSelectedFile(string file)
        {
            var group = _replicateGroups?.FirstOrDefault(g => (g.FileInfo != null && g.FileInfo.FilePath.GetFileName() == file) || (g.FileInfo == null && file == null));

            if (group != null)
            {
                SelectedGroup = group;
                GraphSummary.UpdateUI();
            }
        }
Esempio n. 11
0
 private void DataCallback(AreaCVGraphData data)
 {
     GraphSummary.GraphControl.BeginInvoke((Action)(() => { GraphSummary.UpdateUI(); }));
 }