Click here to Skip to main content
13,595,908 members
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

248.2K views
2.4K downloads
476 bookmarked
Posted 10 Jul 2007
Licenced CPOL

Automated Undo/Redo library based on C# Generics in .NET framework

, 21 Mar 2012
A reusable library that can equip any action in your application with the undo/redo feature.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{B4290AB4-7C88-4828-990B-17FF42B49A59}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>UndoRedoDemo</RootNamespace>
    <AssemblyName>UndoRedoDemo</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Data\City.cs" />
    <Compile Include="Data\CitiesList.cs" />
    <Compile Include="Views\ChartControl.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="Views\ChartControl.Designer.cs">
      <DependentUpon>ChartControl.cs</DependentUpon>
    </Compile>
    <Compile Include="DemoForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="DemoForm.Designer.cs">
      <DependentUpon>DemoForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="DemoForm.resx">
      <DependentUpon>DemoForm.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="Views\EditCityControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>EditCityControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Views\UndoRedoControl.resx">
      <SubType>Designer</SubType>
      <DependentUpon>UndoRedoControl.cs</DependentUpon>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="Properties\DataSources\Box.datasource" />
    <None Include="Properties\DataSources\BoxesList.datasource" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    </Compile>
    <Compile Include="Views\EditCityControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Views\EditCityControl.Designer.cs">
      <DependentUpon>EditCityControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Views\UndoRedoControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Views\UndoRedoControl.Designer.cs">
      <DependentUpon>UndoRedoControl.cs</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\UndoRedoFramework\UndoRedoFramework.csproj">
      <Project>{641578C7-4522-4158-867A-30AECBB3EE73}</Project>
      <Name>UndoRedoFramework</Name>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sergey Arhipenko
Software Developer (Senior)
Australia Australia
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180621.3 | Last Updated 21 Mar 2012
Article Copyright 2007 by Sergey Arhipenko
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid