1
<gui:AbstractInlineRefactorDialog x:Class="SharpRefactoring.Gui.InsertCtorDialog"
2
Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor}"
3
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
xmlns:gui="clr-namespace:SharpRefactoring.Gui"
5
xmlns:addin="clr-namespace:SharpRefactoring"
6
xmlns:sd="http://icsharpcode.net/sharpdevelop/core"
7
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
8
<gui:AbstractInlineRefactorDialog.Resources>
9
<gui:IntToBoolConverter x:Key="intToBoolConverter" />
10
<Style TargetType="Button" BasedOn="{x:Static sd:GlobalStyles.ButtonStyle}"/>
11
</gui:AbstractInlineRefactorDialog.Resources>
12
<StackPanel Cursor="Arrow">
13
<TextBlock DockPanel.Dock="Top" Margin="3"
14
Text="{sd:Localize AddIns.SharpRefactoring.InsertCtor.Description}"
15
TextWrapping="Wrap" />
16
<ListView x:Name="varList" MaxHeight="300">
19
<GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.VariableLabel}">
20
<GridViewColumn.CellTemplate>
22
<CheckBox Content="{Binding Text}" IsChecked="{Binding IsSelected, Mode=TwoWay}" />
24
</GridViewColumn.CellTemplate>
26
<GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.AddCheckForNullLabel}">
27
<GridViewColumn.CellTemplate>
29
<CheckBox IsChecked="{Binding AddCheckForNull, Mode=TwoWay}" IsEnabled="{Binding IsNullable}" />
31
</GridViewColumn.CellTemplate>
33
<GridViewColumn Header="{sd:Localize AddIns.SharpRefactoring.InsertCtor.AddRangeCheckLabel}">
34
<GridViewColumn.CellTemplate>
36
<CheckBox IsChecked="{Binding AddRangeCheck, Mode=TwoWay}" IsEnabled="{Binding HasRange}" />
38
</GridViewColumn.CellTemplate>
43
<DockPanel LastChildFill="False">
44
<Button DockPanel.Dock="Left" Content="{sd:Localize Global.OKButtonText}" Margin="3" Click="OKButtonClick" />
45
<Button DockPanel.Dock="Left" Content="{sd:Localize Global.CancelButtonText}" Margin="3" Click="CancelButtonClick" />
46
<Button DockPanel.Dock="Right" Content="{sd:Localize Global.MoveDown}" Margin="3" IsEnabled="{Binding SelectedIndex, ElementName=varList, Converter={StaticResource intToBoolConverter}}" Click="DownClick" />
47
<Button DockPanel.Dock="Right" Content="{sd:Localize Global.MoveUp}" Margin="3" IsEnabled="{Binding SelectedIndex, ElementName=varList, Converter={StaticResource intToBoolConverter}}" Click="UpClick" />
48
<ToggleButton DockPanel.Dock="Right" Content="{sd:Localize Global.SelectAllButtonText}" Margin="3" IsChecked="{Binding AllSelected, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type gui:InsertCtorDialog}}, Mode=OneWay}" Checked="SelectAllChecked" Unchecked="SelectAllUnchecked" />
51
</gui:AbstractInlineRefactorDialog>
b'\\ No newline at end of file'