protected override void OnShown(EventArgs e) { base.OnShown(e); if (FoldChangeBindingSource != null) { AllowDisplayTip = true; _bindingListSource = FoldChangeBindingSource.GetBindingListSource(); _bindingListSource.ListChanged += BindingListSourceOnListChanged; _bindingListSource.AllRowsChanged += BindingListSourceAllRowsChanged; zedGraphControl.GraphPane.AxisChangeEvent += GraphPane_AxisChangeEvent; if (_skylineWindow == null) { _skylineWindow = ((SkylineDataSchema)_bindingListSource.ViewInfo.DataSchema).SkylineWindow; if (_skylineWindow != null) { _skylineWindow.SequenceTree.AfterSelect += SequenceTreeOnAfterSelect; } } UpdateGraph(Settings.Default.FilterVolcanoPlotPoints); } }
public void SetBindingSource(FoldChangeBindingSource bindingSource) { FoldChangeBindingSource = bindingSource; string groupComparisonName = bindingSource.GroupComparisonModel.GroupComparisonName ?? bindingSource.GroupComparisonModel.GroupComparisonDef.Name; SetGroupComparisonName(bindingSource.GroupComparisonModel.DocumentContainer, groupComparisonName); }
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; } }
public EditGroupComparisonDlg(FoldChangeBindingSource foldChangeBindingSource) : this(foldChangeBindingSource.GroupComparisonModel) { // ReSharper disable VirtualMemberCallInConstructor Text = string.Format(Text, foldChangeBindingSource.GroupComparisonModel.GroupComparisonName); // ReSharper restore VirtualMemberCallInConstructor panelName.Visible = false; panelButtons.Visible = false; Height -= panelName.Height + panelButtons.Height; _pushChangesToDocument = true; }
public GroupComparisonSettingsForm(FoldChangeBindingSource foldChangeBindingSource) : base(foldChangeBindingSource.GroupComparisonModel) { InitializeComponent(); Text = string.Format(Text, foldChangeBindingSource.GroupComparisonModel.GroupComparisonName); tbxConfidenceLevel.TextChanged += tbxConfidenceLevel_TextChanged; comboControlAnnotation.SelectedIndexChanged += comboControlAnnotation_SelectedIndexChanged; comboCaseValue.SelectedIndexChanged += comboCaseValue_SelectedIndexChanged; comboControlValue.SelectedIndexChanged += comboControlValue_SelectedIndexChanged; comboIdentityAnnotation.SelectedIndexChanged += comboIdentityAnnotation_SelectedIndexChanged; comboNormalizationMethod.SelectedIndexChanged += comboNormalizationMethod_SelectedIndexChanged; radioScopeProtein.CheckedChanged += radioScope_CheckedChanged; radioScopePeptide.CheckedChanged += radioScope_CheckedChanged; }
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); } } }
protected override void OnShown(EventArgs e) { base.OnShown(e); if (null != FoldChangeBindingSource) { _bindingListSource = FoldChangeBindingSource.GetBindingListSource(); _bindingListSource.ListChanged += BindingListSourceOnListChanged; if (_skylineWindow == null) { _skylineWindow = ((SkylineDataSchema)_bindingListSource.ViewInfo.DataSchema).SkylineWindow; if (_skylineWindow != null) { _skylineWindow.SequenceTree.AfterSelect += SequenceTreeOnAfterSelect; } } UpdateGraph(); } }
protected override void OnShown(EventArgs e) { base.OnShown(e); if (null == FoldChangeBindingSource) { if (null != _documentContainer) { FoldChangeBindingSource = FindOrCreateBindingSource(_documentContainer, _groupComparisonName); if (IsHandleCreated) { FoldChangeBindingSource.AddRef(); } } } _owner = Owner; if (null != _owner) { _owner.FormClosed += OwnerFormClosed; } }
private bool IsSelected(FoldChangeBindingSource.FoldChangeRow row) { if (null == _skylineWindow) { return false; } if (row.Peptide != null) { return IsPathSelected(_skylineWindow.SelectedPath, row.Peptide.IdentityPath); } return IsPathSelected(_skylineWindow.SelectedPath, row.Protein.IdentityPath); }