Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 12bc85d

Browse files
Done for release.
1 parent 7ae94a7 commit 12bc85d

File tree

6 files changed

+68
-17
lines changed

6 files changed

+68
-17
lines changed

APF/ArgumentParser.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void ParseArgs(bool debug)
3131
"--Silence",
3232
//"--debug",
3333
"--parse",
34-
@"C:\Users\GROOPHY\Desktop\desktop\Code\Batch\BH_2\BH\Test.BH",
34+
@"C:\Users\GROOPHY\Desktop\desktop\Code\Batch\BH_2\Src\Clock.BH",
3535
"--srcPath",
3636
@"C:\Users\GROOPHY\Desktop\desktop\Code\Batch\BH_2\Src\",
3737
//"--checkhashforfastbuild",

APF/Validate.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace BH.APF
77
{
88
internal class Validate
99
{
10-
private static CmdFunc tempcmd = new CmdFunc(Path.GetTempPath(), CF_Structes.ShellType.ChairmanandManagingDirector_CMD, false);
10+
private static CmdFunc tempcmd = new CmdFunc(Path.GetTempPath(), CF_Structes.ShellType.ChairmanandManagingDirector_CMD, true);
1111

1212
public static bool isHaveWinget()
1313
{

BH.csproj

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<ErrorReport>none</ErrorReport>
77
</PropertyGroup>
88

9+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
10+
<PlatformTarget>AnyCPU</PlatformTarget>
11+
</PropertyGroup>
12+
913
<ItemGroup>
1014
<Folder Include="ErrorHandle\Warning\" />
1115
<Folder Include="Logo" />

BH.sln

+11-11
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.2.32519.379
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BH", "BH.csproj", "{24C2D360-3AE8-4D31-B7A7-1E44EB1132DC}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BH Pad", "..\BH Pad\BH Pad.csproj", "{A27D9BFF-3C36-47AC-8786-F4E358506420}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BH.CmdFunc", "..\BH.CmdFunc\BH.CmdFunc.csproj", "{2807304A-2060-4E01-BB5A-D444ADDE97E4}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BH", "BH.csproj", "{41F34BC2-9A93-4242-A3A1-EB88E2ADFABC}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BH Pad", "..\BH Pad\BH Pad.csproj", "{A27D9BFF-3C36-47AC-8786-F4E358506420}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BH.CmdFunc", "..\BH.CmdFunc\BH.CmdFunc.csproj", "{81A61D4E-647E-49C1-892C-6B9460DB2B8C}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1414
Debug|Any CPU = Debug|Any CPU
1515
Release|Any CPU = Release|Any CPU
1616
EndGlobalSection
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18-
{24C2D360-3AE8-4D31-B7A7-1E44EB1132DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19-
{24C2D360-3AE8-4D31-B7A7-1E44EB1132DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{24C2D360-3AE8-4D31-B7A7-1E44EB1132DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
21-
{24C2D360-3AE8-4D31-B7A7-1E44EB1132DC}.Release|Any CPU.Build.0 = Release|Any CPU
22-
{2807304A-2060-4E01-BB5A-D444ADDE97E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23-
{2807304A-2060-4E01-BB5A-D444ADDE97E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
24-
{2807304A-2060-4E01-BB5A-D444ADDE97E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
25-
{2807304A-2060-4E01-BB5A-D444ADDE97E4}.Release|Any CPU.Build.0 = Release|Any CPU
2618
{A27D9BFF-3C36-47AC-8786-F4E358506420}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2719
{A27D9BFF-3C36-47AC-8786-F4E358506420}.Debug|Any CPU.Build.0 = Debug|Any CPU
2820
{A27D9BFF-3C36-47AC-8786-F4E358506420}.Release|Any CPU.ActiveCfg = Release|Any CPU
2921
{A27D9BFF-3C36-47AC-8786-F4E358506420}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{41F34BC2-9A93-4242-A3A1-EB88E2ADFABC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{41F34BC2-9A93-4242-A3A1-EB88E2ADFABC}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{41F34BC2-9A93-4242-A3A1-EB88E2ADFABC}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{41F34BC2-9A93-4242-A3A1-EB88E2ADFABC}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{81A61D4E-647E-49C1-892C-6B9460DB2B8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{81A61D4E-647E-49C1-892C-6B9460DB2B8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{81A61D4E-647E-49C1-892C-6B9460DB2B8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{81A61D4E-647E-49C1-892C-6B9460DB2B8C}.Release|Any CPU.Build.0 = Release|Any CPU
3030
EndGlobalSection
3131
GlobalSection(SolutionProperties) = preSolution
3232
HideSolutionNode = FALSE

Program.cs

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
namespace BH
1+
using System;
2+
using System.IO;
3+
using System.Linq;
4+
using System.Threading;
5+
using ANSIConsole;
6+
using BH.ANSIIConsole;
7+
8+
namespace BH
29
{
310
internal class Program
411
{
512
static async System.Threading.Tasks.Task Main()
613
{
714
System.Func<int> MainWorker = delegate()
815
{
9-
Console_.Write(APF.Helper.FixRead(System.IO.File.ReadAllText(BH.Parser.Parse.masterPagePath)+"\r\n-------------------------"));
16+
//Console_.Write(APF.Helper.FixRead(System.IO.File.ReadAllText(BH.Parser.Parse.masterPagePath)+"\r\n-------------------------"));
1017
return 0;
1118
};
12-
13-
var _Runner = await Runner.Base.Run(MainWorker,true);
19+
var _Runner = await Runner.Base.Run();
1420
}
1521
}
1622
}

Test.BH

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+

2+
//Made with BH
3+
4+
set $windowName (window):
5+
"Title": "Clock",
6+
"Width": "480",
7+
"Height": "320",
8+
"ResizeMode": "NoResize",
9+
"Loaded": "Window_Loaded"
10+
;
11+
12+
com new method -> $windowName as cs:
13+
"name": "Window_Loaded",
14+
"args": "sender, e",
15+
"code": "
16+
Icon = new BitmapImage(new Uri(\"$srcpath\\\\clean.ico\"));
17+
".
18+
;
19+
20+
com new method -> $windowName as cs:
21+
"name": "Btn_Clicked",
22+
"args": "sender, e",
23+
"code": "
24+
Detail.Content = Batch.Input(\"bat detail 17\").Stdout.ToString();
25+
".
26+
;
27+
28+
app new comp -> $windowName as (Button):
29+
"inner": "Get Info For Gecho",
30+
"Name": "Getbtn",
31+
"VerticalAlignment": "Top",
32+
"Click": "Btn_Clicked",
33+
"Margin": "62,10,62,0".
34+
;
35+
36+
app new comp -> $windowName as (Label):
37+
"Name": "Detail",
38+
"Margin": "0,30,0,0".
39+
;
40+
41+
show $windowName;

0 commit comments

Comments
 (0)