Genesis_v2.0__BETA__-_Ruby.zip
Ruby (v2.0 - BETA)
Desktop
Infrastructure
BlueMarble.Genesis.Infrastructure
Background
Default
Behaviors
Converters
Helpers
Interfaces
Properties
Resources
Modules
BlueMarble.Genesis.View
Properties
Shell
BlueMarble.Genesis.Shell
BlueMarble.Genesis.Shell.csproj.user
Bootstrapper
Converters
Properties
Settings.settings
Resources
Unit Tests
BlueMarble.Genesis.Infrastructure.Test
Background
Default
Behaviors
Converters
Helpers
Properties
Test References
BlueMarble.Genesis.Infrastructure.accessor
BlueMarble.Genesis.Shell.Test
Bootstrapper
Properties
Test References
BlueMarble.Genesis.Shell.accessor
BlueMarble.Genesis.Test
Mocks
Properties
Service
Solutions
Genesis
Genesis.vsmdi
Local.testsettings
TestResults
stephanj_DANTE 2010-05-31 21_19_55.trx
stephanj_DANTE 2010-05-31 21_19_55
Out
stephanj_DANTE 2010-05-31 21_23_00
In
DANTE
Out
TraceAndTestImpact.testsettings
Stable Assemblies
Desktop
Common Service Location
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.ServiceLocation.pdb
Composite Application Block
Microsoft.Practices.Composite.dll
Microsoft.Practices.Composite.pdb
Microsoft.Practices.Composite.Presentation.dll
Microsoft.Practices.Composite.Presentation.pdb
Microsoft.Practices.Composite.UnityExtensions.dll
Microsoft.Practices.Composite.UnityExtensions.dll.lastcodeanalysissucceeded
Microsoft.Practices.Composite.UnityExtensions.pdb
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.ServiceLocation.pdb
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.pdb
Enterprise Library
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll
Unity
Microsoft.Practices.Unity.Configuration.dll
Microsoft.Practices.Unity.Configuration.pdb
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.Configuration.dll
Microsoft.Practices.Unity.Interception.Configuration.pdb
Microsoft.Practices.Unity.Interception.dll
Microsoft.Practices.Unity.Interception.pdb
Microsoft.Practices.Unity.pdb
Service
Web
Common Service Location
Microsoft.Practices.ServiceLocation.dll
Composite Application Library
ar
System.Windows.Controls.resources.dll
bg
System.Windows.Controls.resources.dll
ca
System.Windows.Controls.resources.dll
cs
System.Windows.Controls.resources.dll
da
System.Windows.Controls.resources.dll
de
System.Windows.Controls.resources.dll
el
System.Windows.Controls.resources.dll
es
System.Windows.Controls.resources.dll
et
System.Windows.Controls.resources.dll
eu
System.Windows.Controls.resources.dll
fi
System.Windows.Controls.resources.dll
fr
System.Windows.Controls.resources.dll
he
System.Windows.Controls.resources.dll
hr
System.Windows.Controls.resources.dll
hu
System.Windows.Controls.resources.dll
id
System.Windows.Controls.resources.dll
it
System.Windows.Controls.resources.dll
ja
System.Windows.Controls.resources.dll
ko
System.Windows.Controls.resources.dll
lt
System.Windows.Controls.resources.dll
lv
System.Windows.Controls.resources.dll
Microsoft.Practices.Composite.dll
Microsoft.Practices.Composite.pdb
Microsoft.Practices.Composite.Presentation.dll
Microsoft.Practices.Composite.Presentation.pdb
Microsoft.Practices.Composite.UnityExtensions.dll
Microsoft.Practices.Composite.UnityExtensions.pdb
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.Silverlight.dll
ms
System.Windows.Controls.resources.dll
nl
System.Windows.Controls.resources.dll
no
System.Windows.Controls.resources.dll
pl
System.Windows.Controls.resources.dll
Properties
pt
System.Windows.Controls.resources.dll
pt-BR
System.Windows.Controls.resources.dll
ro
System.Windows.Controls.resources.dll
ru
System.Windows.Controls.resources.dll
sk
System.Windows.Controls.resources.dll
sl
System.Windows.Controls.resources.dll
sr-Cyrl-CS
System.Windows.Controls.resources.dll
sr-Latn-CS
System.Windows.Controls.resources.dll
sv
System.Windows.Controls.resources.dll
System.Windows.Controls.dll
th
System.Windows.Controls.resources.dll
tr
System.Windows.Controls.resources.dll
uk
System.Windows.Controls.resources.dll
vi
System.Windows.Controls.resources.dll
zh-Hans
System.Windows.Controls.resources.dll
zh-Hant
System.Windows.Controls.resources.dll
Silverlight Toolkit
System.Windows.Controls.DataVisualization.Toolkit.dll
System.Windows.Controls.Toolkit.dll
System.Windows.Controls.Toolkit.Internals.dll
Unit Test Framework
Microsoft.Silverlight.Testing.dll
Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
Unity
Microsoft.Practices.Unity.Silverlight.dll
Web
Infrastructure
BlueMarble.Genesis.Infrastructure
Background
Default
Behaviors
BlueMarble.Genesis.Infrastructure.csproj.user
Converters
Helpers
Interfaces
Properties
Resources
Modules
BlueMarble.Genesis.View
BlueMarble.Genesis.View.csproj.user
Properties
Shell
BlueMarble.Genesis.Shell
BlueMarble.Genesis.Shell.csproj.user
Bootstrapper
Properties
Resources
|
//===================================================================================
// Microsoft patterns & practices
// Composite Application Guidance for Windows Presentation Foundation and Silverlight
//===================================================================================
// Copyright (c) Microsoft Corporation. All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===================================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious. No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===================================================================================
using System.Globalization;
using System.Windows.Data;
namespace BlueMarble.Genesis.Infrastructure.Converters
{
public class CurrencyConverter : IValueConverter
{
#region IValueConverter Members
public object Convert(object value, System.Type targetType, object parameter, CultureInfo culture)
{
var result = value as decimal?;
if (result == null)
result = 0;
return System.String.Format(CultureInfo.CurrentUICulture, "{0:C}", result.Value);
}
public object ConvertBack(object value, System.Type targetType, object parameter, CultureInfo culture)
{
throw new System.NotImplementedException();
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.