Skip to content

Commit

Permalink
Something that it's not relevant, as it appears.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisias committed May 14, 2021
1 parent 5a2cd8e commit 55d7b47
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 5 deletions.
33 changes: 28 additions & 5 deletions CKAN.sln
Expand Up @@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CKAN-netkan", "Netkan\CKAN-
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{4F41255E-8BC1-465B-82D5-1C5665BC099A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CKAN-ThisDoesNotExists", "Plugins\ThisDoesNotExists\CKAN-ThisDoesNotExists.csproj", "{4FA5A288-1836-4182-B025-6407455AED63}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug_NetCore|Any CPU = Debug_NetCore|Any CPU
Expand Down Expand Up @@ -71,16 +73,24 @@ Global
{4F41255E-8BC1-465B-82D5-1C5665BC099A}.Release_NetCore|Any CPU.Build.0 = Release_NetCore|Any CPU
{4F41255E-8BC1-465B-82D5-1C5665BC099A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F41255E-8BC1-465B-82D5-1C5665BC099A}.Release|Any CPU.Build.0 = Release|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Debug_NetCore|Any CPU.ActiveCfg = Debug|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Debug_NetCore|Any CPU.Build.0 = Debug|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Release_NetCore|Any CPU.ActiveCfg = Release|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Release_NetCore|Any CPU.Build.0 = Release|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4FA5A288-1836-4182-B025-6407455AED63}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.TextStylePolicy = $1
$1.inheritsSet = VisualStudio
$1.inheritsScope = text/plain
$1.scope = text/x-csharp
$1.FileWidth = 80
$1.TabsToSpaces = True
$0.CSharpFormattingPolicy = $2
$2.IndentSwitchBody = True
$2.IndentBlocksInsideExpressions = True
Expand All @@ -106,9 +116,22 @@ Global
$2.BeforeDelegateDeclarationParentheses = False
$2.NewParentheses = False
$2.SpacesBeforeBrackets = False
$2.inheritsSet = Mono
$2.inheritsScope = text/x-csharp
$2.scope = text/x-csharp
$2.SpaceAfterMethodCallName = False
$2.IndentSwitchSection = False
$2.NewLinesForBracesInProperties = False
$2.NewLinesForBracesInAccessors = False
$2.NewLinesForBracesInAnonymousMethods = False
$2.NewLinesForBracesInControlBlocks = False
$2.NewLinesForBracesInAnonymousTypes = False
$2.NewLinesForBracesInObjectCollectionArrayInitializers = False
$2.NewLinesForBracesInLambdaExpressionBody = False
$2.NewLineForElse = False
$2.NewLineForCatch = False
$2.NewLineForFinally = False
$2.NewLineForMembersInObjectInit = False
$2.NewLineForMembersInAnonymousTypes = False
$2.NewLineForClausesInQuery = False
$2.SpacingAfterMethodDeclarationName = True
$2.SpaceBeforeOpenSquareBracket = True
EndGlobalSection
EndGlobal
49 changes: 49 additions & 0 deletions Plugins/ThisDoesNotExists/CKAN-ThisDoesNotExists.csproj
@@ -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>
26 changes: 26 additions & 0 deletions Plugins/ThisDoesNotExists/Properties/AssemblyInfo.cs
@@ -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("")]
54 changes: 54 additions & 0 deletions Plugins/ThisDoesNotExists/Startup.cs
@@ -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!");
}
}
}
}

0 comments on commit 55d7b47

Please sign in to comment.