整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -1,55 +1,56 @@
<ui:NeoWindow
Height="500"
MinHeight="500"
Title="铺贴"
Width="180"
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvCivil.BricksFinishesView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rvCivil="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCivil"
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Title="铺贴"
Width="180"
Height="500"
MinHeight="500"
d:DataContext="{d:DesignInstance rvCivil:BricksFinishesViewModel}"
Icon="{DynamicResource RevitIcon}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</Window.Resources>
<ui:Grid ChildMargin="5" Columns="*">
<TextBox
InputMethod.IsInputMethodEnabled="False"
x:Name="TbPavementLength"
ui:InputAssist.Prefix="砖长:"
ui:InputAssist.Suffix="mm"
Text="{Binding PavementLength, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementLength" />
<TextBox
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementLength, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementWidth"
ui:InputAssist.Prefix="砖宽:"
ui:InputAssist.Suffix="mm"
Text="{Binding PavementWidth, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementWidth" />
<TextBox
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementWidth, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementGap"
ui:InputAssist.Prefix="砖缝:"
ui:InputAssist.Suffix="mm"
Text="{Binding PavementGap, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementGap" />
<TextBox
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementGap, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementThickness"
ui:InputAssist.Prefix="砖厚:"
ui:InputAssist.Suffix="mm"
Text="{Binding PavementThickness, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementThickness" />
<TextBox
InputMethod.IsInputMethodEnabled="False"
Text="{Binding PavementThickness, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementBaseOffset"
ui:InputAssist.Prefix="墙砖底标高:"
ui:InputAssist.Suffix="mm"
Text="{Binding WallBaseOffset, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementBaseOffset" />
InputMethod.IsInputMethodEnabled="False"
Text="{Binding WallBaseOffset, StringFormat={}{0:F2}, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
x:Name="TbPavementName"
ui:InputAssist.Prefix="铺砖名(类型名)"
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}"
x:Name="TbPavementName" />
Text="{Binding PanelName, UpdateSourceTrigger=PropertyChanged}" />
<GroupBox Grid.Row="1" Header="铺设方式">
<UniformGrid Rows="1">
<RadioButton Content="房间" IsChecked="{Binding ByRoom, UpdateSourceTrigger=PropertyChanged}" />
@@ -58,10 +59,10 @@
</GroupBox>
<CheckBox Content="边界留缝" IsChecked="{Binding IsEdgeExistGap, UpdateSourceTrigger=PropertyChanged}" />
<Button
x:Name="BtnByFace"
HorizontalAlignment="Stretch"
Command="{Binding PlaceBricksCommand}"
Content="铺设"
HorizontalAlignment="Stretch"
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={StaticResource InvertBooleanConverter}, UpdateSourceTrigger=PropertyChanged}"
x:Name="BtnByFace" />
IsEnabled="{Binding HasErrors, Mode=OneWay, Converter={StaticResource InvertBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" />
</ui:Grid>
</ui:NeoWindow>