Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
teranum committed Jan 9, 2024
2 parents df3010a + 27d4a10 commit 1b38751
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/KOAStudio.Core/KOAStudio.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="*" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="*" />
<PackageReference Include="AvalonEdit" Version="*" />
<PackageReference Include="KHOpenApi.NET" Version="1.4.0" />
<PackageReference Include="KHOpenApi.NET" Version="*" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions src/KOAStudio.Core/ViewModels/KOAWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ namespace KOAStudio.Core.ViewModels
internal partial class KOAWindowViewModel : ObservableObject
{
private readonly IUIRequest _uiRequest;
private readonly string _baseTitle =
System.Windows.Application.ResourceAssembly.GetName().Name
+ (Environment.Is64BitProcess ? " - 64비트" : " - 32비트");
private readonly string _baseTitle;

public KOAWindowViewModel(IUIRequest uiRequest)
{
var assemblyName = System.Windows.Application.ResourceAssembly.GetName();
_baseTitle = $"{assemblyName.Name} v{assemblyName.Version.Major}.{assemblyName.Version.Minor} - {(Environment.Is64BitProcess ? "64비트" : "32비트")}";

_uiRequest = uiRequest;
_title = _baseTitle;

Expand Down
6 changes: 6 additions & 0 deletions src/KOAStudio.Core/Views/KOAWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
<Separator />
<MenuItem Command="{Binding MenuExitCommand}" Header="끝내기" />
</MenuItem>
<MenuItem Header="보기">
<MenuItem
Header="항상위"
IsCheckable="True"
IsChecked="{Binding ElementName=root, Path=Topmost, Mode=TwoWay}" />
</MenuItem>
<MenuItem Header="{Binding MenuCustomizeHeaderText}" ItemsSource="{Binding MenuCustomizeItems}">
<MenuItem.ItemContainerStyle>
<Style TargetType="{x:Type MenuItem}">
Expand Down
9 changes: 9 additions & 0 deletions src/KOAStudio/Business/BusinessLogic.UIRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,15 @@ public void MenuCustomizeAction(string text)
SetResultText(Properties.Resources.FID_KORNAME);
}
break;
case "KOAStudio 오픈소스":
{
var sInfo = new System.Diagnostics.ProcessStartInfo("https://github.com/teranum/KOAStudio")
{
UseShellExecute = true,
};
System.Diagnostics.Process.Start(sInfo);
}
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/KOAStudio/Business/BusinessLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private struct KEY_VALUE
"키움 Open API 서비스",
"상시모의투자 신청",
"FID 리스트",
"KOAStudio 오픈소스",
];

private enum TAB_TREE_KIND
Expand Down
4 changes: 0 additions & 4 deletions src/KOAStudio/FodyWeavers.xml

This file was deleted.

1 change: 1 addition & 0 deletions src/KOAStudio/KOAStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ApplicationIcon>app.ico</ApplicationIcon>
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<Platforms>x86;x64</Platforms>
<Version>1.1</Version>
<PreserveCompilationContext>false</PreserveCompilationContext>
<NoWarn>$(NoWarn);MA0048</NoWarn>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions src/WKOAStudio/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Reflection;
using System.Windows;

[assembly: ThemeInfo(
Expand Down
9 changes: 9 additions & 0 deletions src/WKOAStudio/Business/BusinessLogic.UIRequests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,15 @@ public void MenuCustomizeAction(string text)
SetResultText(stringBuilder.ToString());
}
break;
case "WKOAStudio 오픈소스":
{
var sInfo = new System.Diagnostics.ProcessStartInfo("https://github.com/teranum/KOAStudio")
{
UseShellExecute = true,
};
System.Diagnostics.Process.Start(sInfo);
}
break;
default:
break;
}
Expand Down
1 change: 1 addition & 0 deletions src/WKOAStudio/Business/BusinessLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private struct KEY_VALUE
"키움 Open API 서비스",
"상시모의투자 신청",
"FID 리스트",
"WKOAStudio 오픈소스",
];

private enum TAB_TREE_KIND
Expand Down
4 changes: 0 additions & 4 deletions src/WKOAStudio/FodyWeavers.xml

This file was deleted.

1 change: 1 addition & 0 deletions src/WKOAStudio/WKOAStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ApplicationIcon>app.ico</ApplicationIcon>
<BaseOutputPath>$(SolutionDir)bin\</BaseOutputPath>
<Platforms>x86;x64</Platforms>
<Version>1.1</Version>
<PreserveCompilationContext>false</PreserveCompilationContext>
<NoWarn>$(NoWarn);MA0048</NoWarn>
</PropertyGroup>
Expand Down

0 comments on commit 1b38751

Please sign in to comment.