forked from zsh2401/AutumnBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
223 additions
and
100 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
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,37 @@ | ||
/* | ||
* ============================================================================== | ||
* | ||
* Filename: ETest | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: 2020/5/19 20:33:29 | ||
* Compiler: Visual Studio 2019 | ||
* | ||
* Author: zsh2401 | ||
* | ||
* ============================================================================== | ||
*/ | ||
using AutumnBox.OpenFramework.Extension; | ||
using AutumnBox.OpenFramework.Extension.Leaf; | ||
using AutumnBox.OpenFramework.Open.LKit; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace AutumnBox.Essentials.Extensions | ||
{ | ||
[ExtName("test")] | ||
[ExtDeveloperMode] | ||
class ETest : LeafExtensionBase | ||
{ | ||
[LMain] | ||
public void EntryPoint(ILeafUI _ui) | ||
{ | ||
using var ui = _ui; | ||
ui.Show(); | ||
throw new Exception("test_error"); | ||
} | ||
} | ||
} |
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,6 @@ | ||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:AutumnBox.GUI.Resources"> | ||
|
||
<FontFamily x:Key="AutumnBox.Font">Microsoft YaHei UI Light</FontFamily> | ||
</ResourceDictionary> |
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,28 @@ | ||
/* | ||
* ============================================================================== | ||
* | ||
* Filename: IStorageManager | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: 2020/5/19 19:56:32 | ||
* Compiler: Visual Studio 2019 | ||
* | ||
* Author: zsh2401 | ||
* | ||
* ============================================================================== | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Text; | ||
|
||
namespace AutumnBox.GUI.Services | ||
{ | ||
interface IStorageManager | ||
{ | ||
DirectoryInfo CacheDirectory { get; } | ||
DirectoryInfo StorageDirectory { get; } | ||
} | ||
} |
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,41 @@ | ||
/* | ||
* ============================================================================== | ||
* | ||
* Filename: StorageManagerImpl | ||
* Description: | ||
* | ||
* Version: 1.0 | ||
* Created: 2020/5/19 19:57:18 | ||
* Compiler: Visual Studio 2019 | ||
* | ||
* Author: zsh2401 | ||
* | ||
* ============================================================================== | ||
*/ | ||
using AutumnBox.Leafx.Container.Support; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Text; | ||
|
||
namespace AutumnBox.GUI.Services.Impl | ||
{ | ||
[Component(Type = typeof(IStorageManager))] | ||
class StorageManagerImpl : IStorageManager | ||
{ | ||
public StorageManagerImpl() | ||
{ | ||
string temp = Environment.GetEnvironmentVariable("TEMP"); | ||
CacheDirectory = new DirectoryInfo(Path.Combine(temp, "autumnbox_temp")); | ||
if (!CacheDirectory.Exists) CacheDirectory.Create(); | ||
|
||
string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); | ||
StorageDirectory = new DirectoryInfo(Path.Combine(appData, "autumnbox")); | ||
if (!StorageDirectory.Exists) StorageDirectory.Create(); | ||
} | ||
public DirectoryInfo CacheDirectory { get; } | ||
|
||
public DirectoryInfo StorageDirectory { get; } | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.