00a338c202
This reverts commit1f49d0936e, reversing changes made to236eeac038.
184 lines
9.4 KiB
XML
184 lines
9.4 KiB
XML
<EgtWPFLib5:EgtCustomWindow x:Class="MachiningDbWindowV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5"
|
|
Title="{Binding Title}"
|
|
Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
|
|
WindowStyle="None" ResizeMode="NoResize" TitleBarHeight="30" IsResizable="False"
|
|
IsMinimizable="False" WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
|
|
CloseCommand="{Binding CloseMachiningsDbCommand,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}"
|
|
CloseCommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
MyForegroundText="DeepSkyBlue"
|
|
x:Name="PLUTO">
|
|
|
|
<EgtWPFLib5:EgtCustomWindow.InputBindings>
|
|
<KeyBinding Key="Escape" Command="{Binding ReloadMachiningCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}"/>
|
|
</EgtWPFLib5:EgtCustomWindow.InputBindings>
|
|
|
|
<EgtWPFLib5:EgtCustomWindow.Resources>
|
|
<EgtWPFLib5:MachiningParamVisibilityConverter x:Key="MachiningParamVisibilityConverter"/>
|
|
<EgtWPFLib5:DepthUnitConverter x:Key="DepthUnitConverter"/>
|
|
<EgtWPFLib5:ErrorVisibilityConverter x:Key="ErrorVisibilityConverter"/>
|
|
<sys:Int32 x:Key="Invert">0</sys:Int32>
|
|
<sys:Int32 x:Key="LeaveTab">1</sys:Int32>
|
|
<sys:Int32 x:Key="WorkSide">2</sys:Int32>
|
|
<sys:Int32 x:Key="HeadSide">3</sys:Int32>
|
|
<sys:Int32 x:Key="LeadInType">4</sys:Int32>
|
|
<sys:Int32 x:Key="ExtLinkType">5</sys:Int32>
|
|
<sys:Int32 x:Key="LeadOutType">6</sys:Int32>
|
|
<sys:Int32 x:Key="CurveUse">7</sys:Int32>
|
|
<sys:Int32 x:Key="StepType">8</sys:Int32>
|
|
<sys:Int32 x:Key="LeadLinkType">9</sys:Int32>
|
|
<sys:Int32 x:Key="Speed">10</sys:Int32>
|
|
<sys:Int32 x:Key="Feed">11</sys:Int32>
|
|
<sys:Int32 x:Key="StartFeed">12</sys:Int32>
|
|
<sys:Int32 x:Key="EndFeed">13</sys:Int32>
|
|
<sys:Int32 x:Key="TipFeed">14</sys:Int32>
|
|
<sys:Int32 x:Key="OffSr">15</sys:Int32>
|
|
<sys:Int32 x:Key="OffSl">16</sys:Int32>
|
|
<sys:Int32 x:Key="SideAngle">17</sys:Int32>
|
|
<sys:Int32 x:Key="Approx">18</sys:Int32>
|
|
<sys:Int32 x:Key="StartPos">19</sys:Int32>
|
|
<sys:Int32 x:Key="StartSlowLen">20</sys:Int32>
|
|
<sys:Int32 x:Key="EndSlowLen">21</sys:Int32>
|
|
<sys:Int32 x:Key="ThrouAddLen">22</sys:Int32>
|
|
<sys:Int32 x:Key="StepPar">23</sys:Int32>
|
|
<sys:Int32 x:Key="ReturnPos">24</sys:Int32>
|
|
<sys:Int32 x:Key="TabLen">25</sys:Int32>
|
|
<sys:Int32 x:Key="TabDist">26</sys:Int32>
|
|
<sys:Int32 x:Key="TabHeight">27</sys:Int32>
|
|
<sys:Int32 x:Key="TabAngle">28</sys:Int32>
|
|
<sys:Int32 x:Key="LiTang">29</sys:Int32>
|
|
<sys:Int32 x:Key="LiPerp">30</sys:Int32>
|
|
<sys:Int32 x:Key="LiElev">31</sys:Int32>
|
|
<sys:Int32 x:Key="LiCompLen">32</sys:Int32>
|
|
<sys:Int32 x:Key="LoTang">33</sys:Int32>
|
|
<sys:Int32 x:Key="LoPerp">34</sys:Int32>
|
|
<sys:Int32 x:Key="LoElev">35</sys:Int32>
|
|
<sys:Int32 x:Key="LoCompLen">36</sys:Int32>
|
|
<sys:Int32 x:Key="StartAddLen">37</sys:Int32>
|
|
<sys:Int32 x:Key="EndAddLen">38</sys:Int32>
|
|
<sys:Int32 x:Key="StepExtArc">39</sys:Int32>
|
|
<sys:Int32 x:Key="StepIntArc">40</sys:Int32>
|
|
<sys:Int32 x:Key="SideStep">41</sys:Int32>
|
|
<sys:Int32 x:Key="VertFeed">42</sys:Int32>
|
|
<sys:Int32 x:Key="NamePar">43</sys:Int32>
|
|
<sys:Int32 x:Key="Tool">44</sys:Int32>
|
|
<sys:Int32 x:Key="DepthStr">45</sys:Int32>
|
|
<sys:Int32 x:Key="UserNotes">46</sys:Int32>
|
|
<sys:Int32 x:Key="OverLap">47</sys:Int32>
|
|
<sys:Int32 x:Key="SubType">49</sys:Int32>
|
|
<sys:Int32 x:Key="SelectedSolChoiceType">50</sys:Int32>
|
|
<sys:Int32 x:Key="InitAngs">51</sys:Int32>
|
|
<sys:Int32 x:Key="BlockedAxis">52</sys:Int32>
|
|
<sys:Int32 x:Key="FaceUseType">53</sys:Int32>
|
|
<sys:Int32 x:Key="InvertToolDir">54</sys:Int32>
|
|
<sys:Int32 x:Key="StepBack">55</sys:Int32>
|
|
<sys:Int32 x:Key="StepSideAngBack">56</sys:Int32>
|
|
<sys:Int32 x:Key="BackFeed">57</sys:Int32>
|
|
<sys:Int32 x:Key="StepSideAng">58</sys:Int32>
|
|
<sys:Int32 x:Key="ForwardAngle">59</sys:Int32>
|
|
<sys:Int32 x:Key="Probing">60</sys:Int32>
|
|
<sys:Int32 x:Key="ProbingMinDist">61</sys:Int32>
|
|
<sys:Int32 x:Key="ProbingMaxDist">62</sys:Int32>
|
|
<sys:Int32 x:Key="ExtCornType">63</sys:Int32>
|
|
<sys:Int32 x:Key="IntCornType">64</sys:Int32>
|
|
<sys:Int32 x:Key="CornSlowLen">65</sys:Int32>
|
|
<sys:Int32 x:Key="CornSlowPerc">66</sys:Int32>
|
|
<sys:Int32 x:Key="LiHole">67</sys:Int32>
|
|
<sys:Int32 x:Key="LiHoleRad">68</sys:Int32>
|
|
<sys:Int32 x:Key="LpTurns">69</sys:Int32>
|
|
<sys:Int32 x:Key="HpTurns">70</sys:Int32>
|
|
<sys:Int32 x:Key="ThicknessFeed">71</sys:Int32>
|
|
</EgtWPFLib5:EgtCustomWindow.Resources>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.75*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="10*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<UniformGrid Grid.Row="0" Columns="3">
|
|
<Button Content="{Binding NewMsg}" Command="{Binding NewCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledNewBtn, Mode=OneWay}" Height="30"/>
|
|
<Button Content="{Binding SaveMsg}" Command="{Binding SaveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledSaveBtn, Mode=OneWay}" Height="30"/>
|
|
<Button Content="{Binding RemoveMsg}" Command="{Binding RemoveCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem, ElementName=MachiningsTreeView}"
|
|
IsEnabled="{Binding IsEnabledRemoveBtn, Mode=OneWay}" Height="30"/>
|
|
</UniformGrid>
|
|
|
|
<TreeView Name="MachiningsTreeView" Grid.Row="1"
|
|
ItemsSource="{Binding Path=MachiningsList}">
|
|
|
|
<TreeView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TreeViewItem}">
|
|
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
|
|
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
|
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
|
</Style>
|
|
</TreeView.ItemContainerStyle>
|
|
|
|
<TreeView.Resources>
|
|
<HierarchicalDataTemplate DataType="{x:Type EgtWPFLib5:FamilyMachiningTreeViewItem}" ItemsSource="{Binding Items}">
|
|
|
|
<Grid Height="20">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Image Grid.Column="0" Source="{Binding PictureString}" Height="20" Width="20" Margin="0,0,5,0" />
|
|
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}" />
|
|
|
|
</Grid>
|
|
|
|
</HierarchicalDataTemplate>
|
|
|
|
<DataTemplate DataType="{x:Type EgtWPFLib5:MachiningTreeViewItem}">
|
|
<Grid Height="20">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />-->
|
|
<TextBlock Grid.Column="1" Text="{Binding NamePar}" FontSize="15" Margin="0,-2,5,0" VerticalAlignment="Center" />
|
|
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding ToolColor}" />
|
|
|
|
</Grid>
|
|
</DataTemplate>
|
|
</TreeView.Resources>
|
|
|
|
</TreeView>
|
|
|
|
<UniformGrid Grid.Row="2" Columns="3">
|
|
<Button Content="{Binding ImportMsg}" Command="{Binding ImportCommand}" Height="30"/>
|
|
<Button Content="{Binding ExportMsg}" Command="{Binding ExportCommand}" Height="30"/>
|
|
<Button Content="{Binding ResetMsg}" Command="{Binding ReloadMachiningCommand}"
|
|
CommandParameter="{Binding Path=SelectedItem,ElementName=MachiningsTreeView}" Height="30"/>
|
|
</UniformGrid>
|
|
|
|
</Grid>
|
|
|
|
<ContentControl Content="{Binding Path=ParamPageV}" Grid.Column="1" Grid.ColumnSpan="2"/>
|
|
|
|
</Grid>
|
|
|
|
</EgtWPFLib5:EgtCustomWindow>
|