Tranquility

This commit is contained in:
AUnicornWithNoLife 2023-02-12 23:23:10 +00:00
parent 07fce3609b
commit 87f56d55de
7 changed files with 116 additions and 1 deletions

View File

@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32901.215
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cupola", "Cupola.csproj", "{83EBE364-D0B0-4262-8AFC-539506D72116}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cupola", "Cupola\Cupola.csproj", "{83EBE364-D0B0-4262-8AFC-539506D72116}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tranquility", "Tranquility\Tranquility.csproj", "{121FE047-7E49-4B05-93E9-457E242D4D75}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -15,6 +17,10 @@ Global
{83EBE364-D0B0-4262-8AFC-539506D72116}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83EBE364-D0B0-4262-8AFC-539506D72116}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83EBE364-D0B0-4262-8AFC-539506D72116}.Release|Any CPU.Build.0 = Release|Any CPU
{121FE047-7E49-4B05-93E9-457E242D4D75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{121FE047-7E49-4B05-93E9-457E242D4D75}.Debug|Any CPU.Build.0 = Debug|Any CPU
{121FE047-7E49-4B05-93E9-457E242D4D75}.Release|Any CPU.ActiveCfg = Release|Any CPU
{121FE047-7E49-4B05-93E9-457E242D4D75}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

9
Tranquility/App.xaml Normal file
View File

@ -0,0 +1,9 @@
<Application x:Class="Tranquility.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Tranquility"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

17
Tranquility/App.xaml.cs Normal file
View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Tranquility
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

View File

@ -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)
)]

View File

@ -0,0 +1,19 @@
<Window x:Class="Tranquility.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Tranquility"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="539">
<Grid>
<Button Content="Load" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="35" Width="65" Click="LoadFilesClick"/>
<Button Content="Run" HorizontalAlignment="Left" Margin="249,10,0,0" VerticalAlignment="Top" Height="35" Width="65"/>
<Button Content="Save" HorizontalAlignment="Left" Margin="249,389,0,0" VerticalAlignment="Top" Height="35" Width="280"/>
<ProgressBar HorizontalAlignment="Left" Height="35" Margin="319,10,0,0" VerticalAlignment="Top" Width="210"/>
<TextBox HorizontalAlignment="Left" Margin="80,10,0,0" TextWrapping="Wrap" Text="INPUT FOLDER" VerticalAlignment="Top" Width="164" Height="35"/>
<TextBox HorizontalAlignment="Left" Margin="10,50,0,0" TextWrapping="Wrap" Text="INPUT FILES" VerticalAlignment="Top" Width="234" Height="374"/>
<Image HorizontalAlignment="Left" Height="332" Margin="249,50,0,0" VerticalAlignment="Top" Width="281"/>
</Grid>
</Window>

View File

@ -0,0 +1,34 @@
using System.Windows;
using Microsoft.WindowsAPICodePack.Dialogs;
using WinRT;
namespace Tranquility
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void LoadFilesClick(object sender, RoutedEventArgs e)
{
string file = OpenFolder();
}
private static string? OpenFolder()
{
CommonOpenFileDialog dialog = new CommonOpenFileDialog();
dialog.IsFolderPicker = true;
CommonFileDialogResult result = dialog.ShowDialog();
if (result == CommonFileDialogResult.Ok)
return dialog.FileName;
return null;
}
}
}

View File

@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows10.0.17763.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WindowsAPICodePack-Core" Version="1.1.2" />
<PackageReference Include="WindowsAPICodePack-Shell" Version="1.1.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cupola\Cupola.csproj" />
</ItemGroup>
</Project>