This commit is contained in:
13
PluginManager/BlankWindow1.xaml
Normal file
13
PluginManager/BlankWindow1.xaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<Window
|
||||||
|
x:Class="PluginManager.BlankWindow1"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="using:PluginManager"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
@@ -37,7 +37,7 @@ namespace PluginManager.Items
|
|||||||
case 3: Console.Write("|"); break;
|
case 3: Console.Write("|"); break;
|
||||||
}
|
}
|
||||||
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
|
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
|
||||||
await Task.Delay(500);
|
await Task.Delay(250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ namespace PluginManager.Items
|
|||||||
public void Stop()
|
public void Stop()
|
||||||
{
|
{
|
||||||
if (!isSpinning)
|
if (!isSpinning)
|
||||||
throw new Others.Exceptions.APIException("The spinner was not running", "Stop()");
|
throw new Others.Exceptions.APIException("Spinner was not spinning", GetType());
|
||||||
isSpinning = false;
|
isSpinning = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace PluginManager.LanguageSystem
|
|||||||
if (!LanguageFileLocation.EndsWith(LanguageFileExtension))
|
if (!LanguageFileLocation.EndsWith(LanguageFileExtension))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to load language from file: " + LanguageFileLocation +
|
Console.WriteLine("Failed to load language from file: " + LanguageFileLocation +
|
||||||
"\nFile extension is not .lng");
|
"\nFile extension is not " + LanguageFileExtension);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,17 @@ namespace PluginManager.Others.Exceptions
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The APIException constructor
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="message">The error message</param>
|
||||||
|
/// <param name="errorLocation">The class where the error was thrown</param>
|
||||||
|
public APIException(string message, Type errorLocation) : base(message)
|
||||||
|
{
|
||||||
|
Function = errorLocation.FullName;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Method to print the error to <see cref="Console"/>
|
/// Method to print the error to <see cref="Console"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -11,8 +11,18 @@
|
|||||||
<DebugSymbols>false</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="BlankWindow1.xaml" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Discord.Net" Version="3.6.1" />
|
<PackageReference Include="Discord.Net" Version="3.6.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Include="BlankWindow1.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user