From 3004d53f4a7f4568145d22b05573dd630f7e4011 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Fri, 21 Dec 2018 04:00:56 +0100 Subject: [PATCH 1/1] initial commit Change-Id: I1133bd665f0a5458950597cf2d5e097838b7f821 --- .gitattributes | 63 ++++++ .gitignore | 196 +++++++++++++++++++ ROM0Split.sln | 25 +++ ROM0Split/App.config | 6 + ROM0Split/App.xaml | 12 ++ ROM0Split/App.xaml.cs | 17 ++ ROM0Split/Implementations/DelegateCommand.cs | 27 +++ ROM0Split/Implementations/SuperViewModel.cs | 29 +++ ROM0Split/MainWindow.xaml | 29 +++ ROM0Split/MainWindow.xaml.cs | 28 +++ ROM0Split/Model/MainWindowModel.cs | 142 ++++++++++++++ ROM0Split/Properties/AssemblyInfo.cs | 55 ++++++ ROM0Split/Properties/Resources.Designer.cs | 71 +++++++ ROM0Split/Properties/Resources.resx | 117 +++++++++++ ROM0Split/Properties/Settings.Designer.cs | 30 +++ ROM0Split/Properties/Settings.settings | 7 + ROM0Split/ROM0Split.csproj | 105 ++++++++++ ROM0Split/packages.config | 4 + appveyor.yml | 10 + 19 files changed, 973 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ROM0Split.sln create mode 100644 ROM0Split/App.config create mode 100644 ROM0Split/App.xaml create mode 100644 ROM0Split/App.xaml.cs create mode 100644 ROM0Split/Implementations/DelegateCommand.cs create mode 100644 ROM0Split/Implementations/SuperViewModel.cs create mode 100644 ROM0Split/MainWindow.xaml create mode 100644 ROM0Split/MainWindow.xaml.cs create mode 100644 ROM0Split/Model/MainWindowModel.cs create mode 100644 ROM0Split/Properties/AssemblyInfo.cs create mode 100644 ROM0Split/Properties/Resources.Designer.cs create mode 100644 ROM0Split/Properties/Resources.resx create mode 100644 ROM0Split/Properties/Settings.Designer.cs create mode 100644 ROM0Split/Properties/Settings.settings create mode 100644 ROM0Split/ROM0Split.csproj create mode 100644 ROM0Split/packages.config create mode 100644 appveyor.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57a1574 --- /dev/null +++ b/.gitignore @@ -0,0 +1,196 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Visual Studo 2015 cache/options directory +.vs/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding addin-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +*.[Cc]ache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt diff --git a/ROM0Split.sln b/ROM0Split.sln new file mode 100644 index 0000000..a525d1b --- /dev/null +++ b/ROM0Split.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.168 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ROM0Split", "ROM0Split\ROM0Split.csproj", "{FD05E2F7-0485-4B7C-ACC1-C40CE664E2E4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FD05E2F7-0485-4B7C-ACC1-C40CE664E2E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD05E2F7-0485-4B7C-ACC1-C40CE664E2E4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD05E2F7-0485-4B7C-ACC1-C40CE664E2E4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD05E2F7-0485-4B7C-ACC1-C40CE664E2E4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1223DEB9-6FD5-4BE5-8421-C45947DF4008} + EndGlobalSection +EndGlobal diff --git a/ROM0Split/App.config b/ROM0Split/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/ROM0Split/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ROM0Split/App.xaml b/ROM0Split/App.xaml new file mode 100644 index 0000000..4eddc31 --- /dev/null +++ b/ROM0Split/App.xaml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/ROM0Split/App.xaml.cs b/ROM0Split/App.xaml.cs new file mode 100644 index 0000000..a894a2b --- /dev/null +++ b/ROM0Split/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 ROM0Split +{ + /// + /// Interaktionslogik für "App.xaml" + /// + public partial class App : Application + { + } +} diff --git a/ROM0Split/Implementations/DelegateCommand.cs b/ROM0Split/Implementations/DelegateCommand.cs new file mode 100644 index 0000000..80614a7 --- /dev/null +++ b/ROM0Split/Implementations/DelegateCommand.cs @@ -0,0 +1,27 @@ +using System; +using System.Windows.Input; + +namespace ROM0Split.Implementations +{ + public class DelegateCommand : ICommand + { + private Action _executeMethod; + + public DelegateCommand(Action executeMethod) + { + _executeMethod = executeMethod; + } + + public bool CanExecute(object parameter = null) + { + return true; + } + + public event EventHandler CanExecuteChanged = delegate { }; + + public void Execute(object parameter = null) + { + _executeMethod.Invoke(); + } + } +} diff --git a/ROM0Split/Implementations/SuperViewModel.cs b/ROM0Split/Implementations/SuperViewModel.cs new file mode 100644 index 0000000..c05a997 --- /dev/null +++ b/ROM0Split/Implementations/SuperViewModel.cs @@ -0,0 +1,29 @@ +using System.ComponentModel; +using System.Runtime.CompilerServices; + +namespace ROM0Split.Implementations +{ + public class SuperViewModel : INotifyPropertyChanged + { + + public event PropertyChangedEventHandler PropertyChanged; + + protected void SetProperty(ref T property, T value, [CallerMemberName] string propertyName = null) + { + if (object.Equals(property, value)) + return; + + property = value; + onPropertyChanged(propertyName); + } + + protected void onPropertyChanged([CallerMemberName] string propertyName = null) + { + if (object.Equals(PropertyChanged, null)) + return; + + PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } +} + diff --git a/ROM0Split/MainWindow.xaml b/ROM0Split/MainWindow.xaml new file mode 100644 index 0000000..e6c6e93 --- /dev/null +++ b/ROM0Split/MainWindow.xaml @@ -0,0 +1,29 @@ + + + + + + + +