CreateNewTaskWindow.xaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <Window x:Class="aipdev.CreateNewTaskWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:aipdev"
  7. mc:Ignorable="d"
  8. Title="创建新任务" Height="430" Width="450" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="20"/>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="50"/>
  14. </Grid.RowDefinitions>
  15. <StackPanel Grid.Row="1">
  16. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  17. <TextBlock Margin="8" VerticalAlignment="Center" Text="任务名" Width="80"/>
  18. <TextBox x:Name="TaskName" Margin="8" VerticalAlignment="Center" Width="300"/>
  19. </StackPanel>
  20. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  21. <TextBlock Margin="8" VerticalAlignment="Center" Text="组织" Width="80"/>
  22. <ComboBox x:Name="OrganizationList" Margin="8" VerticalAlignment="Center" Width="300">
  23. <ComboBox.ItemTemplate>
  24. <DataTemplate>
  25. <TextBlock Text="{Binding Name}"/>
  26. </DataTemplate>
  27. </ComboBox.ItemTemplate>
  28. </ComboBox>
  29. </StackPanel>
  30. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  31. <TextBlock Margin="8" VerticalAlignment="Center" Text="训练文件夹" Width="80"/>
  32. <ComboBox x:Name="FolderList" Margin="8" VerticalAlignment="Center" Width="300">
  33. <ComboBox.ItemTemplate>
  34. <DataTemplate>
  35. <TextBlock Text="{Binding Name}"/>
  36. </DataTemplate>
  37. </ComboBox.ItemTemplate>
  38. </ComboBox>
  39. </StackPanel>
  40. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  41. <TextBlock Margin="8" VerticalAlignment="Center" Text="测试文件夹" Width="80"/>
  42. <ComboBox x:Name="TestFolderList" Margin="8" VerticalAlignment="Center" Width="300">
  43. <ComboBox.ItemTemplate>
  44. <DataTemplate>
  45. <TextBlock Text="{Binding Name}"/>
  46. </DataTemplate>
  47. </ComboBox.ItemTemplate>
  48. </ComboBox>
  49. </StackPanel>
  50. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  51. <TextBlock Margin="8" VerticalAlignment="Center" Text="脚本包" Width="80"/>
  52. <ComboBox x:Name="ScriptPackageList" Margin="8" VerticalAlignment="Center" Width="300"/>
  53. </StackPanel>
  54. <StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  55. <TextBlock Margin="8" VerticalAlignment="Center" Text="启动参数" Width="80"/>
  56. <TextBox x:Name="StartArgs" Margin="8" VerticalAlignment="Center" Width="300"/>
  57. </StackPanel>
  58. <!--<StackPanel Orientation="Horizontal" Margin="8,2,8,2">
  59. <TextBlock Margin="8" VerticalAlignment="Center" Text="模型文件名" Width="80"/>
  60. <TextBox x:Name="ModelName" Margin="8" VerticalAlignment="Center" Width="200"/>
  61. </StackPanel>-->
  62. </StackPanel>
  63. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="1">
  64. <Button Content="确定" VerticalAlignment="Center" Style="{StaticResource btn-primary}" Click="OnOkClick" IsDefault="True"/>
  65. <Button Content="取消" VerticalAlignment="Center" Margin="8" Click="OnCloseClick"/>
  66. </StackPanel>
  67. </Grid>
  68. </Window>