Skip to content

Commit

Permalink
exporting paths done
Browse files Browse the repository at this point in the history
  • Loading branch information
spektor56 committed Jun 22, 2019
1 parent 6443c11 commit 3286345
Show file tree
Hide file tree
Showing 6 changed files with 210 additions and 140 deletions.
17 changes: 17 additions & 0 deletions PegasusExportPlugin/Extensions/String.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PegasusExportPlugin.Extensions
{
public static class String
{
public static bool EndsWith(this string stringValue, char value)
{
int length = stringValue.Length;
return length != 0 && (int)stringValue[length - 1] == (int)value;
}
}
}
8 changes: 5 additions & 3 deletions PegasusExportPlugin/PegasusExportPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\..\LaunchBox\Plugins\</OutputPath>
<OutputPath>..\..\..\..\LaunchBox\Plugins\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -45,17 +45,18 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Unbroken">
<HintPath>..\..\..\..\..\LaunchBox\Metadata\Unbroken.dll</HintPath>
<HintPath>..\..\..\..\LaunchBox\Metadata\Unbroken.dll</HintPath>
</Reference>
<Reference Include="Unbroken.LaunchBox.Plugins">
<HintPath>..\..\..\..\..\LaunchBox\Metadata\Unbroken.LaunchBox.Plugins.dll</HintPath>
<HintPath>..\..\..\..\LaunchBox\Metadata\Unbroken.LaunchBox.Plugins.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Controls\DataGridViewCheckBoxColumnHeaderCell.cs" />
<Compile Include="Controls\DataGridViewCheckBoxColumnHeaderCellEventArgs.cs" />
<Compile Include="Controls\DataGridViewHeaderCheckBoxColumn.cs" />
<Compile Include="Controls\HeaderCheckBoxBehaviour.cs" />
<Compile Include="Extensions\String.cs" />
<Compile Include="frmPegasusExport.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -70,6 +71,7 @@
</Compile>
<Compile Include="Launchbox\ImageDetail.cs" />
<Compile Include="Launchbox\PlatformSetting.cs" />
<Compile Include="ProgramEntry.cs" />
<Compile Include="Pegasus\PegasusAssetType.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
4 changes: 0 additions & 4 deletions PegasusExportPlugin/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PegasusExportPlugin
Expand Down
28 changes: 28 additions & 0 deletions PegasusExportPlugin/ProgramEntry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using PegasusExportPlugin.Properties;
using System.Drawing;
using Unbroken.LaunchBox.Plugins;

namespace PegasusExportPlugin
{
class ProgramEntry : ISystemMenuItemPlugin
{
public string Caption => "Pegasus Export";

public Image IconImage => Resources.favicon96;

public bool ShowInLaunchBox => true;

public bool ShowInBigBox => false;

public bool AllowInBigBoxWhenLocked => false;

public void OnSelected()
{
using(var frmPegasusExport = new frmPegasusExport())
{
frmPegasusExport.ShowDialog();
}
}

}
}
170 changes: 88 additions & 82 deletions PegasusExportPlugin/frmPegasusExport.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3286345

Please sign in to comment.