Skip to content

Commit 52af4b0

Browse files
committed
Initial Commit
1 parent 906c303 commit 52af4b0

36 files changed

+2419
-88
lines changed

MeetingInfoWPF.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Global
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23+
EnterpriseLibraryConfigurationToolBinariesPathV6 = packages\EnterpriseLibrary.Common.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.Data.6.0.1304.0\lib\NET45
2324
SolutionGuid = {947D08DA-9E4C-4DC7-AA8A-E0A968C273ED}
2425
EndGlobalSection
2526
EndGlobal

MeetingInfoWPF/App.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
<startup>
44
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
55
</startup>
6+
<connectionStrings>
7+
<add name="cs" connectionString="Server=.;Database=MeetingDatabase;Uid=sa;Pwd=SQL;" />
8+
</connectionStrings>
69
</configuration>

MeetingInfoWPF/App.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:local="clr-namespace:MeetingInfoWPF"
5-
StartupUri="MainWindow.xaml">
5+
StartupUri="View/Forms/MeetingWindow.xaml">
66
<Application.Resources>
7-
7+
<Color x:Key="BackgroundColor">#F0F0F0</Color>
8+
<Color x:Key="ShadowColor">#DEDEDE</Color>
9+
<Color x:Key="SelectedColor">#009688</Color>
10+
<Color x:Key="TextColor">Black</Color>
11+
<FontFamily x:Key="Roboto">pack://application:,,,/View/Resources/#Roboto</FontFamily>
12+
<FontFamily x:Key="SegoePrint">pack://application:,,,/View/Resources/#Segoe Print</FontFamily>
813
</Application.Resources>
914
</Application>

MeetingInfoWPF/App.xaml.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using MeetingInfoDatabase;
32
using System.Configuration;
4-
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
73
using System.Windows;
84

95
namespace MeetingInfoWPF
106
{
11-
/// <summary>
12-
/// Interaction logic for App.xaml
13-
/// </summary>
147
public partial class App : Application
158
{
9+
10+
public static Repository Repository { get; private set; }
11+
private static readonly string cs = ConfigurationManager.ConnectionStrings["cs"].ConnectionString;
12+
13+
public App()
14+
{
15+
Repository = new Repository(cs, MeetingInfoDatabase.DAO.DatabaseType.SqlHelper);
16+
}
17+
1618
}
1719
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Globalization;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using System.Windows.Data;
8+
9+
namespace MeetingInfoWPF.Helper
10+
{
11+
class CaseConverter : IValueConverter
12+
{
13+
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
14+
{
15+
string text = value as string;
16+
if(text != null)
17+
{
18+
return text.ToUpper(culture);
19+
}
20+
return value;
21+
}
22+
23+
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
24+
{
25+
return value;
26+
}
27+
}
28+
}

MeetingInfoWPF/MainWindow.xaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

MeetingInfoWPF/MainWindow.xaml.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

MeetingInfoWPF/MeetingInfoWPF.csproj

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,20 @@
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
3737
<ItemGroup>
38+
<Reference Include="MeetingInfoDatabase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
39+
<HintPath>..\packages\MeetingInfoDatabase.1.0.0\lib\net461\MeetingInfoDatabase.dll</HintPath>
40+
</Reference>
41+
<Reference Include="Microsoft.ApplicationBlocks.Data, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
42+
<HintPath>..\packages\Microsoft.ApplicationBlocks.Data.2.0.0\lib\net45\Microsoft.ApplicationBlocks.Data.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
45+
<HintPath>..\packages\EnterpriseLibrary.Common.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Common.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Microsoft.Practices.EnterpriseLibrary.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
48+
<HintPath>..\packages\EnterpriseLibrary.Data.6.0.1304.0\lib\NET45\Microsoft.Practices.EnterpriseLibrary.Data.dll</HintPath>
49+
</Reference>
3850
<Reference Include="System" />
51+
<Reference Include="System.Configuration" />
3952
<Reference Include="System.Data" />
4053
<Reference Include="System.Xml" />
4154
<Reference Include="Microsoft.CSharp" />
@@ -55,18 +68,55 @@
5568
<Generator>MSBuild:Compile</Generator>
5669
<SubType>Designer</SubType>
5770
</ApplicationDefinition>
58-
<Page Include="MainWindow.xaml">
71+
<Compile Include="Helper\CaseConverter.cs" />
72+
<Compile Include="Model\SelectedDate.cs" />
73+
<Compile Include="Properties\Resources.hr.Designer.cs">
74+
<DependentUpon>Resources.hr.resx</DependentUpon>
75+
<AutoGen>True</AutoGen>
76+
<DesignTime>True</DesignTime>
77+
</Compile>
78+
<Compile Include="Properties\Resources.en.Designer.cs">
79+
<DependentUpon>Resources.en.resx</DependentUpon>
80+
<AutoGen>True</AutoGen>
81+
<DesignTime>True</DesignTime>
82+
</Compile>
83+
<Compile Include="Service\SelectedDateService.cs" />
84+
<Compile Include="ViewModel\MeetingInfoVM.cs" />
85+
<Compile Include="ViewModel\MeetingVM.cs" />
86+
<Compile Include="ViewModel\SelectedDateVM.cs" />
87+
<Compile Include="View\Components\WeekPlaner.xaml.cs">
88+
<DependentUpon>WeekPlaner.xaml</DependentUpon>
89+
</Compile>
90+
<Compile Include="View\Components\CustomCalendar.xaml.cs">
91+
<DependentUpon>CustomCalendar.xaml</DependentUpon>
92+
</Compile>
93+
<Page Include="View\Components\WeekPlaner.xaml">
94+
<SubType>Designer</SubType>
95+
<Generator>MSBuild:Compile</Generator>
96+
</Page>
97+
<Page Include="View\Forms\MeetingInfo.xaml">
98+
<SubType>Designer</SubType>
99+
<Generator>MSBuild:Compile</Generator>
100+
</Page>
101+
<Page Include="View\Forms\MeetingWindow.xaml">
59102
<Generator>MSBuild:Compile</Generator>
60103
<SubType>Designer</SubType>
61104
</Page>
62105
<Compile Include="App.xaml.cs">
63106
<DependentUpon>App.xaml</DependentUpon>
64107
<SubType>Code</SubType>
65108
</Compile>
66-
<Compile Include="MainWindow.xaml.cs">
67-
<DependentUpon>MainWindow.xaml</DependentUpon>
109+
<Compile Include="View\Forms\MeetingInfo.xaml.cs">
110+
<DependentUpon>MeetingInfo.xaml</DependentUpon>
111+
</Compile>
112+
<Compile Include="View\Forms\MeetingWindow.xaml.cs">
113+
<DependentUpon>MeetingWindow.xaml</DependentUpon>
68114
<SubType>Code</SubType>
69115
</Compile>
116+
<Page Include="View\Components\CustomCalendar.xaml">
117+
<SubType>Designer</SubType>
118+
<Generator>MSBuild:Compile</Generator>
119+
</Page>
70120
</ItemGroup>
71121
<ItemGroup>
72122
<Compile Include="Properties\AssemblyInfo.cs">
@@ -82,17 +132,37 @@
82132
<DependentUpon>Settings.settings</DependentUpon>
83133
<DesignTimeSharedInput>True</DesignTimeSharedInput>
84134
</Compile>
135+
<EmbeddedResource Include="Properties\Resources.hr.resx">
136+
<Generator>PublicResXFileCodeGenerator</Generator>
137+
<LastGenOutput>Resources.hr.Designer.cs</LastGenOutput>
138+
</EmbeddedResource>
139+
<EmbeddedResource Include="Properties\Resources.en.resx">
140+
<Generator>PublicResXFileCodeGenerator</Generator>
141+
<LastGenOutput>Resources.en.Designer.cs</LastGenOutput>
142+
</EmbeddedResource>
85143
<EmbeddedResource Include="Properties\Resources.resx">
86-
<Generator>ResXFileCodeGenerator</Generator>
144+
<Generator>PublicResXFileCodeGenerator</Generator>
87145
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
88146
</EmbeddedResource>
147+
<None Include="packages.config" />
89148
<None Include="Properties\Settings.settings">
90149
<Generator>SettingsSingleFileGenerator</Generator>
91150
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
92151
</None>
152+
<Resource Include="View\Resources\Roboto.ttf" />
153+
<Resource Include="View\Resources\RobotoCondensed.ttf" />
154+
<Resource Include="View\Resources\SegoePrint.ttf" />
155+
</ItemGroup>
156+
<ItemGroup>
157+
<None Include="App.config">
158+
<SubType>Designer</SubType>
159+
</None>
160+
</ItemGroup>
161+
<ItemGroup>
162+
<Resource Include="View\Resources\printIcon.png" />
93163
</ItemGroup>
94164
<ItemGroup>
95-
<None Include="App.config" />
165+
<Resource Include="View\Resources\languageIcon.png" />
96166
</ItemGroup>
97167
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
98168
</Project>

MeetingInfoWPF/Model/SelectedDate.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace MeetingInfoWPF.Model
8+
{
9+
class SelectedDate
10+
{
11+
12+
public DateTime CurrentDate { get; set; }
13+
14+
}
15+
}

MeetingInfoWPF/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[assembly: AssemblyConfiguration("")]
1313
[assembly: AssemblyCompany("")]
1414
[assembly: AssemblyProduct("MeetingInfoWPF")]
15-
[assembly: AssemblyCopyright("Copyright © 2019")]
15+
[assembly: AssemblyCopyright("Copyright © Sanjin Kurelic 2018")]
1616
[assembly: AssemblyTrademark("")]
1717
[assembly: AssemblyCulture("")]
1818

0 commit comments

Comments
 (0)