├── Starter └── FriendStorage │ ├── FriendStorage.UI │ ├── ViewModel │ │ ├── MainViewModel.cs │ │ ├── FriendEditViewModel.cs │ │ ├── NavigationViewModel.cs │ │ └── ViewModelBase.cs │ ├── App.xaml.cs │ ├── FriendStorageIcon.png │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── View │ │ ├── MainWindow.xaml.cs │ │ ├── FriendEditView.xaml.cs │ │ ├── NavigationView.xaml.cs │ │ ├── NavigationView.xaml │ │ ├── FriendEditView.xaml │ │ └── MainWindow.xaml │ ├── Styles │ │ ├── Label.xaml │ │ ├── TextBox.xaml │ │ ├── Brushes.xaml │ │ ├── CheckBox.xaml │ │ ├── Button.xaml │ │ └── DatePicker.xaml │ ├── App.xaml │ ├── Command │ │ └── DelegateCommand.cs │ └── FriendStorage.UI.csproj │ ├── FriendStorage.DataAccess │ ├── packages.config │ ├── IDataService.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── FriendStorage.DataAccess.csproj │ └── FileDataService.cs │ ├── FriendStorage.Model │ ├── Friend.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── FriendStorage.Model.csproj │ └── FriendStorage.sln ├── .gitattributes └── .gitignore /Starter/FriendStorage/FriendStorage.UI/ViewModel/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace FriendStorage.UI.ViewModel 2 | { 3 | public class MainViewModel : ViewModelBase 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace FriendStorage.UI 4 | { 5 | public partial class App : Application 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/ViewModel/FriendEditViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace FriendStorage.UI.ViewModel 2 | { 3 | public class FriendEditViewModel : ViewModelBase 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/ViewModel/NavigationViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace FriendStorage.UI.ViewModel 2 | { 3 | public class NavigationViewModel : ViewModelBase 4 | { 5 | 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/FriendStorageIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thomasclaudiushuber/WPFandMVVM_TestDrivenDevelopment/HEAD/Starter/FriendStorage/FriendStorage.UI/FriendStorageIcon.png -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.DataAccess/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/View/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace FriendStorage.UI.View 4 | { 5 | public partial class MainWindow : Window 6 | { 7 | public MainWindow() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/View/FriendEditView.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace FriendStorage.UI.View 4 | { 5 | public partial class FriendEditView : UserControl 6 | { 7 | public FriendEditView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/View/NavigationView.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace FriendStorage.UI.View 4 | { 5 | public partial class NavigationView : UserControl 6 | { 7 | public NavigationView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.Model/Friend.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FriendStorage.Model 4 | { 5 | public class Friend 6 | { 7 | public int Id { get; set; } 8 | 9 | public string FirstName { get; set; } 10 | 11 | public string LastName { get; set; } 12 | 13 | public DateTime? Birthday { get; set; } 14 | 15 | public bool IsDeveloper { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.DataAccess/IDataService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using FriendStorage.Model; 4 | 5 | namespace FriendStorage.DataAccess 6 | { 7 | public interface IDataService : IDisposable 8 | { 9 | Friend GetFriendById(int friendId); 10 | 11 | void SaveFriend(Friend friend); 12 | 13 | void DeleteFriend(int friendId); 14 | 15 | IEnumerable GetAllFriends(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Styles/Label.xaml: -------------------------------------------------------------------------------- 1 | 3 | 8 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/ViewModel/ViewModelBase.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.Runtime.CompilerServices; 3 | 4 | namespace FriendStorage.UI.ViewModel 5 | { 6 | public class ViewModelBase : INotifyPropertyChanged 7 | { 8 | public event PropertyChangedEventHandler PropertyChanged; 9 | 10 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) 11 | { 12 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Styles/TextBox.xaml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 18 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Styles/Brushes.xaml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Command/DelegateCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Input; 3 | 4 | namespace FriendStorage.UI.Command 5 | { 6 | public class DelegateCommand : ICommand 7 | { 8 | private readonly Action _execute; 9 | private readonly Func _canExecute; 10 | 11 | public DelegateCommand( 12 | Action execute, 13 | Func canExecute = null) 14 | { 15 | if (execute == null) 16 | { 17 | throw new ArgumentNullException(nameof(execute)); 18 | } 19 | 20 | _execute = execute; 21 | _canExecute = canExecute; 22 | } 23 | 24 | public event EventHandler CanExecuteChanged; 25 | 26 | public bool CanExecute(object parameter) 27 | { 28 | return _canExecute == null || _canExecute(parameter); 29 | } 30 | 31 | public void Execute(object parameter) 32 | { 33 | _execute(parameter); 34 | } 35 | 36 | public void RaiseCanExecuteChanged() 37 | { 38 | CanExecuteChanged?.Invoke(this, EventArgs.Empty); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/View/NavigationView.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace FriendStorage.UI.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.Model/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("FriendStorage.Model")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("FriendStorage.Model")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("67eb7c6d-721a-4c84-991d-594bd263a0ed")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.DataAccess/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("FriendStorage.DataAccess")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("FriendStorage.DataAccess")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ed3b0a8c-bce2-427b-8da8-ac7f1388dd2e")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FriendStorage.UI", "FriendStorage.UI\FriendStorage.UI.csproj", "{D32D4E43-79CA-4FD3-B920-13957F9060E7}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FriendStorage.DataAccess", "FriendStorage.DataAccess\FriendStorage.DataAccess.csproj", "{ED3B0A8C-BCE2-427B-8DA8-AC7F1388DD2E}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FriendStorage.Model", "FriendStorage.Model\FriendStorage.Model.csproj", "{67EB7C6D-721A-4C84-991D-594BD263A0ED}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {D32D4E43-79CA-4FD3-B920-13957F9060E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {D32D4E43-79CA-4FD3-B920-13957F9060E7}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {D32D4E43-79CA-4FD3-B920-13957F9060E7}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {D32D4E43-79CA-4FD3-B920-13957F9060E7}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {ED3B0A8C-BCE2-427B-8DA8-AC7F1388DD2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {ED3B0A8C-BCE2-427B-8DA8-AC7F1388DD2E}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {ED3B0A8C-BCE2-427B-8DA8-AC7F1388DD2E}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {ED3B0A8C-BCE2-427B-8DA8-AC7F1388DD2E}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {67EB7C6D-721A-4C84-991D-594BD263A0ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {67EB7C6D-721A-4C84-991D-594BD263A0ED}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {67EB7C6D-721A-4C84-991D-594BD263A0ED}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {67EB7C6D-721A-4C84-991D-594BD263A0ED}.Release|Any CPU.Build.0 = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/View/FriendEditView.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 77 | 78 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.DataAccess/FileDataService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using FriendStorage.Model; 5 | using System.IO; 6 | using Newtonsoft.Json; 7 | 8 | namespace FriendStorage.DataAccess 9 | { 10 | public class FileDataService : IDataService 11 | { 12 | private const string StorageFile = "Friends.json"; 13 | 14 | public Friend GetFriendById(int friendId) 15 | { 16 | var friends = ReadFromFile(); 17 | return friends.Single(f => f.Id == friendId); 18 | } 19 | 20 | public void SaveFriend(Friend friend) 21 | { 22 | if (friend.Id <= 0) 23 | { 24 | InsertFriend(friend); 25 | } 26 | else 27 | { 28 | UpdateFriend(friend); 29 | } 30 | } 31 | 32 | public void DeleteFriend(int friendId) 33 | { 34 | var friends = ReadFromFile(); 35 | var existing = friends.Single(f => f.Id == friendId); 36 | friends.Remove(existing); 37 | SaveToFile(friends); 38 | } 39 | 40 | private void UpdateFriend(Friend friend) 41 | { 42 | var friends = ReadFromFile(); 43 | var existing = friends.Single(f => f.Id == friend.Id); 44 | var indexOfExisting = friends.IndexOf(existing); 45 | friends.Insert(indexOfExisting, friend); 46 | friends.Remove(existing); 47 | SaveToFile(friends); 48 | } 49 | 50 | private void InsertFriend(Friend friend) 51 | { 52 | var friends = ReadFromFile(); 53 | var maxFriendId = friends.Count == 0 ? 0 : friends.Max(f => f.Id); 54 | friend.Id = maxFriendId + 1; 55 | friends.Add(friend); 56 | SaveToFile(friends); 57 | } 58 | 59 | public IEnumerable GetAllFriends() 60 | { 61 | return ReadFromFile(); 62 | } 63 | 64 | public void Dispose() 65 | { 66 | // Usually Service-Proxies are disposable. This method is added as demo-purpose 67 | // to show how to use an IDisposable in the client with a Func. => Look for example at the FriendDataProvider-class 68 | } 69 | 70 | private void SaveToFile(List friendList) 71 | { 72 | string json = JsonConvert.SerializeObject(friendList, Formatting.Indented); 73 | File.WriteAllText(StorageFile, json); 74 | } 75 | 76 | private List ReadFromFile() 77 | { 78 | if (!File.Exists(StorageFile)) 79 | { 80 | return new List 81 | { 82 | new Friend{Id=1,FirstName = "Thomas",LastName="Huber", 83 | Birthday = new DateTime(1980,10,28), IsDeveloper = true}, 84 | new Friend{Id=2,FirstName = "Julia",LastName="Huber", 85 | Birthday = new DateTime(1982,10,10)}, 86 | new Friend{Id=3,FirstName="Anna",LastName="Huber", 87 | Birthday = new DateTime(2011,05,13)}, 88 | new Friend{Id=4,FirstName="Sara",LastName="Huber", 89 | Birthday = new DateTime(2013,02,25)}, 90 | new Friend{Id=5,FirstName = "Andreas",LastName="Böhler", 91 | Birthday = new DateTime(1981,01,10), IsDeveloper = true}, 92 | new Friend{Id=6,FirstName="Urs",LastName="Meier", 93 | Birthday = new DateTime(1970,03,5), IsDeveloper = true}, 94 | new Friend{Id=7,FirstName="Chrissi",LastName="Heuberger", 95 | Birthday = new DateTime(1987,07,16)}, 96 | new Friend{Id=8,FirstName="Erkan",LastName="Egin", 97 | Birthday = new DateTime(1983,05,23)}, 98 | }; 99 | } 100 | 101 | string json = File.ReadAllText(StorageFile); 102 | return JsonConvert.DeserializeObject>(json); 103 | } 104 | } 105 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | build/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | 28 | # MSTest test Results 29 | [Tt]est[Rr]esult*/ 30 | [Bb]uild[Ll]og.* 31 | 32 | # NUNIT 33 | *.VisualState.xml 34 | TestResult.xml 35 | 36 | # Build Results of an ATL Project 37 | [Dd]ebugPS/ 38 | [Rr]eleasePS/ 39 | dlldata.c 40 | 41 | # DNX 42 | project.lock.json 43 | artifacts/ 44 | 45 | *_i.c 46 | *_p.c 47 | *_i.h 48 | *.ilk 49 | *.meta 50 | *.obj 51 | *.pch 52 | *.pdb 53 | *.pgc 54 | *.pgd 55 | *.rsp 56 | *.sbr 57 | *.tlb 58 | *.tli 59 | *.tlh 60 | *.tmp 61 | *.tmp_proj 62 | *.log 63 | *.vspscc 64 | *.vssscc 65 | .builds 66 | *.pidb 67 | *.svclog 68 | *.scc 69 | 70 | # Chutzpah Test files 71 | _Chutzpah* 72 | 73 | # Visual C++ cache files 74 | ipch/ 75 | *.aps 76 | *.ncb 77 | *.opensdf 78 | *.sdf 79 | *.cachefile 80 | 81 | # Visual Studio profiler 82 | *.psess 83 | *.vsp 84 | *.vspx 85 | 86 | # TFS 2012 Local Workspace 87 | $tf/ 88 | 89 | # Guidance Automation Toolkit 90 | *.gpState 91 | 92 | # ReSharper is a .NET coding add-in 93 | _ReSharper*/ 94 | *.[Rr]e[Ss]harper 95 | *.DotSettings.user 96 | 97 | # JustCode is a .NET coding add-in 98 | .JustCode 99 | 100 | # TeamCity is a build add-in 101 | _TeamCity* 102 | 103 | # DotCover is a Code Coverage Tool 104 | *.dotCover 105 | 106 | # NCrunch 107 | _NCrunch_* 108 | .*crunch*.local.xml 109 | 110 | # MightyMoose 111 | *.mm.* 112 | AutoTest.Net/ 113 | 114 | # Web workbench (sass) 115 | .sass-cache/ 116 | 117 | # Installshield output folder 118 | [Ee]xpress/ 119 | 120 | # DocProject is a documentation generator add-in 121 | DocProject/buildhelp/ 122 | DocProject/Help/*.HxT 123 | DocProject/Help/*.HxC 124 | DocProject/Help/*.hhc 125 | DocProject/Help/*.hhk 126 | DocProject/Help/*.hhp 127 | DocProject/Help/Html2 128 | DocProject/Help/html 129 | 130 | # Click-Once directory 131 | publish/ 132 | 133 | # Publish Web Output 134 | *.[Pp]ublish.xml 135 | *.azurePubxml 136 | ## TODO: Comment the next line if you want to checkin your 137 | ## web deploy settings but do note that will include unencrypted 138 | ## passwords 139 | #*.pubxml 140 | 141 | *.publishproj 142 | 143 | # NuGet Packages 144 | *.nupkg 145 | # The packages folder can be ignored because of Package Restore 146 | **/packages/* 147 | # except build/, which is used as an MSBuild target. 148 | !**/packages/build/ 149 | # Uncomment if necessary however generally it will be regenerated when needed 150 | #!**/packages/repositories.config 151 | 152 | # Windows Azure Build Output 153 | csx/ 154 | *.build.csdef 155 | 156 | # Windows Store app package directory 157 | AppPackages/ 158 | 159 | # Visual Studio cache files 160 | # files ending in .cache can be ignored 161 | *.[Cc]ache 162 | # but keep track of directories ending in .cache 163 | !*.[Cc]ache/ 164 | 165 | # Others 166 | ClientBin/ 167 | [Ss]tyle[Cc]op.* 168 | ~$* 169 | *~ 170 | *.dbmdl 171 | *.dbproj.schemaview 172 | *.pfx 173 | *.publishsettings 174 | node_modules/ 175 | orleans.codegen.cs 176 | 177 | # RIA/Silverlight projects 178 | Generated_Code/ 179 | 180 | # Backup & report files from converting an old project file 181 | # to a newer Visual Studio version. Backup files are not needed, 182 | # because we have git ;-) 183 | _UpgradeReport_Files/ 184 | Backup*/ 185 | UpgradeLog*.XML 186 | UpgradeLog*.htm 187 | 188 | # SQL Server files 189 | *.mdf 190 | *.ldf 191 | 192 | # Business Intelligence projects 193 | *.rdl.data 194 | *.bim.layout 195 | *.bim_*.settings 196 | 197 | # Microsoft Fakes 198 | FakesAssemblies/ 199 | 200 | # Node.js Tools for Visual Studio 201 | .ntvs_analysis.dat 202 | 203 | # Visual Studio 6 build log 204 | *.plg 205 | 206 | # Visual Studio 6 workspace options file 207 | *.opt 208 | 209 | # LightSwitch generated files 210 | GeneratedArtifacts/ 211 | _Pvt_Extensions/ 212 | ModelManifest.xml 213 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Styles/Button.xaml: -------------------------------------------------------------------------------- 1 | 3 | 39 | 40 | 76 | 77 | 101 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/FriendStorage.UI.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {D32D4E43-79CA-4FD3-B920-13957F9060E7} 8 | WinExe 9 | Properties 10 | FriendStorage.UI 11 | FriendStorage.UI 12 | v4.5.2 13 | 512 14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 15 | 4 16 | true 17 | 18 | 19 | AnyCPU 20 | true 21 | full 22 | false 23 | bin\Debug\ 24 | DEBUG;TRACE 25 | prompt 26 | 4 27 | 28 | 29 | AnyCPU 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 4.0 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | MSBuild:Compile 56 | Designer 57 | 58 | 59 | 60 | 61 | 62 | 63 | FriendEditView.xaml 64 | 65 | 66 | MainWindow.xaml 67 | 68 | 69 | NavigationView.xaml 70 | 71 | 72 | App.xaml 73 | Code 74 | 75 | 76 | 77 | MSBuild:Compile 78 | Designer 79 | 80 | 81 | MSBuild:Compile 82 | Designer 83 | 84 | 85 | MSBuild:Compile 86 | Designer 87 | 88 | 89 | MSBuild:Compile 90 | Designer 91 | 92 | 93 | MSBuild:Compile 94 | Designer 95 | 96 | 97 | MSBuild:Compile 98 | Designer 99 | 100 | 101 | MSBuild:Compile 102 | Designer 103 | 104 | 105 | MSBuild:Compile 106 | Designer 107 | 108 | 109 | MSBuild:Compile 110 | Designer 111 | 112 | 113 | 114 | 115 | Code 116 | 117 | 118 | True 119 | True 120 | Resources.resx 121 | 122 | 123 | True 124 | Settings.settings 125 | True 126 | 127 | 128 | ResXFileCodeGenerator 129 | Resources.Designer.cs 130 | 131 | 132 | SettingsSingleFileGenerator 133 | Settings.Designer.cs 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | {ed3b0a8c-bce2-427b-8da8-ac7f1388dd2e} 146 | FriendStorage.DataAccess 147 | 148 | 149 | {67eb7c6d-721a-4c84-991d-594bd263a0ed} 150 | FriendStorage.Model 151 | 152 | 153 | 154 | 161 | -------------------------------------------------------------------------------- /Starter/FriendStorage/FriendStorage.UI/Styles/DatePicker.xaml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 249 | 250 | 351 | --------------------------------------------------------------------------------