整理代码
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<ui:NeoWindow
|
||||
Height="462"
|
||||
MinHeight="580"
|
||||
MinWidth="1000"
|
||||
Title="模型创建"
|
||||
Width="625"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.RvIndependent.MetroGauges.GaugesModelView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Title="模型创建"
|
||||
Width="625"
|
||||
Height="462"
|
||||
MinWidth="1000"
|
||||
MinHeight="580"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
@@ -17,27 +17,27 @@
|
||||
Columns="*,Auto"
|
||||
Rows="*,*">
|
||||
<GroupBox
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Header="平曲线">
|
||||
<DataGrid
|
||||
x:Name="DgHorizon"
|
||||
CanUserSortColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding}"
|
||||
LoadingRow="DGHorizon_LoadingRow"
|
||||
MinColumnWidth="100"
|
||||
x:Name="DgHorizon" />
|
||||
MinColumnWidth="100" />
|
||||
</GroupBox>
|
||||
<GroupBox
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Header="竖曲线">
|
||||
<DataGrid
|
||||
x:Name="DgVertical"
|
||||
CanUserSortColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding}"
|
||||
LoadingRow="DGVertical_LoadingRow"
|
||||
x:Name="DgVertical" />
|
||||
LoadingRow="DGVertical_LoadingRow" />
|
||||
</GroupBox>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
@@ -46,11 +46,11 @@
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Header="横断面">
|
||||
<DataGrid
|
||||
x:Name="DgCross"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserSortColumns="False"
|
||||
ItemsSource="{Binding}"
|
||||
LoadingRow="DGCross_LoadingRow"
|
||||
x:Name="DgCross">
|
||||
LoadingRow="DGCross_LoadingRow">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Binding="{Binding StartStation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="起点桩号" />
|
||||
<DataGridTextColumn Binding="{Binding EndStation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="终点桩号" />
|
||||
@@ -59,10 +59,10 @@
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button
|
||||
Click="BtnStartLoad_Click"
|
||||
Content="{Binding FileNameStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
x:Name="BtnLoad"
|
||||
MinWidth="60"
|
||||
x:Name="BtnLoad" />
|
||||
Click="BtnStartLoad_Click"
|
||||
Content="{Binding FileNameStart, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
@@ -70,10 +70,10 @@
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Button
|
||||
Click="BtnEndLoad_Click"
|
||||
Content="{Binding FileNameEnd, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
x:Name="BtnLoad"
|
||||
MinWidth="60"
|
||||
x:Name="BtnLoad" />
|
||||
Click="BtnEndLoad_Click"
|
||||
Content="{Binding FileNameEnd, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
@@ -82,13 +82,13 @@
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
x:Name="BtnAdd"
|
||||
Click="BtnAdd_Click"
|
||||
Content="添加"
|
||||
x:Name="BtnAdd" />
|
||||
Content="添加" />
|
||||
<Button
|
||||
x:Name="BtnDelete"
|
||||
Click="BtnDelete_Click"
|
||||
Content="删除"
|
||||
x:Name="BtnDelete" />
|
||||
Content="删除" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
@@ -98,23 +98,23 @@
|
||||
</GroupBox>
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
<CheckBox
|
||||
x:Name="CbSolid"
|
||||
Content="实体"
|
||||
IsChecked="True"
|
||||
x:Name="CbSolid" />
|
||||
IsChecked="True" />
|
||||
<Button Click="LoadLandXml_Click" Content="加载XML" />
|
||||
<Button
|
||||
x:Name="btnSetByCurve"
|
||||
Click="BtnSetByCurve_Click"
|
||||
Content="曲线类型分割"
|
||||
Cursor="Hand"
|
||||
x:Name="btnSetByCurve" />
|
||||
Cursor="Hand" />
|
||||
<Button
|
||||
x:Name="btnCreateGauges"
|
||||
Click="CreateGaugesModel_Click"
|
||||
Content="限界体量"
|
||||
x:Name="btnCreateGauges" />
|
||||
Content="限界体量" />
|
||||
<Button
|
||||
x:Name="btnCreateForm"
|
||||
Click="CreateFrom_Click"
|
||||
Content="创建体量"
|
||||
x:Name="btnCreateForm" />
|
||||
Content="创建体量" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ui:Grid>
|
||||
|
||||
Reference in New Issue
Block a user