Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent properties like "SelectedResultsIndex" from showing up in the property sheet in "ViewMenu" form. #3322

Merged
merged 6 commits into from
Jan 9, 2025
14 changes: 14 additions & 0 deletions pwiz_tools/Skyline/Menus/SkylineControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@ private void InitializeComponent()
modeUIHandler = new Helpers.ModeUIExtender(_components);
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public SkylineWindow SkylineWindow { get; private set; }
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public SrmDocument DocumentUI
{
get { return SkylineWindow?.DocumentUI; }
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public SrmDocument Document
{
get { return SkylineWindow?.Document; }
Expand All @@ -71,22 +77,30 @@ public void ModifyDocument(string description, Func<SrmDocument, SrmDocument> ac
SkylineWindow.ModifyDocument(description, null, act, null, null, logFunc);
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public IdentityPath SelectedPath
{
get { return SkylineWindow?.SelectedPath; }
set { SkylineWindow.SelectedPath = value; }
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public SequenceTree SequenceTree
{
get { return SkylineWindow.SequenceTree; }
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public TreeNodeMS SelectedNode
{
get { return SkylineWindow.SelectedNode; }
}

[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int SelectedResultsIndex
{
get
Expand Down