Archive for the Category dotnet

 
 

Assembly editor for Reflector

Reflexil is an assembly editor and runs as a plug-in for Lutz Roeder’s Reflector. Reflexil is using Mono.Cecil, which is a strategic library for the Mono project.

Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports ‘on the fly’ C# code injection.

Reflexil is an open source project released under the GPL license.

Reflexil requires Microsoft .NET 2.0

 

Download last version of Reflexil

[Via Larkware News]

Technorati Tags: reflector, IL, dotnet, assembly

NxBRE -The open-source rule engine for the .NET

NxBRE is the open-source rule engine for the .NET platform and a lightweight Business Rules Engine that supports two different approaches:

  • The Inference Engine, which is a forward-chaining (data driven) deduction engine and that supports concepts like Facts, Queries and Implications and like Rule Priority, Mutual Exclusion and Precondition (as found in many commercial engines). It is designed in a way that encourages the separation of roles between the expert who designs the business rules and the programmer who binds them to the business objects.
  • The Flow Engine, which uses XML as a way to control process flow for an application in an external entity. It is basically a wrapper on C#, as it offers all its flow control commands (if/then/else, while, foreach), plus a context of business objects and results. It is a port of JxBRE to .NET’s C#.

NxBRE is released under LGPL license in order to allow users to legally build commercial solutions that embed NxBRE.

Download NxBRE

Technorati tags: , ,

CaptainHook plugin framework

CaptainHook is a simple plugin framework for writing Subversion hooks using .NET.The goal of the CaptainHook project is to provide a strongly typed interface and a few useful service for accessing SVN.To setup CaptainHook, simply unzip the executable file and its related assemblies into the hooks folder on your SVN server.

Check out this post to get more information about CaptainHook

Download CaptainHook

Technorati tags: tools, subversion, svn, dotnet

WPF on steroids - Outlook clone

Two engineer from the Switzerland branch of Microsoft Ronnie Saurenmann and  Ruihua Jin developed an Outlook clone using WPF, XAML, Expression Blend etc.
The online demonstration(XPAB) is available at this url. Check out the 90 pages tutorial about how you can develop an application similar to MS Outlook(be sure to download the project files).

Validating properties in a PropertyGrid control

The easiest way to validate a certain property is using the PropertyValueChanged event.The code bellow shows how to limit the valid range of Age property to be 1-150

using System.Windows.Forms; 
namespace WindowsApplication1 
{ 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            InitializeComponent(); 
            //init person object  
            Person person = new Person(); 
            person.FirstName = "George"; 
            person.Age = 33; 
            propertyGrid.SelectedObject = person; 
            propertyGrid.PropertyValueChanged+=  new PropertyValueChangedEventHandler( propertyGrid_PropertyValueChanged ); 
        } 
 
        private void propertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) 
        { 
            if (e.ChangedItem.Label == "Age" && !IsAgeValid((int)e.ChangedItem.Value) ) 
            { 
                // the entered age value is wrong - show error message 
                e.ChangedItem.PropertyDescriptor.SetValue( propertyGrid.SelectedObject, e.OldValue); 
                MessageBox.Show("Wrong age", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); 
            } 
        } 
 
        ///<summary>
        /// Determines whether age is valid 
        /// </summary>  
        /// <param name="age">The age.</param>  
        /// <returns>  
        /// <c>true</c> if is age valid ; otherwise, <c>false</c>. 
        /// </returns>  
        private static bool IsAgeValid( int age ) 
        { 
            return ((age > 0) && (age < 150)); 
        } 
    } 
}

 

Technorati tags: propertygrid, dotnet, programming


Page 2 of 1412345...10...Last »