Tr3v

Stories submitted by Tr3v

Code Contract framework(tr3v.net)

submitted by Tr3vTr3v(376) 2 years, 8 months ago

When we write code we often have to validate the parameters passed into our methods to make sure that they are appropriate, this usually leaves us with repettitive and ugly code at the start of each method. How nice would it be if we could replace that with a more readable & more concice structure so that we can simply write: Require.That(fileInfo, IsNot.Null, Is.ExistingFileSystemObject) read more...

add a comment |category: |Views: 21

tags: another

8 ways to be a better programmer in 6 minutes.(secretgeek.net)

submitted by Tr3vTr3v(376) 3 years ago

It's always nice to read a post where you already follow some of the suggestions but find the odd useful nugget, I dislike seeing literals in my source code and the hint about making them stand out with nasty color coding is something I'll be giving a go! read more...

5 comments |category: |Views: 1304

tags: another

EventHandler Extension Method(kohari.org)

submitted by Tr3vTr3v(376) 3 years ago

Useful extension method for raising events read more...

add a comment |category: |Views: 17

tags: another

StyleCop 4.3 Is Released(blogs.msdn.com)

submitted by Tr3vTr3v(376) 3 years, 5 months ago

The awaited StyleCop 4.3 update is now available. This update includes: * Various bugfixes, including fixes for VS integration issues * Rules documentation is included and integrated into VS "Show Error Help" * New rules (more detail below) * Branding change from Source Analysis to StyleCop read more...

add a comment |category: |Views: 14

tags: another

Using anonymous types to shape data(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 6 months ago

Lets say you are writing a piece of software for a call center to use and you need to display values from multiple classes in your object model in a single DataGridView... The problem is that you cannot bind a DataGridView column to a second-level property without writing TypeDescriptionProvider and CustomTypeDescriptor for each class that we want to use. read more...

add a comment |category: |Views: 12

tags: another

DataGridView Custom Column Headings(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 6 months ago

A quick tutorial covering the method I recently used on a project to control and generate the column headings for a DataGridView and modify the column headings to contain "full text" values. read more...

add a comment |category: |Views: 269

tags: another

Creating a Data Access Layer with Linq to SQL, part 2(krisvandermotten.wordpress.com)

submitted by Tr3vTr3v(376) 3 years, 7 months ago

Last time, we looked at how Linq To SQL might impact how we think about what a Data Access Layer (DAL) is, based on the dependencies between assemblies. This time, we’ll take a different approach: let’s look at typical Linq to SQL code, and try to decide where to put it. read more...

add a comment |category: |Views: 29

tags: another

Creating a Data Access Layer with Linq to SQL, part 1(krisvandermotten.wordpress.com)

submitted by Tr3vTr3v(376) 3 years, 7 months ago

There is no doubt that Linq to SQL will have an enormous impact on the way we write data access layers. I wouldn’t be surprised to find out that the impact is so profound, that we might even have to reconsider the very nature of a data access layer. In fact, what is a data access layer (DAL) anyway? read more...

add a comment |category: |Views: 60

tags: another

Share Resources Between Projects(visualstudiomagazine.com)

submitted by Tr3vTr3v(376) 3 years, 8 months ago

Learn how to share resources among several projects across project boundaries in Visual Studio 2005 and VS 2008. read more...

add a comment |category: |Views: 43

tags: another

Windows Form Printing(websoftconsultants.co.uk)

submitted by Tr3vTr3v(376) 3 years, 8 months ago

Windows forms are quick and easy to create in any .NET language. By choosing the right project template, a developer can be dragging controls onto a Windows form, and have a professional looking user interface constructed in a matter of minutes. Printing the form, however, is a different matter. The programmer can leave the user to press Print Screen, and then paste the results into MS Paint, or a similar application. However, this is messy, and un-professional. Consider the case where the form contains multiple tabs, or where data in a list box cannot all be displayed at once. Using this approach, the user will be involved with clicking controls, an capturing screen prints for quite a while. Alternatively, the .NET development environment provides several controls to "help" with printing. Using these controls, the developer may listen for events, and respond by rendering output using GDI+. This approach can result in very professional output, but the drawback is the amount of time it takes to develop printing support on a form-by-form basis. When compared to the ease of dragging controls onto the form for the initial user interface, it appears cumbersome, costly, time consuming, and can be prone to bugs. read more...

add a comment |category: |Views: 22

tags: another

Adding HTML Tags to an asp.net page(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

A quick look at types of HTML tags and how to add them programmatically to an asp.net page. read more...

add a comment |category: |Views: 11

tags: another

C# RSS 2.0 feed builder(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

Do you want to build RSS 2.0 feeds? read more...

add a comment |category: |Views: 32

tags: another

Single Instance .net application(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

How can we only allow one copy of an application to run at any time? read more...

add a comment |category: |Views: 16

tags: another

C# html table builder(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

The purpose of this class is to simplify the generation of basic HTML tables. read more...

7 comments |category: |Views: 739

tags: another

DotNetKicks.com asp.net integration(tr3v.net)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

This class adds either a DotNetKicks image with your "Kick" count or a hyperlink to DotNetKicks.com for the specified url. These can be combined to display the "Kick It" icon as a link to DotNetKicks.com read more...

add a comment |category: |Views: 1

tags: another

DataGridView Export(tr3v.net:80)

submitted by Tr3vTr3v(376) 3 years, 10 months ago

Add the ability to export a DataGridView control's contents to a CSV, HTML or XML file. read more...

add a comment |category: |Views: 58

tags: another