public DocumentGridForm(IDocumentContainer documentContainer)
            : this(new DocumentGridViewContext(new SkylineDataSchema(documentContainer, SkylineDataSchema.GetLocalizedSchemaLocalizer())))
        {
            var skylineWindow = documentContainer as SkylineWindow;

            if (null != skylineWindow)
            {
                DataGridViewPasteHandler.Attach(skylineWindow, DataGridView);
            }
        }
 public DataboundGridControl()
 {
     InitializeComponent();
     _dataGridViewPasteHandler         = DataGridViewPasteHandler.Attach(DataGridView);
     NavBar.ClusterSplitButton.Visible = true;
     NavBar.ClusterSplitButton.DropDownItems.Add(new ToolStripMenuItem(Resources.DataboundGridControl_DataboundGridControl_Show_Heat_Map, null,
                                                                       heatMapContextMenuItem_Click));
     NavBar.ClusterSplitButton.DropDownItems.Add(new ToolStripMenuItem(Resources.DataboundGridControl_DataboundGridControl_Show_PCA_Plot, null,
                                                                       pCAToolStripMenuItem_Click));
 }
Exemple #3
0
 protected override void OnShown(EventArgs e)
 {
     base.OnShown(e);
     if (null != FoldChangeBindingSource)
     {
         databoundGridControl.BindingListSource = FoldChangeBindingSource.GetBindingListSource();
         toolStripButtonChangeSettings.Visible  =
             !string.IsNullOrEmpty(FoldChangeBindingSource.GroupComparisonModel.GroupComparisonName);
         FoldChangeBindingSource.ViewContext.BoundDataGridView = DataboundGridControl.DataGridView;
         var skylineWindow = FoldChangeBindingSource.GroupComparisonModel.DocumentContainer as SkylineWindow;
         if (null != skylineWindow)
         {
             DataGridViewPasteHandler.Attach(skylineWindow, DataboundGridControl.DataGridView);
         }
     }
 }
Exemple #4
0
        public LiveResultsGrid(SkylineWindow skylineWindow)
        {
            InitializeComponent();
            SkylineWindow = skylineWindow;
            _dataSchema   = new SkylineDataSchema(skylineWindow, SkylineDataSchema.GetLocalizedSchemaLocalizer());
            DataGridViewPasteHandler.Attach(skylineWindow, DataGridView);
            BindingListSource.ListChanged    += bindingListSource_ListChanged;
            BindingListSource.CurrentChanged += bindingListSource_CurrentChanged;
            DataGridView.DataBindingComplete += boundDataGridView_DataBindingComplete;
            var contextMenuStrip = databoundGridControl.contextMenuStrip;

            contextMenuStrip.Items.Insert(0, new ToolStripSeparator());
            for (int i = contextMenuResultsGrid.Items.Count - 1; i >= 0; i--)
            {
                contextMenuStrip.Items.Insert(0, contextMenuResultsGrid.Items[i]);
            }
            contextMenuStrip.Opening += contextMenu_Opening;
        }
Exemple #5
0
 public DataboundGridControl()
 {
     InitializeComponent();
     _dataGridViewPasteHandler = DataGridViewPasteHandler.Attach(DataGridView);
 }