22 | Swapping to Development environment will display more detailed information about the error that occurred. 23 |
24 |25 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 26 |
27 | -------------------------------------------------------------------------------- /src/Knowzy_Engineering_Win32App/src/Microsoft.Knowzy.WPF/Converters/CascadeLevelToMarginConverter.cs: -------------------------------------------------------------------------------- 1 | // ****************************************************************** 2 | 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 6 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 7 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 8 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 9 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 10 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 11 | // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. 12 | 13 | // ****************************************************************** 14 | 15 | using System; 16 | using System.Globalization; 17 | using System.Windows; 18 | using System.Windows.Data; 19 | 20 | namespace Microsoft.Knowzy.WPF.Converters 21 | { 22 | class CascadeLevelToMarginConverter : IValueConverter 23 | { 24 | public const int CascadeSize = 60; 25 | 26 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 27 | { 28 | var level = (value is int)? (int)value : 0; 29 | return new Thickness(0, level * CascadeSize, 0, 0); 30 | } 31 | 32 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 33 | { 34 | throw new NotImplementedException(); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.WPF/Converters/CascadeLevelToMarginConverter.cs: -------------------------------------------------------------------------------- 1 | // ****************************************************************** 2 | 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 6 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 7 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 8 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 9 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 10 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 11 | // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. 12 | 13 | // ****************************************************************** 14 | 15 | using System; 16 | using System.Globalization; 17 | using System.Windows; 18 | using System.Windows.Data; 19 | 20 | namespace Microsoft.Knowzy.WPF.Converters 21 | { 22 | class CascadeLevelToMarginConverter : IValueConverter 23 | { 24 | public const int CascadeSize = 60; 25 | 26 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 27 | { 28 | var level = (value is int)? (int)value : 0; 29 | return new Thickness(0, level * CascadeSize, 0, 0); 30 | } 31 | 32 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 33 | { 34 | throw new NotImplementedException(); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/Knowzy_Engineering_Win32App/src/Microsoft.Knowzy.WPF/Helpers/FileHelper.cs: -------------------------------------------------------------------------------- 1 | // ****************************************************************** 2 | 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 6 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 7 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 8 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 9 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 10 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 11 | // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. 12 | 13 | // ****************************************************************** 14 | 15 | using System; 16 | using System.IO; 17 | using Microsoft.Knowzy.Common.Contracts.Helpers; 18 | 19 | namespace Microsoft.Knowzy.WPF.Helpers 20 | { 21 | public class FileHelper : IFileHelper 22 | { 23 | public string ActualPath => AppDomain.CurrentDomain.BaseDirectory; 24 | 25 | public string ReadTextFile(string filePath) 26 | { 27 | using (var reader = new StreamReader(filePath)) 28 | { 29 | return reader.ReadToEnd(); 30 | } 31 | } 32 | 33 | public void WriteTextFile(string filePath, string content) 34 | { 35 | using (var writer = new StreamWriter(filePath)) 36 | { 37 | writer.WriteLine(content); 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.Common/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("Microsoft.Knowzy.Common")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.Common")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("c7bf0c4c-4d81-4545-9143-4fb3470e37b6")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.Domain/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("Microsoft.Knowzy.Domain")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.Domain")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("1910d6cc-60ed-45f2-8e73-4e6db2343db5")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.WPF/Helpers/FileHelper.cs: -------------------------------------------------------------------------------- 1 | // ****************************************************************** 2 | 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 6 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 7 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 8 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 9 | // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 10 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 11 | // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. 12 | 13 | // ****************************************************************** 14 | 15 | using System; 16 | using System.IO; 17 | using Microsoft.Knowzy.Common.Contracts.Helpers; 18 | 19 | namespace Microsoft.Knowzy.WPF.Helpers 20 | { 21 | public class FileHelper : IFileHelper 22 | { 23 | public string ActualPath => AppDomain.CurrentDomain.BaseDirectory; 24 | 25 | public string ReadTextFile(string filePath) 26 | { 27 | using (var reader = new StreamReader(filePath)) 28 | { 29 | return reader.ReadToEnd(); 30 | } 31 | } 32 | 33 | public void WriteTextFile(string filePath, string content) 34 | { 35 | using (var writer = new StreamWriter(filePath)) 36 | { 37 | writer.WriteLine(content); 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Knowzy_Engineering_Win32App/src/Microsoft.Knowzy.Common/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("Microsoft.Knowzy.Common")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.Common")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("c7bf0c4c-4d81-4545-9143-4fb3470e37b6")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Engineering_Win32App/src/Microsoft.Knowzy.Domain/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("Microsoft.Knowzy.Domain")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.Domain")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("1910d6cc-60ed-45f2-8e73-4e6db2343db5")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.NET.BLL/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("Microsoft.Knowzy.NET.BLL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.NET.BLL")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("ac96a013-af76-42dd-a07b-9464aa670231")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Inventory_Win32App/src/Microsoft.Knowzy.NET.DAL/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("Microsoft.Knowzy.NET.DAL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Microsoft.Knowzy.NET.DAL")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 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("8b0985e3-3fa3-478b-8f33-e8f224778bf9")] 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 | -------------------------------------------------------------------------------- /src/Knowzy_Engineering_Win32App/src/Microsoft.Knowzy.WPF/Themes/FontSizes.xaml: -------------------------------------------------------------------------------- 1 | 16 | 17 |