1. David Barker
  2. C# Arrows

Commits

David Barker  committed 66228cf

Wrote more dissertation bits and started on the name binding case study in WPF

  • Participants
  • Parent commits c5f6759
  • Branches master

Comments (0)

Files changed (45)

File ArrowDataBinding.sln

View file
 		Performance1.psess = Performance1.psess
 	EndProjectSection
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CaseStudyNameSplitter-WPF", "CaseStudyNameSplitter-WPF\CaseStudyNameSplitter-WPF.csproj", "{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
 		{EC6BF130-268C-4793-AA21-B9904F6C5B1A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{EC6BF130-268C-4793-AA21-B9904F6C5B1A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
 		{EC6BF130-268C-4793-AA21-B9904F6C5B1A}.Release|x86.ActiveCfg = Release|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Release|Any CPU.Build.0 = Release|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}.Release|x86.ActiveCfg = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

File ArrowDataBinding.v11.suo

Binary file modified.

File ArrowDataBinding/WPF/ArrowValueConverter.cs

View file
 {
     public class ArrowValueConverter : IValueConverter
     {
-        // TODO: When creating, this arrow will need to be assigned to in the XAML
         public IArrow arrow { get; set; }
 
         public ArrowValueConverter(IArrow arrow)

File ArrowDataBinding/WPF/ExtensionMethods.cs

View file
 {
     public static class ExtensionMethods
     {
-        public static ArrowValueConverter GetValueConverter(IArrow arrow)
+        public static ArrowValueConverter GetValueConverter(this IArrow arrow)
         {
             return new ArrowValueConverter(arrow);
         }

File CaseStudyNameSplitter-WPF/App.config

View file
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+    </startup>
+</configuration>

File CaseStudyNameSplitter-WPF/App.xaml

View file
+<Application x:Class="CaseStudyNameSplitter_WPF.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             StartupUri="MainWindow.xaml">
+    <Application.Resources>
+         
+    </Application.Resources>
+</Application>

File CaseStudyNameSplitter-WPF/App.xaml.cs

View file
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace CaseStudyNameSplitter_WPF
+{
+    /// <summary>
+    /// Interaction logic for App.xaml
+    /// </summary>
+    public partial class App : Application
+    {
+    }
+}

File CaseStudyNameSplitter-WPF/CaseStudyNameSplitter-WPF.csproj

View file
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{11B02F7C-E12E-4EF2-BF7F-CBF43A6BD0CE}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>CaseStudyNameSplitter_WPF</RootNamespace>
+    <AssemblyName>CaseStudyNameSplitter-WPF</AssemblyName>
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <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' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <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.Xml" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="System.Xaml">
+      <RequiredTargetFramework>4.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="WindowsBase" />
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </ApplicationDefinition>
+    <Page Include="MainWindow.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <AppDesigner Include="Properties\" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\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>

File CaseStudyNameSplitter-WPF/MainWindow.xaml

View file
+<Window x:Class="CaseStudyNameSplitter_WPF.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        Title="MainWindow" Height="145.936" Width="152.739">
+    <Grid x:Name="LayoutRoot">
+        <TextBox x:Name="ForenameBox" HorizontalAlignment="Left" Height="23" Margin="10,10,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
+        <TextBox x:Name="SurnameBox" HorizontalAlignment="Left" Height="23" Margin="10,38,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
+        <Button x:Name="NameChangeButton" Content="Change name" HorizontalAlignment="Center" Margin="0,84,0,0" VerticalAlignment="Top" Width="95"/>
+
+
+
+    </Grid>
+</Window>

File CaseStudyNameSplitter-WPF/MainWindow.xaml.cs

View file
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.ComponentModel;
+using System.Globalization;
+
+namespace CaseStudyNameSplitter_WPF
+{
+    public class NameData : INotifyPropertyChanged
+    {
+        public event PropertyChangedEventHandler PropertyChanged;
+
+        private String fullName;
+        public String Name
+        {
+            get
+            {
+                return fullName;
+            }
+            set
+            {
+                fullName = value;
+                RaisePropertyChanged("Name");
+            }
+        }
+
+        public NameData(string name)
+        {
+            Name = name;
+        }
+
+        public void RaisePropertyChanged(string name)
+        {
+            if (PropertyChanged != null)
+            {
+                PropertyChanged(this, new PropertyChangedEventArgs(name));
+            }
+        }
+    }
+
+    public class ForenameValueConverter : IValueConverter
+    {
+        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            return ((string)value).Split(' ')[0];
+        }
+
+        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            throw new NotImplementedException();
+        }
+    }
+
+    public class SurnameValueConverter : IValueConverter
+    {
+        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            return ((string)value).Split(' ')[1];
+        }
+
+        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+        {
+            throw new NotImplementedException();
+        }
+    }
+
+    public partial class MainWindow : Window
+    {
+        private NameData name;
+
+        public MainWindow()
+        {
+            InitializeComponent();
+            InitialisePerson();
+            InitialiseBinding();
+        }
+
+        public void InitialisePerson()
+        {
+            name = new NameData("Bob Bobertson");
+        }
+
+        public void InitialiseBinding()
+        {
+            Binding bind = new Binding();
+            bind.Source = name;
+            bind.Path = new PropertyPath("Name");
+            bind.Converter = new SurnameValueConverter();
+            SurnameBox.SetBinding(TextBox.TextProperty, bind);
+
+            Binding bind1 = new Binding();
+            bind1.Source = name;
+            bind1.Path = new PropertyPath("Name");
+            bind1.Converter = new ForenameValueConverter();
+            ForenameBox.SetBinding(TextBox.TextProperty, bind1);
+        }
+    }
+}

File CaseStudyNameSplitter-WPF/Properties/AssemblyInfo.cs

View file
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("CaseStudyNameSplitter-WPF")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("CaseStudyNameSplitter-WPF")]
+[assembly: AssemblyCopyright("Copyright ©  2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set 
+//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
+//inside a <PropertyGroup>.  For example, if you are using US english
+//in your source files, set the <UICulture> to en-US.  Then uncomment
+//the NeutralResourceLanguage attribute below.  Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+    //(used if a resource is not found in the page, 
+    // or application resource dictionaries)
+    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+    //(used if a resource is not found in the page, 
+    // app, or any theme specific resource dictionaries)
+)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

File CaseStudyNameSplitter-WPF/Properties/Resources.Designer.cs

View file
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CaseStudyNameSplitter_WPF.Properties
+{
+
+
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CaseStudyNameSplitter_WPF.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

File CaseStudyNameSplitter-WPF/Properties/Resources.resx

View file
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

File CaseStudyNameSplitter-WPF/Properties/Settings.Designer.cs

View file
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace CaseStudyNameSplitter_WPF.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

File CaseStudyNameSplitter-WPF/Properties/Settings.settings

View file
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

File CaseStudyNameSplitter-WPF/bin/Debug/CaseStudyNameSplitter-WPF.exe

Binary file added.

File CaseStudyNameSplitter-WPF/bin/Debug/CaseStudyNameSplitter-WPF.exe.config

View file
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+    </startup>
+</configuration>

File CaseStudyNameSplitter-WPF/bin/Debug/CaseStudyNameSplitter-WPF.pdb

Binary file added.

File CaseStudyNameSplitter-WPF/bin/Debug/CaseStudyNameSplitter-WPF.vshost.exe

Binary file added.

File CaseStudyNameSplitter-WPF/bin/Debug/CaseStudyNameSplitter-WPF.vshost.exe.config

View file
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
+    </startup>
+</configuration>

File CaseStudyNameSplitter-WPF/obj/Debug/App.g.cs

View file
+#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E54AC5C220EA2CDC07C56C5EF4354C61"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace CaseStudyNameSplitter_WPF {
+    
+    
+    /// <summary>
+    /// App
+    /// </summary>
+    public partial class App : System.Windows.Application {
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            
+            #line 4 "..\..\App.xaml"
+            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+            
+            #line default
+            #line hidden
+        }
+        
+        /// <summary>
+        /// Application Entry Point.
+        /// </summary>
+        [System.STAThreadAttribute()]
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public static void Main() {
+            CaseStudyNameSplitter_WPF.App app = new CaseStudyNameSplitter_WPF.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

File CaseStudyNameSplitter-WPF/obj/Debug/App.g.i.cs

View file
+#pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E54AC5C220EA2CDC07C56C5EF4354C61"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace CaseStudyNameSplitter_WPF {
+    
+    
+    /// <summary>
+    /// App
+    /// </summary>
+    public partial class App : System.Windows.Application {
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            
+            #line 4 "..\..\App.xaml"
+            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+            
+            #line default
+            #line hidden
+        }
+        
+        /// <summary>
+        /// Application Entry Point.
+        /// </summary>
+        [System.STAThreadAttribute()]
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public static void Main() {
+            CaseStudyNameSplitter_WPF.App app = new CaseStudyNameSplitter_WPF.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.csproj.FileListAbsolute.txt

View file
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\bin\Debug\CaseStudyNameSplitter-WPF.exe.config
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\bin\Debug\CaseStudyNameSplitter-WPF.exe
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\bin\Debug\CaseStudyNameSplitter-WPF.pdb
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\MainWindow.baml
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\MainWindow.g.cs
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\App.g.cs
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF_MarkupCompile.cache
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF.g.resources
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter_WPF.Properties.Resources.resources
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF.csproj.GenerateResource.Cache
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF.exe
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF.pdb
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\CaseStudyNameSplitter-WPF.csprojResolveAssemblyReference.cache

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.csproj.GenerateResource.Cache

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.csprojResolveAssemblyReference.cache

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.exe

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.g.resources

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF.pdb

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF_MarkupCompile.cache

View file
+CaseStudyNameSplitter-WPF
+
+
+winexe
+C#
+.cs
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\
+CaseStudyNameSplitter_WPF
+none
+false
+DEBUG;TRACE
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\App.xaml
+11151548125
+
+5-2017746502
+12-1401562060
+MainWindow.xaml;
+
+False
+

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter-WPF_MarkupCompile.i.cache

View file
+CaseStudyNameSplitter-WPF
+
+
+winexe
+C#
+.cs
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\obj\Debug\
+CaseStudyNameSplitter_WPF
+none
+false
+DEBUG;TRACE
+C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\CaseStudyNameSplitter-WPF\App.xaml
+11151548125
+
+9-1811408504
+12-1401562060
+MainWindow.xaml;
+
+False
+

File CaseStudyNameSplitter-WPF/obj/Debug/CaseStudyNameSplitter_WPF.Properties.Resources.resources

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/MainWindow.baml

Binary file added.

File CaseStudyNameSplitter-WPF/obj/Debug/MainWindow.g.cs

View file
+#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2DC00EC558BE81CD65CF76B05B7F82F2"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace CaseStudyNameSplitter_WPF {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 5 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid LayoutRoot;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 6 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox ForenameBox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 7 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox SurnameBox;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/CaseStudyNameSplitter-WPF;component/mainwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 2:
+            this.ForenameBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.SurnameBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

File CaseStudyNameSplitter-WPF/obj/Debug/MainWindow.g.i.cs

View file
+#pragma checksum "..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "80858EF508DA8CE9319EF3EF32EE64CE"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.18034
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace CaseStudyNameSplitter_WPF {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 5 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid LayoutRoot;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 6 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox ForenameBox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 7 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox SurnameBox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 8 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button NameChangeButton;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/CaseStudyNameSplitter-WPF;component/mainwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 2:
+            this.ForenameBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.SurnameBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            this.NameChangeButton = ((System.Windows.Controls.Button)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

File CaseStudyNameSplitter-WPF/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

Empty file added.

File CaseStudyNameSplitter-WPF/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

Empty file added.

File CaseStudyNameSplitter-WPF/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

Empty file added.

File Dissertation/Dissertation.aux

View file
 \newlabel{sec:simple_arrow_challenges}{{3.2.2}{12}}
 \@writefile{toc}{\contentsline {subsection}{\numberline {3.2.3}Invertible arrows}{14}}
 \@writefile{toc}{\contentsline {subsection}{\numberline {3.2.4}List arrows}{14}}
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.5}Choice arrows}{16}}
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.6}Further utility arrows}{16}}
-\newlabel{sec:further_utility_arrows}{{3.2.6}{16}}
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.7}Feedback in arrows}{16}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.5}Further utility arrows}{16}}
+\newlabel{sec:further_utility_arrows}{{3.2.5}{16}}
 \@writefile{toc}{\contentsline {section}{\numberline {3.3}Data binding}{16}}
 \@writefile{toc}{\contentsline {subsection}{\numberline {3.3.1}Overall architecture}{16}}
 \@writefile{lof}{\contentsline {figure}{\numberline {3.5}{\ignorespaces Overview of the binding method}}{17}}
 \newlabel{fig:binding_framework}{{3.5}{17}}
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.3.2}Creating bindable sources and destinations}{18}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {3.3.2}Creating bindable sources and destinations}{17}}
 \newlabel{lst:bindable_source_class}{{3.1}{18}}
 \@writefile{lol}{\contentsline {lstlisting}{\numberline {3.1}Creating a bindable source class}{18}}
 \@writefile{toc}{\contentsline {subsection}{\numberline {3.3.3}Creating bindings}{19}}
-\@writefile{toc}{\contentsline {subsubsection}{Syntax and usage}{20}}
+\@writefile{toc}{\contentsline {subsubsection}{Syntax and usage}{19}}
 \newlabel{lst:creating_simple_binding}{{3.2}{20}}
 \@writefile{lol}{\contentsline {lstlisting}{\numberline {3.2}Creating a binding between two properties}{20}}
 \@writefile{toc}{\contentsline {subsubsection}{Two-way binding}{20}}
 \@writefile{toc}{\contentsline {subsubsection}{Problems encountered}{23}}
 \@writefile{toc}{\contentsline {paragraph}{Type safety}{23}}
 \@writefile{toc}{\contentsline {paragraph}{Binding to lists}{24}}
+\@writefile{lol}{\contentsline {lstlisting}{\numberline {3.4}Explicitly reassigning a list to trigger a binding update}{24}}
 \@writefile{toc}{\contentsline {subsection}{\numberline {3.3.4}Integration work with WPF}{24}}
 \@writefile{toc}{\contentsline {chapter}{\numberline {4}Evaluation}{25}}
 \@writefile{lof}{\addvspace {10\p@ }}
 \@writefile{toc}{\contentsline {subsection}{\numberline {4.3.1}Arrow performance}{27}}
 \@writefile{toc}{\contentsline {subsubsection}{Measuring technique}{28}}
 \@writefile{toc}{\contentsline {subsubsection}{Simple function results}{28}}
-\@writefile{lof}{\contentsline {figure}{\numberline {4.1}{\ignorespaces Performance of arrows, Funcs and normal functions in implementing simple functionality}}{29}}
-\newlabel{fig:simple_function_performance}{{4.1}{29}}
 \@writefile{toc}{\contentsline {subsubsection}{List function results}{29}}
-\@writefile{lof}{\contentsline {figure}{\numberline {4.2}{\ignorespaces Performance of arrows, Linq queries and normal (loop-based) functions in implementing simple list functionality}}{30}}
-\newlabel{fig:list_function_performance}{{4.2}{30}}
+\@writefile{lof}{\contentsline {figure}{\numberline {4.1}{\ignorespaces Performance of arrows, Funcs and normal functions in implementing simple functionality}}{30}}
+\newlabel{fig:simple_function_performance}{{4.1}{30}}
 \@writefile{toc}{\contentsline {subsubsection}{Overhead due to arrow chaining}{30}}
 \newlabel{sec:arrow_chaining_overhead}{{4.3.1}{30}}
-\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.2}Binding performance}{30}}
-\@writefile{lof}{\contentsline {figure}{\numberline {4.3}{\ignorespaces Execution times of chains of identity functions}}{31}}
-\newlabel{fig:arrow_chaining_overhead}{{4.3}{31}}
+\@writefile{lof}{\contentsline {figure}{\numberline {4.2}{\ignorespaces Performance of arrows, Linq queries and normal (loop-based) functions in implementing simple list functionality}}{31}}
+\newlabel{fig:list_function_performance}{{4.2}{31}}
+\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.2}Binding performance}{31}}
+\@writefile{lof}{\contentsline {figure}{\numberline {4.3}{\ignorespaces Execution times of chains of identity functions}}{32}}
+\newlabel{fig:arrow_chaining_overhead}{{4.3}{32}}
 \@writefile{toc}{\contentsline {chapter}{\numberline {5}Conclusion}{33}}
 \@writefile{lof}{\addvspace {10\p@ }}
 \@writefile{lot}{\addvspace {10\p@ }}

File Dissertation/Dissertation.lof

View file
 \contentsline {figure}{\numberline {3.5}{\ignorespaces Overview of the binding method}}{17}
 \contentsline {figure}{\numberline {3.6}{\ignorespaces Marshalling a list of BindPoint sources to pass to an arrow and unmarshalling the result}}{23}
 \addvspace {10\p@ }
-\contentsline {figure}{\numberline {4.1}{\ignorespaces Performance of arrows, Funcs and normal functions in implementing simple functionality}}{29}
-\contentsline {figure}{\numberline {4.2}{\ignorespaces Performance of arrows, Linq queries and normal (loop-based) functions in implementing simple list functionality}}{30}
-\contentsline {figure}{\numberline {4.3}{\ignorespaces Execution times of chains of identity functions}}{31}
+\contentsline {figure}{\numberline {4.1}{\ignorespaces Performance of arrows, Funcs and normal functions in implementing simple functionality}}{30}
+\contentsline {figure}{\numberline {4.2}{\ignorespaces Performance of arrows, Linq queries and normal (loop-based) functions in implementing simple list functionality}}{31}
+\contentsline {figure}{\numberline {4.3}{\ignorespaces Execution times of chains of identity functions}}{32}
 \addvspace {10\p@ }
 \addvspace {10\p@ }

File Dissertation/Dissertation.log

View file
-This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2012.10.5)  3 APR 2013 13:40
+This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2012.10.5)  20 APR 2013 14:39
 entering extended mode
 **Dissertation.tex
 
 g/AndOperator.pdf>] [13] [14]
 LaTeX Font Info:    Font shape `OT1/cmtt/bx/n' in size <12> not available
 (Font)              Font shape `OT1/cmtt/m/n' tried instead on input line 342.
-LaTeX Font Info:    Try loading font information for OMS+cmr on input line 371.
-
-
-("C:\Program Files\MiKTeX 2.9\tex\latex\base\omscmr.fd"
-File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
-)
-LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <12> not available
-(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 371.
  [15] [16]
-<fig/BindingFramework.pdf, id=135, 568.86269pt x 261.31383pt>
+<fig/BindingFramework.pdf, id=134, 568.86269pt x 261.31383pt>
 File: fig/BindingFramework.pdf Graphic file (type pdf)
 
 <use fig/BindingFramework.pdf>
 (pdftex.def)             Requested size: 411.93877pt x 189.23434pt.
  [17 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
 sertation/fig/BindingFramework.pdf>] [18]
-[19] [20] [21] [22]
-<fig/ArgumentMarshalling.pdf, id=179, 511.24123pt x 147.77261pt>
+[19] [20]
+LaTeX Font Info:    Try loading font information for OMS+cmr on input line 465.
+
+ ("C:\Program Files\MiKTeX 2.9\tex\latex\base\omscmr.fd"
+File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
+)
+LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <12> not available
+(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 465.
+ [21]
+<fig/ArgumentMarshalling.pdf, id=176, 511.24123pt x 147.77261pt>
 File: fig/ArgumentMarshalling.pdf Graphic file (type pdf)
 
 <use fig/ArgumentMarshalling.pdf>
 Package pdftex.def Info: fig/ArgumentMarshalling.pdf used on input line 497.
 (pdftex.def)             Requested size: 411.93877pt x 119.07281pt.
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
-Missing character: There is no � in font cmr12!
- [23 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
-sertation/fig/ArgumentMarshalling.pdf>]
+ [22] [23 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBindin
+g/Dissertation/fig/ArgumentMarshalling.pdf>]
 [24]
 Chapter 4.
 [25
 
 
 ] [26] [27] [28]
-<fig/SimpleFunctionPerformanceChart.pdf, id=208, 496.44887pt x 258.75552pt>
+<fig/SimpleFunctionPerformanceChart.pdf, id=209, 496.44887pt x 258.75552pt>
 File: fig/SimpleFunctionPerformanceChart.pdf Graphic file (type pdf)
 
 <use fig/SimpleFunctionPerformanceChart.pdf>
 Package pdftex.def Info: fig/SimpleFunctionPerformanceChart.pdf used on input l
-ine 635.
+ine 643.
 (pdftex.def)             Requested size: 411.93877pt x 214.71175pt.
-
-<fig/ListFunctionPerformanceChart.pdf, id=209, 496.4172pt x 244.72725pt>
+ [29]
+<fig/ListFunctionPerformanceChart.pdf, id=213, 496.4172pt x 244.72725pt>
 File: fig/ListFunctionPerformanceChart.pdf Graphic file (type pdf)
 
 <use fig/ListFunctionPerformanceChart.pdf>
 Package pdftex.def Info: fig/ListFunctionPerformanceChart.pdf used on input lin
-e 646.
+e 662.
 (pdftex.def)             Requested size: 411.93877pt x 203.08247pt.
- [29 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
+ [30 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
 sertation/fig/SimpleFunctionPerformanceChart.pdf>] <fig/IdentityChains.pdf, id=
-283, 496.51498pt x 216.57913pt>
+287, 496.51498pt x 216.57913pt>
 File: fig/IdentityChains.pdf Graphic file (type pdf)
 
 <use fig/IdentityChains.pdf>
-Package pdftex.def Info: fig/IdentityChains.pdf used on input line 660.
+Package pdftex.def Info: fig/IdentityChains.pdf used on input line 676.
 (pdftex.def)             Requested size: 411.93877pt x 179.69122pt.
- [30 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
+ [31 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Dis
 sertation/fig/ListFunctionPerformanceChart.pdf>]
-[31 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Diss
-ertation/fig/IdentityChains.pdf>] [32
-
-]
+[32 <C:/Users/David/Documents/Visual Studio 2010/Projects/ArrowDataBinding/Diss
+ertation/fig/IdentityChains.pdf>]
 Chapter 5.
 [33
 
+
 ] [34
 
 ]
 ("C:\Users\David\Documents\Visual Studio 2010\Projects\ArrowDataBinding\Dissert
 ation\Dissertation.aux") ) 
 Here is how much of TeX's memory you used:
- 2774 strings out of 494045
- 40016 string characters out of 3148387
+ 2779 strings out of 494045
+ 40085 string characters out of 3148387
  185582 words of memory out of 3000000
- 6060 multiletter control sequences out of 15000+200000
- 12602 words of font info for 44 fonts, out of 3000000 for 9000
+ 6064 multiletter control sequences out of 15000+200000
+ 12770 words of font info for 45 fonts, out of 3000000 for 9000
  715 hyphenation exceptions out of 8191
  27i,8n,42p,1132b,1509s stack positions out of 5000i,500n,10000p,200000b,50000s
 <C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfo
 nts/cm/cmbx12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/c
-mmi10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmmi12.pf
-b><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/Pro
-gram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Program File
-s/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr17.pfb><C:/Program Files/MiKTeX 
-2.9/fonts/type1/public/amsfonts/cm/cmr7.pfb><C:/Program Files/MiKTeX 2.9/fonts/
-type1/public/amsfonts/cm/cmr8.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/publ
-ic/amsfonts/cm/cmsl12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfo
-nts/cm/cmsy10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/c
-mti12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmtt10.pf
-b><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmtt12.pfb>
-Output written on Dissertation.pdf (46 pages, 432275 bytes).
+mitt10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmmi10.p
+fb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmmi12.pfb><C:/P
+rogram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Fi
+les/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Program Files/MiKTe
+X 2.9/fonts/type1/public/amsfonts/cm/cmr17.pfb><C:/Program Files/MiKTeX 2.9/fon
+ts/type1/public/amsfonts/cm/cmr7.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/p
+ublic/amsfonts/cm/cmr8.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsf
+onts/cm/cmsl12.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/
+cmsy10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmti12.p
+fb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmtt10.pfb><C:/P
+rogram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmtt12.pfb>
+Output written on Dissertation.pdf (46 pages, 442286 bytes).
 PDF statistics:
- 554 PDF objects out of 1000 (max. 8388607)
+ 558 PDF objects out of 1000 (max. 8388607)
  0 named destinations out of 1000 (max. 500000)
  46 words of extra memory for PDF output out of 10000 (max. 10000000)
 

File Dissertation/Dissertation.pdf

Binary file modified.

File Dissertation/Dissertation.synctex.gz

Binary file modified.

File Dissertation/Dissertation.tex

View file
                    .Reverse();
 \end{lstlisting}
 
-[More on foldl and foldr?]
+%More on foldl and foldr?
 
-\subsection{Choice arrows}
+%\subsection{Choice arrows}
 
-\begin{itemize}
-	\item Not deeply implemented or tested but could be handy for some things, most likely convenient exception handling
-	\item This wouldn't be much good for bindings though
-\end{itemize}
+%\begin{itemize}
+%	\item Not deeply implemented or tested but could be handy for some things, most likely convenient exception handling
+%	\item This wouldn't be much good for bindings though
+%\end{itemize}
 
 \subsection{Further utility arrows} \label{sec:further_utility_arrows}
 
 	\item[Tuple reassociation arrows] The tuple operations \texttt{assoc} and \texttt{cossa}\footnote{\texttt{assoc} takes a tuple ((a, b), c) and returns (a, (b, c)), whilst \texttt{cossa} does the opposite} turn up reasonably frequently in functional programming, and feature in several of the arrow laws. As these are fairly fiddly to implement I decided it would make sense to create utility arrows for both these functions.
 \end{description}
 
-\subsection{Feedback in arrows}
+%\subsection{Feedback in arrows}
 
-Discuss whether this would be useful or not, reasons for it not being there (lack of real-world use cases?) and how one might implement it.
+%Discuss whether this would be useful or not, reasons for it not being there (lack of real-world use cases?) and how one might implement it.
 
 
 \section{Data binding}
 
 \paragraph{Type safety}
 
-All sort of problems here; difficulties of type checking arrows should also be mentioned.
+The binding framework at the moment is unfortunately not statically type safe: binding sources and destinations are of type \texttt{BindPoint}, which doesn't say anything about the actual type of the variable it refers to. An obvious solution would be to simply make the \texttt{BindPoint} class parameterised by the type of the variable it refers to (e.g. \texttt{BindPoint<int>} would refer to an integer variable), but this approach removed the ability to treat sets of bind points polymorphically which is used heavily by the methods for creating many-to-many bindings. As a result, it was decided that ensuring the types are correct should be left to the programmer. However, I was able to implement dynamic type checking at runtime so the framework will throw explanatory exceptions whenever the programmer has made a mistake rather than simply failing unexpectedly.
 
 \paragraph{Binding to lists}
 
-They don't throw events! Binding to lists needs the list to be ‘assigned’ to for it to update. Possible solutions like ObservableEnumerable (or whatever it was called), potentially more boilerplate, future work ‘n’ shit.
+Unfortunately, the technique of intercepting assignments to trigger binding update events doesn't easily work for lists. The vast majority of list operations occurring in practice involve changing elements of the list rather than reassigning the list variable itself, and so the list's overridden assignment method will not be called. This means that list bindings will not update unless the programmer explicitly assigns a modified version of the list to itself:
+
+\begin{lstlisting}[language={[Sharp]C}, caption={Explicitly reassigning a list to trigger a binding update}]
+var tempList = listToBeUpdated;
+tempList[3] = newValue;
+listToBeUpdated = tempList;  // Triggers the binding update
+\end{lstlisting}
+
+This can be overcome by using an \texttt{ObservableCollection} instead of a list. An \texttt{ObservableCollection} is essentially the same as a normal list but provides a \texttt{CollectionChanged} event to which listeners can subscribe for notifications whenever the contents of the collection change, and so it would be fairly simple to have list bindings subscribe to these events and update in that way. However, this would require that all bound collections be of type \texttt{ObservableCollection} -- far more limiting than the current system which only requires that they be subtypes of \texttt{IEnumerable}, the base type of all collections.
 
 \subsection{Integration work with WPF}
 
 
 \subsection{Arrow syntax}
 
-Arrow syntaxy stuff.
+Show major operators - arrow construction (niceish), arrow combination (niceish), First operator (not ideal - perhaps show all the differently imperfect ways of applying it); discuss the lack of type parameters despite the mad type-ing skillz going on (woo mad type inference skills!).
 
 \subsubsection{Comparison with Haskell}
 
-Might not be great, but why not?
+Firstly, mention difference in specifying lambdas and shizz (C sharp stunted from the start). From there, show how C sharp arrows create arrows from them (need types specified somewhere is an issue (no type inference like Haskell gets), C sharp also has a strict function calling syntax which doesn't allow Haskell's pretty currying syntax). Go on to give a few examples of complicated-ish arrows expressed in both? Also, maaaybe mention the shiny new syntax Haskell has for arrows, but the C sharp implementation can't really battle that so it's not worth going into much detail about.
 
 \subsection{Binding syntax}
 
 
 \subsubsection{List function results}
 
-Results for list-based functions
+List arrows were also evaluated, this time in comparison with Linq queries and simple functions based on loops. For this, a simple mock database was created of \texttt{Person} objects, each having a name, age and reference to and \texttt{Employer} object. The three functions tested follow:
+
+\begin{description}
+	\item[Filter] The task here was to filter the input to the list of people over ten years old. This was run for 1,000,000 iterations.
+	\item[Foldl] This tested the performance of the \texttt{foldl} method implemented for list arrows. The method had to combine all the \texttt{Person} objects into a single \texttt{Person} whose age was the sum of all the others and whose name was a concatenation of every name interspersed with `and' ("Alice and Bob and Eve and ..."). This was run for 300,000 iterations.
+	\item[Order by then map] This function involved ordering the list by age and then mapping each person such that their name was followed by " mapped". This was also run for 300,000 iterations.
+\end{description}
+
+The results can be seen in Figure \ref{fig:list_function_performance}. Interestingly, arrows performed fairly well on the first two tests. The loop-based function was fastest for filtering, with arrows following close behind -- presumably as a result of their filter method also being a simple loop. The Linq expression was slowest as it seems the Linq overhead ended up dominating. For foldl, the results are too similar to draw much from, but the arrow implementation appears to have been slightly more efficient. Again, the difference is likely to have been influenced by the overhead associated with Linq queries. Finally, filter then map shows the effect of arrow concatenation slowing things down -- in the case of list arrows, this overhead is greater than normal because the \texttt{IEnumerable} is converted to a list before being passed on to the next arrow\footnote{This was necessary to make some of the list arrows compatible, as various type errors were being encountered previously}.
 
 \begin{figure}[!ht]
   \centering

File Dissertation/Dissertation.toc

View file
 \contentsline {subsubsection}{Challenges encountered}{12}
 \contentsline {subsection}{\numberline {3.2.3}Invertible arrows}{14}
 \contentsline {subsection}{\numberline {3.2.4}List arrows}{14}
-\contentsline {subsection}{\numberline {3.2.5}Choice arrows}{16}
-\contentsline {subsection}{\numberline {3.2.6}Further utility arrows}{16}
-\contentsline {subsection}{\numberline {3.2.7}Feedback in arrows}{16}
+\contentsline {subsection}{\numberline {3.2.5}Further utility arrows}{16}
 \contentsline {section}{\numberline {3.3}Data binding}{16}
 \contentsline {subsection}{\numberline {3.3.1}Overall architecture}{16}
-\contentsline {subsection}{\numberline {3.3.2}Creating bindable sources and destinations}{18}
+\contentsline {subsection}{\numberline {3.3.2}Creating bindable sources and destinations}{17}
 \contentsline {subsection}{\numberline {3.3.3}Creating bindings}{19}
-\contentsline {subsubsection}{Syntax and usage}{20}
+\contentsline {subsubsection}{Syntax and usage}{19}
 \contentsline {subsubsection}{Two-way binding}{20}
 \contentsline {subsubsection}{Cycle and conflict detection}{21}
 \contentsline {subsubsection}{Many-to-many bindings}{22}
 \contentsline {subsubsection}{Simple function results}{28}
 \contentsline {subsubsection}{List function results}{29}
 \contentsline {subsubsection}{Overhead due to arrow chaining}{30}
-\contentsline {subsection}{\numberline {4.3.2}Binding performance}{30}
+\contentsline {subsection}{\numberline {4.3.2}Binding performance}{31}
 \contentsline {chapter}{\numberline {5}Conclusion}{33}
 \contentsline {section}{\numberline {5.1}Future work}{33}
 \contentsline {subsection}{\numberline {5.1.1}Performance enhancements}{33}