summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <alee14498@gmail.com>2019-08-22 18:02:25 -0400
committerAlee14 <alee14498@gmail.com>2019-08-22 18:02:25 -0400
commit4c1d168f689134acb97765dd99801b06904be8ae (patch)
tree9c239b414fb20d209b1dd6778b98c82ad7085c71
downloadHTPC-Launcher-4c1d168f689134acb97765dd99801b06904be8ae.tar.gz
HTPC-Launcher-4c1d168f689134acb97765dd99801b06904be8ae.tar.bz2
HTPC-Launcher-4c1d168f689134acb97765dd99801b06904be8ae.zip
Inital commitHEADmaster
-rw-r--r--.gitignore2
-rw-r--r--.vs/HTPC Launcher/DesignTimeBuild/.dtbcachebin0 -> 294628 bytes
-rw-r--r--.vs/HTPC Launcher/v16/.suobin0 -> 30720 bytes
-rw-r--r--.vs/HTPC Launcher/v16/Server/sqlite3/db.lock0
-rw-r--r--.vs/HTPC Launcher/v16/Server/sqlite3/storage.idebin0 -> 1150976 bytes
-rw-r--r--.vs/VSWorkspaceState.json7
-rw-r--r--.vs/slnx.sqlitebin0 -> 299008 bytes
-rw-r--r--.vscode/launch.json27
-rw-r--r--.vscode/tasks.json42
-rw-r--r--App.xaml9
-rw-r--r--App.xaml.cs17
-rw-r--r--HTPC Launcher.csproj10
-rw-r--r--HTPC Launcher.sln25
-rw-r--r--MainWindow.xaml15
-rw-r--r--MainWindow.xaml.cs38
15 files changed, 192 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d86ba9f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+obj/
+bin/ \ No newline at end of file
diff --git a/.vs/HTPC Launcher/DesignTimeBuild/.dtbcache b/.vs/HTPC Launcher/DesignTimeBuild/.dtbcache
new file mode 100644
index 0000000..bd9882e
--- /dev/null
+++ b/.vs/HTPC Launcher/DesignTimeBuild/.dtbcache
Binary files differ
diff --git a/.vs/HTPC Launcher/v16/.suo b/.vs/HTPC Launcher/v16/.suo
new file mode 100644
index 0000000..06a5be3
--- /dev/null
+++ b/.vs/HTPC Launcher/v16/.suo
Binary files differ
diff --git a/.vs/HTPC Launcher/v16/Server/sqlite3/db.lock b/.vs/HTPC Launcher/v16/Server/sqlite3/db.lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.vs/HTPC Launcher/v16/Server/sqlite3/db.lock
diff --git a/.vs/HTPC Launcher/v16/Server/sqlite3/storage.ide b/.vs/HTPC Launcher/v16/Server/sqlite3/storage.ide
new file mode 100644
index 0000000..4055610
--- /dev/null
+++ b/.vs/HTPC Launcher/v16/Server/sqlite3/storage.ide
Binary files differ
diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json
new file mode 100644
index 0000000..09a8940
--- /dev/null
+++ b/.vs/VSWorkspaceState.json
@@ -0,0 +1,7 @@
+{
+ "ExpandedNodes": [
+ ""
+ ],
+ "SelectedNode": "\\MainWindow.xaml",
+ "PreviewInSolutionExplorer": false
+} \ No newline at end of file
diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite
new file mode 100644
index 0000000..a321ce2
--- /dev/null
+++ b/.vs/slnx.sqlite
Binary files differ
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..3b20684
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,27 @@
+{
+ // Use IntelliSense to find out which attributes exist for C# debugging
+ // Use hover for the description of the existing attributes
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": ".NET Core Launch (console)",
+ "type": "coreclr",
+ "request": "launch",
+ "preLaunchTask": "build",
+ // If you have changed target frameworks, make sure to update the program path.
+ "program": "${workspaceFolder}/bin/Debug/netcoreapp3.0/HTPC Launcher.dll",
+ "args": [],
+ "cwd": "${workspaceFolder}",
+ // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
+ "console": "internalConsole",
+ "stopAtEntry": false
+ },
+ {
+ "name": ".NET Core Attach",
+ "type": "coreclr",
+ "request": "attach",
+ "processId": "${command:pickProcess}"
+ }
+ ]
+} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..5b8796b
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,42 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "build",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "build",
+ "${workspaceFolder}/HTPC Launcher.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "publish",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "publish",
+ "${workspaceFolder}/HTPC Launcher.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ },
+ {
+ "label": "watch",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "watch",
+ "run",
+ "${workspaceFolder}/HTPC Launcher.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
+ }
+ ]
+} \ No newline at end of file
diff --git a/App.xaml b/App.xaml
new file mode 100644
index 0000000..49d2bd9
--- /dev/null
+++ b/App.xaml
@@ -0,0 +1,9 @@
+<Application x:Class="HTPC_Launcher.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="clr-namespace:HTPC_Launcher"
+ StartupUri="MainWindow.xaml">
+ <Application.Resources>
+
+ </Application.Resources>
+</Application>
diff --git a/App.xaml.cs b/App.xaml.cs
new file mode 100644
index 0000000..77cec7e
--- /dev/null
+++ b/App.xaml.cs
@@ -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 HTPC_Launcher
+{
+ /// <summary>
+ /// Interaction logic for App.xaml
+ /// </summary>
+ public partial class App : Application
+ {
+ }
+}
diff --git a/HTPC Launcher.csproj b/HTPC Launcher.csproj
new file mode 100644
index 0000000..dd7808b
--- /dev/null
+++ b/HTPC Launcher.csproj
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
+
+ <PropertyGroup>
+ <OutputType>WinExe</OutputType>
+ <TargetFramework>netcoreapp3.0</TargetFramework>
+ <RootNamespace>HTPC_Launcher</RootNamespace>
+ <UseWPF>true</UseWPF>
+ </PropertyGroup>
+
+</Project> \ No newline at end of file
diff --git a/HTPC Launcher.sln b/HTPC Launcher.sln
new file mode 100644
index 0000000..29cba39
--- /dev/null
+++ b/HTPC Launcher.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29102.190
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HTPC Launcher", "HTPC Launcher.csproj", "{34F7A0BA-3964-45DA-9C68-48EC04D4120B}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {34F7A0BA-3964-45DA-9C68-48EC04D4120B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {34F7A0BA-3964-45DA-9C68-48EC04D4120B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {34F7A0BA-3964-45DA-9C68-48EC04D4120B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {34F7A0BA-3964-45DA-9C68-48EC04D4120B}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {58EB3C11-9FBA-4B86-8F7C-5F4F1E2559C8}
+ EndGlobalSection
+EndGlobal
diff --git a/MainWindow.xaml b/MainWindow.xaml
new file mode 100644
index 0000000..b025276
--- /dev/null
+++ b/MainWindow.xaml
@@ -0,0 +1,15 @@
+<Window x:Class="HTPC_Launcher.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:HTPC_Launcher"
+ mc:Ignorable="d"
+ Title="MainWindow" Height="450" Width="800">
+ <Grid>
+ <Label Content="Welcome to HTPC Launcher!" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,24,0,0" FontSize="18"/>
+ <Button x:Name="btnLaunch" Content="Launch Kodi" HorizontalAlignment="Center" Margin="0,134,0,0" VerticalAlignment="Top" Height="45" Width="102" Click="BtnLaunch_Click"/>
+ <Button x:Name="btnExit" Content="Exit" HorizontalAlignment="Center" Margin="0,217,0,0" VerticalAlignment="Top" Height="47" Width="102" Click="BtnExit_Click"/>
+
+ </Grid>
+</Window>
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
new file mode 100644
index 0000000..04ea2a8
--- /dev/null
+++ b/MainWindow.xaml.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace HTPC_Launcher
+{
+ /// <summary>
+ /// Interaction logic for MainWindow.xaml
+ /// </summary>
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private void BtnLaunch_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Hello World");
+ }
+
+ private void BtnExit_Click(object sender, RoutedEventArgs e)
+ {
+ Environment.Exit(0);
+ }
+ }
+}