Click here to Skip to main content
15,886,071 members
Articles / Programming Languages / C#

Dynamically Generated User Defined Interfaces (Part 1)

Rate me:
Please Sign up or sign in to vote.
4.35/5 (11 votes)
26 Nov 2008CPOL6 min read 61.1K   802   109  
An introduction to how we solved the problem of allowing users to define both data structures and user interfaces to edit this data.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{B39537EF-B8FB-4090-9858-F7D004A5F74D}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>MachineExample.UI</RootNamespace>
    <AssemblyName>MachineExample.UI</AssemblyName>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
  </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="Habanero.Base">
      <HintPath>..\lib\Habanero.Base.dll</HintPath>
    </Reference>
    <Reference Include="Habanero.BO">
      <HintPath>..\lib\Habanero.BO.dll</HintPath>
    </Reference>
    <Reference Include="Habanero.UI.Base">
      <HintPath>..\lib\Habanero.UI.Base.dll</HintPath>
    </Reference>
    <Reference Include="Habanero.UI.Win">
      <HintPath>..\lib\Habanero.UI.Win.dll</HintPath>
    </Reference>
    <Reference Include="Habanero.Util">
      <HintPath>..\lib\Habanero.Util.dll</HintPath>
    </Reference>
    <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="MachineControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="MachinePropertiesControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="MachineTypeControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <ProjectReference Include="..\MachineExample.BO\MachineExample.BO.csproj">
      <Project>{2B88A601-7E18-453E-A9EB-26D1352C558B}</Project>
      <Name>MachineExample.BO</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>
  -->
  <!-- NB: These build events MUST be after the above project import  -->
  <PropertyGroup>
    <PostBuildEvent />
    <PreBuildEvent />
  </PropertyGroup>
</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)


Written By
Software Developer Chillisoft Solution Services
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions