调整代码

This commit is contained in:
GG Z
2026-02-22 20:03:42 +08:00
parent 2ad3d0fde0
commit 7e2d5be3cd
258 changed files with 2916 additions and 5013 deletions

View File

@@ -0,0 +1,39 @@
<ui:MelWindow
x:Class="ShrlAlgoToolkit.RevitAddins.General.AutoSaveView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rvCommon1="clr-namespace:ShrlAlgoToolkit.RevitAddins.General"
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
xmlns:rvCommon="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCommon"
Title="自动保存"
Width="300"
Height="100"
d:DataContext="{d:DesignInstance Type=rvCommon:AutoSaveViewModel}"
Icon="{DynamicResource RevitIcon}"
mc:Ignorable="d">
<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<ui:Grid Margin="5" VerticalAlignment="Center">
<CheckBox x:Name="CbAutoSave" IsChecked="{Binding IsActiveAutoSave, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock VerticalAlignment="Center" Text="自动保存时间间隔(分钟)" />
<TextBox
x:Name="TbIntervalMinutes"
Width="80"
InputMethod.IsInputMethodEnabled="False"
IsEnabled="{Binding IsChecked, ElementName=CbAutoSave}"
Text="{Binding IntervalTime, UpdateSourceTrigger=PropertyChanged}" />
</ui:Grid>
</ui:MelWindow>