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.Windows.Navigation; | |
using Microsoft.Practices.Prism.ViewModel; | |
namespace RememberIt.WP7.App.ViewModels | |
{ | |
public abstract class ViewModelBase : NotificationObject | |
{ | |
protected bool RemoveBackEntry { get; set; } | |
public NavigationService NavigationService { get; set; } |
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
CREATE TABLE [dbo].[Audit] | |
( | |
[Id] INT NOT NULL IDENTITY, | |
[User] NVARCHAR( 100 ) NOT NULL, | |
[Trail] NVARCHAR( MAX ) NOT NULL, | |
[Created] DATETIME NOT NULL | |
) | |
ALTER TABLE [dbo].[Audit] | |
ADD CONSTRAINT [PK_Audit_Id] |
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 processes = Process.GetProcessesByName( "MyProcess" ); |
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.Collections.Generic; | |
using System.ServiceModel; | |
using Wnn.Service.Contract.DataContracts; | |
namespace Wnn.Service.Contract.ServiceContracts | |
{ | |
[ServiceContract] | |
public interface IBlogService | |
{ | |
[OperationContract] |
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.Collections.Generic; | |
using System.Linq; | |
using System.ServiceModel; | |
using Wnn.Business.Repositories; | |
using Wnn.Service.Contract.DataContracts; | |
using Wnn.Service.Contract.ServiceContracts; | |
namespace Wnn.Service | |
{ | |
[ServiceBehavior( InstanceContextMode = InstanceContextMode.PerCall )] |
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.ServiceModel.Configuration; | |
namespace Wnn.Service.Host | |
{ | |
public class NHibernateBehaviorExtensionElement : BehaviorExtensionElement | |
{ | |
protected override object CreateBehavior() | |
{ | |
return new NHibernateServiceBehavior(); |
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.Drawing; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
public class ScreenShot | |
{ | |
[ComImport] | |
[InterfaceType( ComInterfaceType.InterfaceIsIUnknown )] | |
[Guid( "0000010d-0000-0000-C000-000000000046" )] |
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
<use file="MyPartialView" /> |
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
protected void Application_Error( object sender, EventArgs e ) | |
{ | |
var exception = Server.GetLastError(); | |
Response.Clear(); | |
var httpException = exception as HttpException; | |
var routeData = new RouteData(); | |
routeData.Values.Add( "controller", "Error" ); |
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
[DeploymentItem( @"..\References\NHibernate\NHibernate.ByteCode.LinFu.dll" )] |
OlderNewer