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
LIST[117]: Problem Definition (268435573) | |
| |_Show: Level 1 (268435590) | |
| | |_Element: Please Specify (268435960) | |
| | | |_Show: Level 2 (268435591) | |
| | | | |_Element: Please Specify (268435961) | |
| | | | | |_Show: Level 3 (268435592) | |
| | | | | | |_Element: Please Specify (268435962) | |
| | |_Element: PBX/Key System (268436007) | |
| | | |_Show: Level 2 (268435601) | |
| | | | |_Element: Hardware (268436011) |
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 Queue : DomainEntity | |
{ | |
private readonly IList<User> _members = new List<User>(); | |
private readonly IList<User> _supervisors = new List<User>(); | |
public IEnumerable<User> GetMembers() | |
{ | |
return _members.AsEnumerable(); | |
} |
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 DovetailHtmlConventions : HtmlConventionRegistry | |
{ | |
public DovetailHtmlConventions() | |
{ | |
validationAttributes(); | |
numbers(); | |
dates(); | |
Profile("edit", x => | |
{ |
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
// This is an example of one of the types of objects | |
// that'll get put into the "items" property of the | |
// GridResultsViewModel DTO above | |
// Each "item" is a row. That is, each EntityDTO is a | |
// row in the grid | |
// the "cells" property is what gets bound to the | |
// cells in each row |
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 BinCountDTO | |
{ | |
public string BinName { get; set; } | |
public int ItemCount { get; set; } | |
} | |
public class ConsoleDTO | |
{ |
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
// In a StructureMap registry somewhere (for us, it's in CoreRegistry.cs) | |
For<IObjectConverter>().Use<DovetailObjectConverter>(); | |
// In another file, we set up some of our conversions and conversion families | |
public class DovetailObjectConverter : ServiceEnabledObjectConverter | |
{ | |
public DovetailObjectConverter(IServiceLocator locator) | |
: base(locator) | |
{ |
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 EntityModelBinder : IModelBinder | |
{ | |
private static readonly TypeConverter _converter = TypeDescriptor.GetConverter(typeof (Guid)); | |
public bool Matches(Type type) | |
{ | |
return type.CanBeCastTo<DomainEntity>(); | |
} |
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
This is an example given to us from Duquesne University Economics Professor Antony Davies: | |
QUOTE: | |
If the Federal government were scaled down to the size of the average US household, here’s what its finances would look like: | |
* The Federal government would earn $50,000 a year in tax revenue (the same as the average US household). | |
* It would be $325,000 in debt. |
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
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
using StructureMap; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
setlocal | |
SET INSTANCE_NAME=HRRuss | |
CD c:\dovetailcrm\%INSTANCE_NAME% | |
pushd services\DovetailCRM.EmailEngine.Service | |
DovetailCRM.EmailEngine.Service.exe /install |
OlderNewer