Skip to content

Commit

Permalink
Panels update
Browse files Browse the repository at this point in the history
  • Loading branch information
dalefugier committed Aug 2, 2018
1 parent 3874d4f commit d1a0e8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ namespace SampleCsWinForms.Commands
[System.Runtime.InteropServices.Guid("3d3db472-509d-41c5-97e3-2890c5fb9827")]
public class SampleCsPanelCommand : Command
{
/// <returns>
/// The command name as it appears on the Rhino command line.
/// </returns>
public override string EnglishName
{
get { return "SampleCsPanel"; }
}
public override string EnglishName => "SampleCsPanel";

protected override Result RunCommand(Rhino.RhinoDoc doc, RunMode mode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ void OnUserControlDisposed(object sender, EventArgs e)
/// <summary>
/// Returns the ID of this panel.
/// </summary>
public static Guid PanelId
{
get
{
return typeof(SampleCsPanelUserControl).GUID;
}
}
public static Guid PanelId => typeof(SampleCsPanelUserControl).GUID;
}
}
4 changes: 2 additions & 2 deletions rhinocommon/cs/SampleCsWinForms/SampleCsWinFormsPlugIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public SampleCsWinFormsPlugIn()
/// </summary>
protected override LoadReturnCode OnLoad(ref string errorMessage)
{
var panel_type = typeof(SampleCsPanelUserControl);
Panels.RegisterPanel(this, panel_type, "Sample", SampleCsWinForms.Properties.Resources.Panel);
var type = typeof(SampleCsPanelUserControl);
Panels.RegisterPanel(this, type, "SampleWinForms", SampleCsWinForms.Properties.Resources.Panel, PanelType.System);
return LoadReturnCode.Success;
}

Expand Down

0 comments on commit d1a0e8c

Please sign in to comment.