# HG changeset patch # User stevenh7776 stevenhollidge@hotmail.com # Date 1331794755 0 # Node ID 09d18d6e5f402f765a5dda0b339211ee54c43bf0 # Parent 8049f7c58c2bf8891f6b4cec78b923331c9c0c07 airport work diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Configuration/GenericElementCollection.cs --- a/Chronosv2/source/Configuration/GenericElementCollection.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Configuration/GenericElementCollection.cs Thu Mar 15 06:59:15 2012 +0000 @@ -3,7 +3,7 @@ namespace Chronos.Configuration { /// - /// http://utahdnug.org/blogs/josh/archive/2007/08/21/generic-configurationelementcollection.aspx + /// Generic Configuration Element Collection /// /// /// diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/DragAndDrop/DragDropManager.cs --- a/Chronosv2/source/DragAndDrop/DragDropManager.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/DragAndDrop/DragDropManager.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010 Carlos Guzmán Álvarez - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.Collections.Generic; +using System.Collections.Generic; using System.Windows; using System.Windows.Controls; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/ArrayExtensions.cs --- a/Chronosv2/source/Extensions/ArrayExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/ArrayExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,33 +1,4 @@ -/* - Copyright (c) 2008 - 2009, Carlos Guzmán Álvarez - - All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. - * Neither the name of the author nor the names of its contributors may be used to endorse or - promote products derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -using System; +using System; using System.Security.Cryptography; using System.Text; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/LinqExtensions.cs --- a/Chronosv2/source/Extensions/LinqExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/LinqExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Collections.Generic; using System.Linq.Expressions; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/PropertyExtensions.cs --- a/Chronosv2/source/Extensions/PropertyExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/PropertyExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.ComponentModel; using System.Linq.Expressions; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/Windows/ApplicationExtensions.cs --- a/Chronosv2/source/Extensions/Windows/ApplicationExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/Windows/ApplicationExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.Security.Permissions; +using System.Security.Permissions; using System.Windows; using System.Windows.Threading; using System.Windows.Media; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/Windows/DispatcherObjectExtensions.cs --- a/Chronosv2/source/Extensions/Windows/DispatcherObjectExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/Windows/DispatcherObjectExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Windows.Threading; namespace Chronos.Extensions.Windows diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/Windows/FrameworkElementExtensions.cs --- a/Chronosv2/source/Extensions/Windows/FrameworkElementExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/Windows/FrameworkElementExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Threading; using System.Windows; using System.Windows.Input; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/Windows/PanelExtensions.cs --- a/Chronosv2/source/Extensions/Windows/PanelExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/Windows/PanelExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Windows; using System.Windows.Controls; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Extensions/Windows/UIElementExtensions.cs --- a/Chronosv2/source/Extensions/Windows/UIElementExtensions.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Extensions/Windows/UIElementExtensions.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.Windows; +using System.Windows; using System.Windows.Media; using System.Windows.Media.Imaging; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Interop/Win32Interop.cs --- a/Chronosv2/source/Interop/Win32Interop.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Interop/Win32Interop.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Runtime.InteropServices; using System.Windows; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Modules/Navigation/NavigationRoutes.cs --- a/Chronosv2/source/Modules/Navigation/NavigationRoutes.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Modules/Navigation/NavigationRoutes.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; namespace Chronos.Modules.Navigation { @@ -50,7 +26,7 @@ /// /// Route for the companies view /// - public const string Companies = "Configuracion/Empresas"; + public const string Companies = "Configuration/Business"; #endregion } diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Modules/Sample/Models/EmpresaEntity.cs --- a/Chronosv2/source/Modules/Sample/Models/EmpresaEntity.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Modules/Sample/Models/EmpresaEntity.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.ComponentModel; namespace Chronos.Modules.Sample.Models diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Modules/Sample/ViewModels/EmpresaViewModel.cs --- a/Chronosv2/source/Modules/Sample/ViewModels/EmpresaViewModel.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Modules/Sample/ViewModels/EmpresaViewModel.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,35 +1,10 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.ComponentModel; +using System.ComponentModel; using Chronos.Modules.Navigation; using Chronos.Modules.Sample.Models; +using Chronos.Presentation.Core.Navigation; using Chronos.Presentation.Core.Windows; using Chronos.Presentation.ViewModel; -using Chronos.Presentation.Core.Navigation; using nRoute.Components; -using System.Collections.ObjectModel; namespace Chronos.Modules.Sample.ViewModels { diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Controls/SplitButton.cs --- a/Chronosv2/source/Presentation/Controls/SplitButton.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Controls/SplitButton.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.ComponentModel; +using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Core/Navigation/INavigationService.cs --- a/Chronosv2/source/Presentation/Core/Navigation/INavigationService.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Core/Navigation/INavigationService.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,27 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - + using nRoute.Navigation; namespace Chronos.Presentation.Core.Navigation diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/ViewModel/ClosableViewModel.cs --- a/Chronosv2/source/Presentation/ViewModel/ClosableViewModel.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/ViewModel/ClosableViewModel.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.Collections.Generic; using System.ComponentModel; using Chronos.Presentation.Core.ViewModel; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/ViewModel/NavigationViewModel.cs --- a/Chronosv2/source/Presentation/ViewModel/NavigationViewModel.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/ViewModel/NavigationViewModel.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using Chronos.Presentation.Core.Navigation; using Chronos.Presentation.Core.ViewModel; using Chronos.Presentation.Core.VirtualDesktops; @@ -33,7 +9,7 @@ namespace Chronos.Presentation.ViewModel { /// - /// base class for navigation based viewmodel iumplementations + /// base class for navigation based viewmodel implementations /// public abstract class NavigationViewModel : ClosableViewModel, INavigationViewModel @@ -293,4 +269,4 @@ #endregion } -} +} \ No newline at end of file diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/ViewModel/ViewModelBase.cs --- a/Chronosv2/source/Presentation/ViewModel/ViewModelBase.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/ViewModel/ViewModelBase.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,29 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System.ComponentModel; -using nRoute.Services; +using nRoute.Services; using nRoute.ViewServices; namespace Chronos.Presentation.ViewModel diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/ViewModel/WindowViewModel.cs --- a/Chronosv2/source/Presentation/ViewModel/WindowViewModel.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/ViewModel/WindowViewModel.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; using System.ComponentModel; using System.Threading; using System.Threading.Tasks; diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Widgets/Navigator/NavigatorWidgetView.xaml --- a/Chronosv2/source/Presentation/Widgets/Navigator/NavigatorWidgetView.xaml Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Widgets/Navigator/NavigatorWidgetView.xaml Thu Mar 15 06:59:15 2012 +0000 @@ -8,7 +8,8 @@ - + diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Windows/ActiveDesktopChangedInfo.cs --- a/Chronosv2/source/Presentation/Windows/ActiveDesktopChangedInfo.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Windows/ActiveDesktopChangedInfo.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) 2009-2010. Carlos Guzmán Álvarez. http://chronoswpf.codeplex.com/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using Chronos.Presentation.Core.VirtualDesktops; +using Chronos.Presentation.Core.VirtualDesktops; namespace Chronos.Presentation.Windows { diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Windows/DesktopSerializer.cs --- a/Chronosv2/source/Presentation/Windows/DesktopSerializer.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Windows/DesktopSerializer.cs Thu Mar 15 06:59:15 2012 +0000 @@ -127,8 +127,8 @@ IShowMessageViewService showMessageService = ViewServiceLocator.GetViewService(); showMessageService.ButtonSetup = DialogButton.Ok; - showMessageService.Caption = "Chronos - Error en la carga del escritorio"; - showMessageService.Text = "No ha sido posible realizar la carga del escritorio."; + showMessageService.Caption = "Error loading the desktop"; + showMessageService.Text = "It was not possible to load the desktop."; showMessageService.ShowMessage(); } @@ -147,8 +147,8 @@ IShowMessageViewService showMessageService = ViewServiceLocator.GetViewService(); showMessageService.ButtonSetup = DialogButton.Ok; - showMessageService.Caption = "Chronos - Error al guardar el estado del escritorio"; - showMessageService.Text = "No ha sido posible al guardar el estado del escritorio."; + showMessageService.Caption = "Failed to save your desktop state"; + showMessageService.Text = "Unable to save your desktop state."; showMessageService.ShowMessage(); } diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/Presentation/Windows/IGroupable.cs --- a/Chronosv2/source/Presentation/Windows/IGroupable.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/Presentation/Windows/IGroupable.cs Thu Mar 15 06:59:15 2012 +0000 @@ -1,28 +1,4 @@ -/* -The MIT License - -Copyright (c) <2009> Carlos guzmán Álvarez - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ - -using System; +using System; namespace Chronos.Presentation.Windows { diff -r 8049f7c58c2b -r 09d18d6e5f40 Chronosv2/source/WidgetLibrary/WidgetItemViewModel.cs --- a/Chronosv2/source/WidgetLibrary/WidgetItemViewModel.cs Wed Mar 14 18:06:36 2012 +0700 +++ b/Chronosv2/source/WidgetLibrary/WidgetItemViewModel.cs Thu Mar 15 06:59:15 2012 +0000 @@ -121,4 +121,4 @@ #endregion } -} +} \ No newline at end of file diff -r 8049f7c58c2b -r 09d18d6e5f40 MetroWpf/MetroWpf.Xaml/Controls/PasswordBoxHelper.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MetroWpf/MetroWpf.Xaml/Controls/PasswordBoxHelper.cs Thu Mar 15 06:59:15 2012 +0000 @@ -0,0 +1,100 @@ + +using System.Windows; +using System.Windows.Controls; + +namespace MetroWpf.Xaml.Controls +{ + /// + /// This class adds binding capabilities to the standard WPF PasswordBox. + /// + /// + /// http://www.codeproject.com/Articles/37167/Binding-Passwords.aspx + /// + public static class PasswordBoxHelper + { + #region · Static Members · + + private static bool IsUpdating = false; + + #endregion + + #region · Attached Properties · + + /// + /// BoundPassword Attached Dependency Property + /// + public static readonly DependencyProperty BoundPasswordProperty = + DependencyProperty.RegisterAttached("BoundPassword", + typeof(string), + typeof(PasswordBoxHelper), + new FrameworkPropertyMetadata(string.Empty, OnBoundPasswordChanged)); + + #endregion + + #region · Attached Property Get/Set Methods · + + /// + /// Gets the BoundPassword property. + /// + public static string GetBoundPassword(DependencyObject d) + { + return (string)d.GetValue(BoundPasswordProperty); + } + + /// + /// Sets the BoundPassword property. + /// + public static void SetBoundPassword(DependencyObject d, string value) + { + d.SetValue(BoundPasswordProperty, value); + } + + #endregion + + #region · Attached Properties Callbacks · + + /// + /// Handles changes to the BoundPassword property. + /// + private static void OnBoundPasswordChanged( + DependencyObject d, + DependencyPropertyChangedEventArgs e) + { + PasswordBox password = d as PasswordBox; + + if (password != null) + { + // Disconnect the handler while we're updating. + password.PasswordChanged -= PasswordChanged; + } + + if (e.NewValue != null) + { + if (!IsUpdating) + { + password.Password = e.NewValue.ToString(); + } + } + else + { + password.Password = string.Empty; + } + + // Now, reconnect the handler. + password.PasswordChanged += new RoutedEventHandler(PasswordChanged); + } + + /// + /// Handles the password change event. + /// + static void PasswordChanged(object sender, RoutedEventArgs e) + { + PasswordBox password = sender as PasswordBox; + IsUpdating = true; + SetBoundPassword(password, password.Password); + IsUpdating = false; + } + + #endregion + } +} diff -r 8049f7c58c2b -r 09d18d6e5f40 MetroWpf/MetroWpf.Xaml/MetroWpf.Xaml.csproj --- a/MetroWpf/MetroWpf.Xaml/MetroWpf.Xaml.csproj Wed Mar 14 18:06:36 2012 +0700 +++ b/MetroWpf/MetroWpf.Xaml/MetroWpf.Xaml.csproj Thu Mar 15 06:59:15 2012 +0000 @@ -50,6 +50,7 @@ + diff -r 8049f7c58c2b -r 09d18d6e5f40 MetroWpf/MetroWpf/Presentation/Login/LoginView.xaml --- a/MetroWpf/MetroWpf/Presentation/Login/LoginView.xaml Wed Mar 14 18:06:36 2012 +0700 +++ b/MetroWpf/MetroWpf/Presentation/Login/LoginView.xaml Thu Mar 15 06:59:15 2012 +0000 @@ -5,6 +5,7 @@ xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" xmlns:converters="clr-namespace:MetroWpf.Xaml.Converters;assembly=MetroWpf.Xaml" + xmlns:c="clr-namespace:MetroWpf.Xaml.Controls;assembly=MetroWpf.Xaml" xmlns:controls="clr-namespace:Microsoft.Windows.Controls;assembly=MetroWpf.Xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" @@ -32,9 +33,9 @@ x:Name="BrandBar" Grid.Row="1" Fill="{DynamicResource BrandingBrush}" HorizontalAlignment="Left" VerticalAlignment="Bottom" - Width="100" Height="6" IsHitTestVisible="False" /> + Width="125" Height="6" IsHitTestVisible="False" /> - WELCOME + WELCOME TO OUR METRO WORLD @@ -65,13 +66,15 @@ HorizontalAlignment="Left" VerticalAlignment="Center" Width="220" MaxLength="50" Margin="3.5" /> - + -