forked from KSP-CKAN/CKAN
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Something that it's not relevant, as it appears.
- Loading branch information
Showing
4 changed files
with
157 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{4FA5A288-1836-4182-B025-6407455AED63}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>CKANThisDoesNotExists</RootNamespace> | ||
<AssemblyName>CKANPluginThisDoesNotExists</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Drawing" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Startup.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Core\CKAN-core.csproj"> | ||
<Project>{3B9AEA22-FA3B-4E43-9283-EABDD81CF271}</Project> | ||
<Name>CKAN-core</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\..\GUI\CKAN-GUI.csproj"> | ||
<Project>{A79F9D54-315C-472B-928F-713A5860B2BE}</Project> | ||
<Name>CKAN-GUI</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
// Information about this assembly is defined by the following attributes. | ||
// Change them to the values specific to your project. | ||
|
||
[assembly: AssemblyTitle("CKAN-ThisDoesNotExists")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("${AuthorCopyright}")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". | ||
// The form "{Major}.{Minor}.*" will automatically update the build and revision, | ||
// and "{Major}.{Minor}.{Build}.*" will update just the revision. | ||
|
||
[assembly: AssemblyVersion("1.0.*")] | ||
|
||
// The following attributes are used to specify the signing key for the assembly, | ||
// if desired. See the Mono documentation for more information about signing. | ||
|
||
//[assembly: AssemblyDelaySign(false)] | ||
//[assembly: AssemblyKeyFile("")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
This file is part of KSP CKAN and its ©2021 LisiasT | ||
THIE FILE is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
*/ | ||
using System; | ||
using System.Windows.Forms; | ||
using CKAN; | ||
|
||
namespace CKANPluginThisDoesNotExists | ||
{ | ||
public class CKANPluginThisDoesNotExists : IGUIPlugin | ||
{ | ||
private static readonly CKAN.Versioning.ModuleVersion VERSION = new CKAN.Versioning.ModuleVersion("0"); | ||
public override void Deinitialize () | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override string GetName () | ||
{ | ||
return "I don't exist. Move on."; | ||
} | ||
|
||
public override CKAN.Versioning.ModuleVersion GetVersion () | ||
{ | ||
return VERSION; | ||
} | ||
|
||
public override void Initialize () | ||
{ | ||
MessageBox.Show("Hi, Mom!"); | ||
try { | ||
MenuStrip menuStrip = new MenuStrip(); | ||
menuStrip.Dock = DockStyle.Top; | ||
Main.Instance.Controls.Add(menuStrip); | ||
MenuStrip menu = new MenuStrip(); | ||
menuStrip.Items.Add("This thingy does not exists!", null, Installed); | ||
} catch (Exception e) { | ||
MessageBox.Show(e.Message); | ||
} | ||
} | ||
|
||
private void Installed (object sender, EventArgs e) | ||
{ | ||
DialogResult res = MessageBox.Show("This Plugin does not exists and should not be pursued.", "Confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); | ||
if (res != DialogResult.OK) { | ||
MessageBox.Show("My man, you can't cancel something that does not exists!"); | ||
} | ||
} | ||
} | ||
} |