parent
071d725814
commit
5c7f6f2c60
@ -0,0 +1,14 @@
|
||||
<Window x:Class="WpfApp2.WindowsSEL.ErrorIn"
|
||||
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:local="clr-namespace:WpfApp2.WindowsSEL"
|
||||
mc:Ignorable="d"
|
||||
Title="警告" Height="120" Width="150">
|
||||
<Grid>
|
||||
<Button Content="确定" HorizontalAlignment="Center" Margin="0,56,0,0" VerticalAlignment="Top" Click="Button_Click"/>
|
||||
<TextBlock HorizontalAlignment="Center" Margin="0,14,0,0" TextWrapping="Wrap" Text="未输入Id" VerticalAlignment="Top" Height="28" Width="58"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,14 @@
|
||||
<Window x:Class="WpfApp2.WindowsSEL.SelectPriTrueWindow"
|
||||
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:local="clr-namespace:WpfApp2.WindowsSEL"
|
||||
mc:Ignorable="d"
|
||||
Title="选择成功" Height="200" Width="200">
|
||||
<Grid>
|
||||
<Button Content="返回" HorizontalAlignment="Center" Margin="0,138,0,0" VerticalAlignment="Top" Click="Button_Click"/>
|
||||
<TextBlock HorizontalAlignment="Center" Margin="0,45,0,0" TextWrapping="Wrap" Text="选择成功" VerticalAlignment="Top" Height="47" Width="88"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,17 @@
|
||||
<Window x:Class="WpfApp2.WindowsSEL.TransSourceSelectPri"
|
||||
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:local="clr-namespace:WpfApp2.WindowsSEL"
|
||||
mc:Ignorable="d"
|
||||
Title="私有翻译接口选择" Height="500" Width="350">
|
||||
<Grid>
|
||||
<ComboBox x:Name="myComBox" HorizontalAlignment="Left" Margin="131,65,0,0" VerticalAlignment="Top" Width="164" SelectionChanged="myComBox_SelectionChanged" ItemsSource="{Binding mylist}"/>
|
||||
|
||||
<TextBlock HorizontalAlignment="Center" Margin="0,38,0,0" TextWrapping="Wrap" Text="选择以写入的私有翻译源" VerticalAlignment="Top" Height="38" Width="150"/>
|
||||
<Button Content="确定更改" HorizontalAlignment="Left" Margin="59,392,0,0" VerticalAlignment="Top" Height="30" Width="62" Click="Button_True"/>
|
||||
<Button Content="取消" HorizontalAlignment="Left" Margin="213,392,0,0" VerticalAlignment="Top" Height="30" Width="53" Click="Button_Close"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
@ -0,0 +1,36 @@
|
||||
|
||||
主窗口:
|
||||
|
||||
<MenuItem
|
||||
Header=" 设置"
|
||||
Height="20"
|
||||
Width="50"
|
||||
Name="设置"
|
||||
BorderBrush="Gray">
|
||||
<MenuItem Header="选择公共翻译接口" Click="TransSourceSelectWnd_loaded"/>
|
||||
<MenuItem Header="选择私有翻译接口" Click="TransSourceSelectPri"/>
|
||||
<MenuItem Header="写入私有翻译接口" Click="TransSourceInWindow"/>
|
||||
</MenuItem>
|
||||
|
||||
|
||||
private void TransSourceSelectWnd_loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var window = new TranslationSourceSelect();
|
||||
window.ShowDialog();
|
||||
}
|
||||
private void PrograssSelectWnd_loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var window = new ProgressSelect();
|
||||
window.ShowDialog();
|
||||
}
|
||||
private void TransSourceInWindow(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var window = new TransSourceInWindow();
|
||||
window.ShowDialog();
|
||||
}
|
||||
private void TransSourceSelectPri(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var windows = new TransSourceSelectPri();
|
||||
windows.ShowDialog();
|
||||
}
|
||||
|
Loading…
Reference in new issue