Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.0 #1

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="BoxNestGroup.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="BoxNestGroup.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<BoxNestGroup.Settings>
<setting name="ClientID" serializeAs="String">
<value>Please Input</value>
</setting>
<setting name="SecretID" serializeAs="String">
<value>Please Input</value>
</setting>
<setting name="AccessToken" serializeAs="String">
<value>N/A</value>
</setting>
<setting name="PortNumber" serializeAs="String">
<value>54321</value>
</setting>
<setting name="RefreshToken" serializeAs="String">
<value>N/A</value>
</setting>
<setting name="ShowGroupId" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowGroupNestMax" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowGroupFolderCount" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowGroupUserCount" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserId" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserGroupNow" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserGroupAll" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserUsed" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserColabo" serializeAs="String">
<value>True</value>
</setting>
<setting name="ShowUserLogin" serializeAs="String">
<value>True</value>
</setting>
</BoxNestGroup.Settings>
</userSettings>
<applicationSettings>
<BoxNestGroup.Settings>
<setting name="CommonGroupFolder" serializeAs="String">
<value>GroupFolder</value>
</setting>
<setting name="CommonGroupSetting" serializeAs="String">
<value>SettingFolder</value>
</setting>
<setting name="RedirectUrl" serializeAs="String">
<value>http://localhost:{0}/callback</value>
</setting>
<setting name="ListenUrl" serializeAs="String">
<value>http://localhost:{0}/</value>
</setting>
<setting name="ClearGroupName" serializeAs="String">
<value>【グループなしに設定】</value>
</setting>
</BoxNestGroup.Settings>
</applicationSettings>
</configuration>
13 changes: 13 additions & 0 deletions App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Application x:Class="BoxNestGroup.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BoxNestGroup"
>
<Application.Resources>
<ResourceDictionary >
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/StringResource.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
73 changes: 73 additions & 0 deletions App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
using System.IO;
using System.Windows;
using System.Diagnostics;
using BoxNestGroup.Managers;

namespace BoxNestGroup
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : System.Windows.Application
{
/// <summary>
/// コンストラクタ
/// </summary>
public App():base()
{
// ログ作成
LogFile.Instance.Create();

// 基本フォルダ
var currentFolder = Directory.GetCurrentDirectory();
Debug.WriteLine("■currentFolder:" + currentFolder.ToString());

var commonGroupFolder = currentFolder + @"\" + Settings.Default.CommonGroupFolder;

// 基本フォルダがない場合は作成
if (Directory.Exists(commonGroupFolder) == false)
{
Directory.CreateDirectory(commonGroupFolder);
Debug.WriteLine("■commonGroupFolder" + commonGroupFolder.ToString());
}

var commonGroupSetting = currentFolder + @"\" + Settings.Default.CommonGroupSetting;

// 基本フォルダがない場合は作成
if (Directory.Exists(commonGroupSetting) == false)
{
Directory.CreateDirectory(commonGroupSetting);
Debug.WriteLine("■commonGroupFolder" + commonGroupSetting.ToString());
}


SettingManager.Instance.Create();
}
/// <summary>
/// 初期化
/// </summary>
/// <param name="e"></param>
protected override void OnStartup(StartupEventArgs e)
{
// シングルトン化のため変更
/* App.xaml
<Application x:Class="BoxNestGroup.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BoxNestGroup"
StartupUri="MainWindow.xaml"
>
↓ に変更してsingleton化
<Application x:Class="BoxNestGroup.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BoxNestGroup"
>
*/

base.OnStartup(e);
BoxNestGroup.MainWindow.Instance.Show();
}
}

}
10 changes: 10 additions & 0 deletions AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
98 changes: 98 additions & 0 deletions BoxNestGroup.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Globals">
<WebView2UseWinRT>False</WebView2UseWinRT>
<WebView2EnableCsWinRTProjection>False</WebView2EnableCsWinRTProjection>
</PropertyGroup>

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<UseWindowsForms>True</UseWindowsForms>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PlatformTarget>AnyCPU</PlatformTarget>
<ApplicationIcon>icon.ico</ApplicationIcon>
<UserSecretsId>30228c13-abea-4d14-a6d9-eb8189a796da</UserSecretsId>
<StartupObject>BoxNestGroup.App</StartupObject>
<NeutralLanguage>ja-JP</NeutralLanguage>
<AssemblyVersion>0.3.0</AssemblyVersion>
<FileVersion>0.3.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GenerateAssemblyInfo>True</GenerateAssemblyInfo>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Resources\**" />
<EmbeddedResource Remove="Resources\**" />
<None Remove="Resources\**" />
<Page Remove="Resources\**" />
</ItemGroup>

<ItemGroup>
<Compile Remove="Views\ListBoxMembership.cs" />
</ItemGroup>

<ItemGroup>
<Content Include="icon.ico" />
</ItemGroup>

<ItemGroup>
<Resource Include="StringResource.xaml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Generator>MSBuild:Compile</Generator>
</Resource>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Box.V2.Core" Version="5.8.0" />
<PackageReference Include="ClosedXML" Version="0.104.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2903.40" />
</ItemGroup>

<ItemGroup>
<Compile Update="Resource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
<Compile Update="Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Resource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<None Update="html\login.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="LICENSE">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Update="Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
69 changes: 69 additions & 0 deletions BoxNestGroup.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<ApplicationDefinition Update="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<Compile Update="Contorls\GroupGridViewControl.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Contorls\MembershipGroupNameMailControl.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Contorls\UserGridViewControl.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\AboutWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\BoxOauthWebWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\SelectGroupWindows.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\SettingsWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\WaitWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resource.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Page Update="Contorls\GroupGridViewControl.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Contorls\MembershipGroupNameMailControl.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Contorls\UserGridViewControl.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\AboutWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\BoxOauthWebWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\MainWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\SelectGroupWindows.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\SettingsWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\WaitWindow.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
25 changes: 25 additions & 0 deletions BoxNestGroup.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BoxNestGroup", "BoxNestGroup.csproj", "{0D1C6E60-6F10-4135-B320-AFB6CA6E2A88}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0D1C6E60-6F10-4135-B320-AFB6CA6E2A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D1C6E60-6F10-4135-B320-AFB6CA6E2A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D1C6E60-6F10-4135-B320-AFB6CA6E2A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D1C6E60-6F10-4135-B320-AFB6CA6E2A88}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {44AAF72A-512E-486D-8CFF-2D41135533F2}
EndGlobalSection
EndGlobal
Loading