This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var div = new Div("indent") | |
.Add(new CheckBox("checkbox hascc", "chkHasCC").Value("true")) | |
if (isEdit) | |
{ | |
div.First<CheckBox>().Checked(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var header = new H3("line", "HON Customer Information") | |
.Add(new Br()); | |
var div = new Div("indent") | |
.Add(new CheckBox("checkbox hascc", "chkHasCC")) | |
.Add(new P("", "Please select this box if your company has a HON assigned customer code.") | |
.Add(new Span("", " If you need assistance, please ") | |
.Add(new A("externalLink", "Contact Us", "HREF_MISSING", "_blank")) | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VENDO | |
Xbox 360 Pro - Modelo Falcon | |
Acessórios: | |
1 Cabo A/C | |
1 Cabo Vídeo Componente | |
1 Cabo HDMI | |
1 HS 60gb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NHibernateHelper | |
{ | |
private static string _databaseConnectionString; | |
private static string DatabaseConnectionString | |
{ | |
get | |
{ | |
if (String.IsNullOrEmpty(_databaseConnectionString)) | |
{ | |
_databaseConnectionString = ConfigurationUtil.GetDeploymentValue("ConnectionStringProfile"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Factory de controllers utilizada no lugar da padrão | |
/// para usar o Unity pra resolver as dependências dos objetos | |
/// </summary> | |
public class UnityControllerFactory : DefaultControllerFactory | |
{ | |
readonly IUnityContainer _container; | |
public UnityControllerFactory(IUnityContainer container) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void CanSaveAndDeleteAFunctionButNotTheApplication() | |
{ | |
//Arrange | |
Application myApp = new Application() | |
{ | |
Description = "MyApp", | |
KeyName = "MyApp", | |
Name = "My App", | |
Url = "http://www.myapp.com" |
NewerOlder