Update Bovender to 0.3.1.
This commit is contained in:
		@@ -41,8 +41,8 @@
 | 
				
			|||||||
    <AssemblyOriginatorKeyFile>zaaReloaded2.pfx</AssemblyOriginatorKeyFile>
 | 
					    <AssemblyOriginatorKeyFile>zaaReloaded2.pfx</AssemblyOriginatorKeyFile>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <Reference Include="Bovender, Version=0.2.0.0, Culture=neutral, PublicKeyToken=df1c15557d8b6df8, processorArchitecture=MSIL">
 | 
					    <Reference Include="Bovender, Version=0.3.1.0, Culture=neutral, PublicKeyToken=df1c15557d8b6df8, processorArchitecture=MSIL">
 | 
				
			||||||
      <HintPath>..\packages\Bovender.0.2.0.0\lib\net40\Bovender.dll</HintPath>
 | 
					      <HintPath>..\packages\Bovender.0.3.1.0\lib\net40\Bovender.dll</HintPath>
 | 
				
			||||||
      <Private>True</Private>
 | 
					      <Private>True</Private>
 | 
				
			||||||
    </Reference>
 | 
					    </Reference>
 | 
				
			||||||
    <Reference Include="Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
 | 
					    <Reference Include="Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
<packages>
 | 
					<packages>
 | 
				
			||||||
  <package id="Bovender" version="0.2.0.0" targetFramework="net40" />
 | 
					  <package id="Bovender" version="0.3.1.0" targetFramework="net40" />
 | 
				
			||||||
  <package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
 | 
					  <package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
 | 
				
			||||||
  <package id="NUnit" version="2.6.4" targetFramework="net40" />
 | 
					  <package id="NUnit" version="2.6.4" targetFramework="net40" />
 | 
				
			||||||
</packages>
 | 
					</packages>
 | 
				
			||||||
@@ -32,7 +32,7 @@
 | 
				
			|||||||
        settings:WindowState.Save="True"
 | 
					        settings:WindowState.Save="True"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
 | 
					        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@
 | 
				
			|||||||
        Title="Fehlerbericht versenden"
 | 
					        Title="Fehlerbericht versenden"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <StackPanel Margin="10" Orientation="Horizontal">
 | 
					    <StackPanel Margin="10" Orientation="Horizontal">
 | 
				
			||||||
        <TextBlock FontSize="72" FontWeight="Bold" Foreground="Red" Margin="0,0,10,0"
 | 
					        <TextBlock FontSize="72" FontWeight="Bold" Foreground="Red" Margin="0,0,10,0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
        SizeToContent="WidthAndHeight"
 | 
					        SizeToContent="WidthAndHeight"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <i:Interaction.Triggers>
 | 
					    <i:Interaction.Triggers>
 | 
				
			||||||
        <i:EventTrigger SourceObject="{Binding CompletedMessage}" EventName="Sent">
 | 
					        <i:EventTrigger SourceObject="{Binding CompletedMessage}" EventName="Sent">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@
 | 
				
			|||||||
        Title="Fehlerbericht versenden"
 | 
					        Title="Fehlerbericht versenden"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <StackPanel Margin="10" Orientation="Horizontal">
 | 
					    <StackPanel Margin="10" Orientation="Horizontal">
 | 
				
			||||||
        <TextBlock FontSize="48" FontWeight="Bold" Foreground="GreenYellow" Margin="0,0,10,0"
 | 
					        <TextBlock FontSize="48" FontWeight="Bold" Foreground="GreenYellow" Margin="0,0,10,0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@ namespace zaaReloaded2
 | 
				
			|||||||
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
 | 
					        private void ThisAddIn_Startup(object sender, System.EventArgs e)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Bovender.ExceptionHandler.CentralHandler.ManageExceptionCallback += CentralHandler_ManageExceptionCallback;
 | 
					            Bovender.ExceptionHandler.CentralHandler.ManageExceptionCallback += CentralHandler_ManageExceptionCallback;
 | 
				
			||||||
            RegisterTextBoxSelectAll();
 | 
					            Bovender.WpfHelpers.RegisterTextBoxSelectAll();
 | 
				
			||||||
            CheckForUpdates();
 | 
					            CheckForUpdates();
 | 
				
			||||||
            _oldCaption = Globals.ThisAddIn.Application.Caption;
 | 
					            _oldCaption = Globals.ThisAddIn.Application.Caption;
 | 
				
			||||||
            Globals.ThisAddIn.Application.Caption = 
 | 
					            Globals.ThisAddIn.Application.Caption = 
 | 
				
			||||||
@@ -155,49 +155,5 @@ namespace zaaReloaded2
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        #endregion
 | 
					        #endregion
 | 
				
			||||||
 | 
					 | 
				
			||||||
        /// <summary>
 | 
					 | 
				
			||||||
        /// Make text boxes select all text on focus.
 | 
					 | 
				
			||||||
        /// </summary>
 | 
					 | 
				
			||||||
        /// <remarks>
 | 
					 | 
				
			||||||
        /// http://stackoverflow.com/a/2553297/270712
 | 
					 | 
				
			||||||
        /// </remarks>
 | 
					 | 
				
			||||||
        void RegisterTextBoxSelectAll()
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            // Select the text in a TextBox when it receives focus.
 | 
					 | 
				
			||||||
            EventManager.RegisterClassHandler(typeof(TextBox), TextBox.PreviewMouseLeftButtonDownEvent,
 | 
					 | 
				
			||||||
                new MouseButtonEventHandler(SelectivelyIgnoreMouseButton));
 | 
					 | 
				
			||||||
            EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotKeyboardFocusEvent,
 | 
					 | 
				
			||||||
                new RoutedEventHandler(SelectAllText));
 | 
					 | 
				
			||||||
            EventManager.RegisterClassHandler(typeof(TextBox), TextBox.MouseDoubleClickEvent,
 | 
					 | 
				
			||||||
                new RoutedEventHandler(SelectAllText));
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        void SelectivelyIgnoreMouseButton(object sender, MouseButtonEventArgs e)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            // Find the TextBox
 | 
					 | 
				
			||||||
            DependencyObject parent = e.OriginalSource as UIElement;
 | 
					 | 
				
			||||||
            while (parent != null && !(parent is TextBox))
 | 
					 | 
				
			||||||
                parent = VisualTreeHelper.GetParent(parent);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if (parent != null)
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                var textBox = (TextBox)parent;
 | 
					 | 
				
			||||||
                if (!textBox.IsKeyboardFocusWithin)
 | 
					 | 
				
			||||||
                {
 | 
					 | 
				
			||||||
                    // If the text box is not yet focused, give it the focus and
 | 
					 | 
				
			||||||
                    // stop further processing of this click event.
 | 
					 | 
				
			||||||
                    textBox.Focus();
 | 
					 | 
				
			||||||
                    e.Handled = true;
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        void SelectAllText(object sender, RoutedEventArgs e)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            var textBox = e.OriginalSource as TextBox;
 | 
					 | 
				
			||||||
            if (textBox != null)
 | 
					 | 
				
			||||||
                textBox.SelectAll();
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@
 | 
				
			|||||||
        Title="Über..."
 | 
					        Title="Über..."
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <StackPanel Margin="20">
 | 
					    <StackPanel Margin="20">
 | 
				
			||||||
        <Image Source="/zaaReloaded2;component/Icons/icon.png" Width="64" VerticalAlignment="Center" Margin="0 0 0 10" />
 | 
					        <Image Source="/zaaReloaded2;component/Icons/icon.png" Width="64" VerticalAlignment="Center" Margin="0 0 0 10" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@
 | 
				
			|||||||
        FocusManager.FocusedElement="{Binding ElementName=treeview}"
 | 
					        FocusManager.FocusedElement="{Binding ElementName=treeview}"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <Label DockPanel.Dock="Top" Content="Verfügbare Elemente:" Target="{Binding ElementName=ElementsTreeView}" />
 | 
					        <Label DockPanel.Dock="Top" Content="Verfügbare Elemente:" Target="{Binding ElementName=ElementsTreeView}" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
        FocusManager.FocusedElement="{Binding ElementName=ContentTextBox}"
 | 
					        FocusManager.FocusedElement="{Binding ElementName=ContentTextBox}"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <Label DockPanel.Dock="Top" Content="Inhalt:" Target="{Binding ElementName=ContentTextBox}" />
 | 
					        <Label DockPanel.Dock="Top" Content="Inhalt:" Target="{Binding ElementName=ContentTextBox}" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
        Title="Willkommen bei zaaReloaded"
 | 
					        Title="Willkommen bei zaaReloaded"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
         <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					         <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <StackPanel Margin="10">
 | 
					    <StackPanel Margin="10">
 | 
				
			||||||
        <TextBlock FontWeight="Bold" FontSize="20" Margin="0 0 0 5">
 | 
					        <TextBlock FontWeight="Bold" FontSize="20" Margin="0 0 0 5">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@
 | 
				
			|||||||
        Title="Import/Export-Fehler"
 | 
					        Title="Import/Export-Fehler"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <TextBlock DockPanel.Dock="Left" Margin="0 0 20 0" LineHeight="72" LineStackingStrategy="BlockLineHeight"
 | 
					        <TextBlock DockPanel.Dock="Left" Margin="0 0 20 0" LineHeight="72" LineStackingStrategy="BlockLineHeight"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -29,7 +29,7 @@
 | 
				
			|||||||
        FocusManager.FocusedElement="{Binding ElementName=ValueTextBox}"
 | 
					        FocusManager.FocusedElement="{Binding ElementName=ValueTextBox}"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <Label DockPanel.Dock="Top" Content="{Binding Item}"
 | 
					        <Label DockPanel.Dock="Top" Content="{Binding Item}"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,7 @@
 | 
				
			|||||||
        Title="Einstellungen"
 | 
					        Title="Einstellungen"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
         <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					         <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <DockPanel Margin="10">
 | 
					    <DockPanel Margin="10">
 | 
				
			||||||
        <UniformGrid DockPanel.Dock="Bottom" Columns="2" Rows="1"
 | 
					        <UniformGrid DockPanel.Dock="Bottom" Columns="2" Rows="1"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@
 | 
				
			|||||||
        FocusManager.FocusedElement="{Binding ElementName=settingsList}"
 | 
					        FocusManager.FocusedElement="{Binding ElementName=settingsList}"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
        <ResourceDictionary Source="/zaaReloaded2;component/style.xaml" />
 | 
					        <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <i:Interaction.Triggers>
 | 
					    <i:Interaction.Triggers>
 | 
				
			||||||
        <i:EventTrigger SourceObject="{Binding EditSettingsMessage}" EventName="Sent">
 | 
					        <i:EventTrigger SourceObject="{Binding EditSettingsMessage}" EventName="Sent">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@
 | 
				
			|||||||
        FocusManager.FocusedElement="{Binding ElementName=NameTextBox}"
 | 
					        FocusManager.FocusedElement="{Binding ElementName=NameTextBox}"
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
    <Window.Resources>
 | 
					    <Window.Resources>
 | 
				
			||||||
         <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
					         <ResourceDictionary Source="/Bovender;component/Style.xaml" />
 | 
				
			||||||
    </Window.Resources>
 | 
					    </Window.Resources>
 | 
				
			||||||
    <i:Interaction.Triggers>
 | 
					    <i:Interaction.Triggers>
 | 
				
			||||||
        <i:EventTrigger SourceObject="{Binding AddElementMessage}" EventName="Sent">
 | 
					        <i:EventTrigger SourceObject="{Binding AddElementMessage}" EventName="Sent">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,6 +19,6 @@
 | 
				
			|||||||
	limitations under the License.
 | 
						limitations under the License.
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
<packages>
 | 
					<packages>
 | 
				
			||||||
  <package id="Bovender" version="0.2.0.0" targetFramework="net40" />
 | 
					  <package id="Bovender" version="0.3.1.0" targetFramework="net40" />
 | 
				
			||||||
  <package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
 | 
					  <package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net40" />
 | 
				
			||||||
</packages>
 | 
					</packages>
 | 
				
			||||||
@@ -134,8 +134,9 @@
 | 
				
			|||||||
  -->
 | 
					  -->
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <Reference Include="Accessibility" />
 | 
					    <Reference Include="Accessibility" />
 | 
				
			||||||
    <Reference Include="Bovender">
 | 
					    <Reference Include="Bovender, Version=0.3.1.0, Culture=neutral, PublicKeyToken=df1c15557d8b6df8, processorArchitecture=MSIL">
 | 
				
			||||||
      <HintPath>..\packages\Bovender.0.2.0.0\lib\net40\Bovender.dll</HintPath>
 | 
					      <HintPath>..\packages\Bovender.0.3.1.0\lib\net40\Bovender.dll</HintPath>
 | 
				
			||||||
 | 
					      <Private>True</Private>
 | 
				
			||||||
    </Reference>
 | 
					    </Reference>
 | 
				
			||||||
    <Reference Include="Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
 | 
					    <Reference Include="Microsoft.Expression.Interactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
 | 
				
			||||||
    <Reference Include="PresentationCore" />
 | 
					    <Reference Include="PresentationCore" />
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user