| 123456789101112131415161718192021222324252627282930313233 |
- <Window x:Class="Plugins.Script.Views.ScriptReferenceDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="程序集引用管理" Height="500" Width="540" MinHeight="380" MinWidth="420"
- WindowStartupLocation="CenterOwner"
- Background="{DynamicResource RegionBrush}">
- <Grid Margin="14">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="0,0,0,10"
- Foreground="{DynamicResource SecondaryTextBrush}"
- Text="脚本编译/运行可用的程序集引用。添加的 DLL 会自动归档到运行目录 References\,编辑器补全与流程运行期共用(TeamAAS 全家桶已默认引用)。"/>
- <ListBox x:Name="RefsList" Grid.Row="1"
- Background="{DynamicResource RegionBrush}"
- BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
- FontFamily="Consolas, Courier New, monospace" FontSize="12"
- Foreground="{DynamicResource PrimaryTextBrush}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"/>
- <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,12,0,0">
- <Button x:Name="BtnAdd" Content="添加 DLL" Click="BtnAdd_Click" Padding="16,5" Margin="0,0,10,0"
- ToolTip="从本地选择 .NET 程序集(.dll/.exe)添加为引用,自动归档到 References\"/>
- <Button x:Name="BtnRemove" Content="移除" Click="BtnRemove_Click" Padding="16,5" Margin="0,0,10,0"
- ToolTip="从引用列表移除所选项"/>
- <Button x:Name="BtnClose" Content="关闭" Click="BtnClose_Click" Padding="16,5"/>
- </StackPanel>
- </Grid>
- </Window>
|