添加项目文件。
This commit is contained in:
300
GroupLine.App/View/KanBan/KanBanIndex.xaml
Normal file
300
GroupLine.App/View/KanBan/KanBanIndex.xaml
Normal file
@@ -0,0 +1,300 @@
|
||||
<UserControl
|
||||
x:Class="GroupLine.App.View.KanBan.KanBanIndex"
|
||||
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:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="990"
|
||||
d:DesignWidth="1400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="5*" />
|
||||
<RowDefinition Height="1*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="5*" />
|
||||
<ColumnDefinition Width="5*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox Margin="10,10,10,10" Header="休息时间-搜索条件">
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Vertical">
|
||||
<StackPanel.Resources>
|
||||
<Style TargetType="StackPanel">
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="Margin" Value="0,0,0,4" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel
|
||||
Margin="20"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label
|
||||
HorizontalAlignment="Center"
|
||||
HorizontalContentAlignment="Center"
|
||||
Content="班次:" />
|
||||
<DockPanel x:Name="Combbox1">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding SearchClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Background=" AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="OrangeRed"
|
||||
Command="{Binding SearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding CreateFormCmd}"
|
||||
Content="增加" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding DeleteFormCmd}"
|
||||
Content="删除" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding UpdateFormCmd}"
|
||||
Content="修改" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<StackPanel Grid.Row="1" Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="500" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid
|
||||
x:Name="dg1"
|
||||
Grid.ColumnSpan="2"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListWorkTimeDto}"
|
||||
SelectionMode="Single">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding SelectedItemsCmd}" CommandParameter="{Binding ElementName=dg1}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="0"
|
||||
Binding="{Binding ID}"
|
||||
Header="" />
|
||||
<DataGridTextColumn
|
||||
Width="80"
|
||||
Binding="{Binding ClassNum}"
|
||||
Header="班次" />
|
||||
<DataGridTextColumn
|
||||
Width="80"
|
||||
Binding="{Binding Index}"
|
||||
Header="排序" />
|
||||
<DataGridTextColumn
|
||||
Width="160"
|
||||
Binding="{Binding StartTime}"
|
||||
Header="开始时间" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding EndTime}"
|
||||
Header="结束时间" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
||||
Header="创建时间" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<GroupBox
|
||||
Grid.Column="1"
|
||||
Margin="10,10,10,10"
|
||||
Header="计划产量-搜索条件">
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Vertical">
|
||||
<StackPanel.Resources>
|
||||
<Style TargetType="StackPanel">
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="Margin" Value="0,0,0,4" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</StackPanel.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="9*" />
|
||||
<RowDefinition Height="3*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Margin="20" HorizontalAlignment="Center">
|
||||
<Label HorizontalContentAlignment="Center" Content="创建时间:" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="0,0,10,0"
|
||||
materialDesign:HintAssist.Hint="开始时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchStartTime, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
<DatePicker
|
||||
Width="120"
|
||||
Margin="10,0,10,0"
|
||||
materialDesign:HintAssist.Hint="结束时间"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding SearchEndTime, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Background=" AliceBlue"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="OrangeRed"
|
||||
Command="{Binding PlanCountSearchCmd}"
|
||||
Content="搜索" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountCreateFormCmd}"
|
||||
Content="增加" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountDeleteFormCmd}"
|
||||
Content="删除" />
|
||||
<Button
|
||||
Width="120"
|
||||
Height="30"
|
||||
Margin="10,10,10,10"
|
||||
HorizontalAlignment="Center"
|
||||
Background="Green"
|
||||
Command="{Binding PlanCountUpdateFormCmd}"
|
||||
Content="修改" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
Margin="5">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="500" />
|
||||
</Grid.RowDefinitions>
|
||||
<DataGrid
|
||||
x:Name="dg2"
|
||||
Grid.ColumnSpan="2"
|
||||
AutoGenerateColumns="False"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding ListPlanCountDto}"
|
||||
SelectionMode="Single">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding SelectedItemCmd}" CommandParameter="{Binding ElementName=dg2}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="0"
|
||||
Binding="{Binding ID}"
|
||||
Header="" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding PlanDate, StringFormat={}{0:yyyy-MM-dd}}"
|
||||
Header="计划日期" />
|
||||
<DataGridTextColumn
|
||||
Width="120"
|
||||
Binding="{Binding ClassNum}"
|
||||
Header="班次" />
|
||||
<!--<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding AGroup}"
|
||||
Header="前组" />
|
||||
<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding BGroup}"
|
||||
Header="后组" />-->
|
||||
<DataGridTextColumn
|
||||
Width="100"
|
||||
Binding="{Binding CGroup}"
|
||||
Header="完成" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
||||
Header="创建时间" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
55
GroupLine.App/View/KanBan/KanBanIndex.xaml.cs
Normal file
55
GroupLine.App/View/KanBan/KanBanIndex.xaml.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using System;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace GroupLine.App.View.KanBan
|
||||
{
|
||||
/// <summary>
|
||||
/// KanBanIndex.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class KanBanIndex : UserControl
|
||||
{
|
||||
public KanBanIndex()
|
||||
{
|
||||
InitializeComponent();
|
||||
//打开OpenUpdateWindow
|
||||
Messenger.Default.Register<String>(this, "Open_KanBan_WorkTimeCreate_CreateWindow", OpenCreateWindow);
|
||||
Messenger.Default.Register<String>(this, "Open_KanBan_WorkTimeUpdate_UpdateWindow", OpenUpdateWindow);
|
||||
|
||||
Messenger.Default.Register<String>(this, "Open_KanBan_PlanCountCreate_CreateWindow", OpenPlanCountCreateWindow);
|
||||
Messenger.Default.Register<String>(this, "Open_KanBan_PlanCountUpdate_UpdateWindow", OpenPlanCountUpdateWindow);
|
||||
}
|
||||
|
||||
private void OpenPlanCountUpdateWindow(string obj)
|
||||
{
|
||||
KanBan_PlanCountUpdate update = new KanBan_PlanCountUpdate();
|
||||
update.ShowDialog();
|
||||
}
|
||||
|
||||
private void OpenPlanCountCreateWindow(string obj)
|
||||
{
|
||||
KanBan_PlanCountCreate create = new KanBan_PlanCountCreate();
|
||||
create.ShowDialog();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 打开窗体
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
private void OpenCreateWindow(string obj)
|
||||
{
|
||||
KanBan_Create create = new KanBan_Create();
|
||||
create.ShowDialog();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新窗体
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
private void OpenUpdateWindow(string obj)
|
||||
{
|
||||
KanBan_Update update = new KanBan_Update();
|
||||
update.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
111
GroupLine.App/View/KanBan/KanBan_Create.xaml
Normal file
111
GroupLine.App/View/KanBan/KanBan_Create.xaml
Normal file
@@ -0,0 +1,111 @@
|
||||
<Window
|
||||
x:Class="GroupLine.App.View.KanBan.KanBan_Create"
|
||||
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:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="创建时间"
|
||||
Width="600"
|
||||
Height="400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
|
||||
<Setter Property="Width" Value="200" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="Margin" Value="0,0,20,0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<materialDesign:ColorZone Height="45" Background="MediumOrchid">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding CreateCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果填写数据完成的话,请选择提交">
|
||||
提交
|
||||
</Button>
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding CancelCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果不想提交当前表单数据的话,请选择取消">
|
||||
取消
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</materialDesign:ColorZone>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Vertical">
|
||||
<StackPanel Margin="20" Orientation="Horizontal">
|
||||
<Label Content="班次:" />
|
||||
<DockPanel x:Name="Combbox">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding FormWorkTimeDto.ClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="排序:" />
|
||||
<TextBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="比如:A1,B2,C3"
|
||||
Text="{Binding FormWorkTimeDto.Index, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="开始时间:" />
|
||||
<materialDesign:TimePicker
|
||||
x:Name="PresetTimePicker1"
|
||||
Width="120"
|
||||
Is24Hours="True"
|
||||
Text="{Binding FormWorkTimeDto.StartTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="结束时间:" />
|
||||
<materialDesign:TimePicker
|
||||
x:Name="PresetTimePicker2"
|
||||
Width="120"
|
||||
Is24Hours="True"
|
||||
Text="{Binding FormWorkTimeDto.EndTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
28
GroupLine.App/View/KanBan/KanBan_Create.xaml.cs
Normal file
28
GroupLine.App/View/KanBan/KanBan_Create.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace GroupLine.App.View.KanBan
|
||||
{
|
||||
/// <summary>
|
||||
/// KanBan_Create.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class KanBan_Create : Window
|
||||
{
|
||||
public KanBan_Create()
|
||||
{
|
||||
InitializeComponent();
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||
//InitializeComponent();
|
||||
|
||||
//消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致
|
||||
//执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。
|
||||
Messenger.Default.Register<String>(this, "CloseCurrentWindow", CloseCurrentWindow);
|
||||
}
|
||||
|
||||
private void CloseCurrentWindow(string obj)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
126
GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml
Normal file
126
GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml
Normal file
@@ -0,0 +1,126 @@
|
||||
<Window
|
||||
x:Class="GroupLine.App.View.KanBan.KanBan_PlanCountCreate"
|
||||
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:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="创建时间"
|
||||
Width="600"
|
||||
Height="400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
|
||||
<Setter Property="Width" Value="200" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="Margin" Value="0,0,20,0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<materialDesign:ColorZone Height="45" Background="MediumOrchid">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding PlanCountCreateCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果填写数据完成的话,请选择提交">
|
||||
提交
|
||||
</Button>
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding CancelCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果不想提交当前表单数据的话,请选择取消">
|
||||
取消
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</materialDesign:ColorZone>
|
||||
<StackPanel Grid.Row="1" Orientation="Vertical">
|
||||
|
||||
<StackPanel
|
||||
Margin="0,20,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label Content="班次:" />
|
||||
<DockPanel x:Name="Combbox">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="200"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding FormPlanCountDto.ClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Margin="10"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label Content="计划日期:" />
|
||||
<DatePicker
|
||||
Width="200"
|
||||
Margin="0,0,10,0"
|
||||
materialDesign:HintAssist.Hint="计划日期"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding FormPlanCountDto.PlanDate, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!--<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="前组:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="前组" Text="{Binding FormPlanCountDto.AGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="后组:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="后组" Text="{Binding FormPlanCountDto.BGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>-->
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="完成:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="完成" Text="{Binding FormPlanCountDto.CGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
27
GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml.cs
Normal file
27
GroupLine.App/View/KanBan/KanBan_PlanCountCreate.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace GroupLine.App.View.KanBan
|
||||
{
|
||||
/// <summary>
|
||||
/// KanBan_PlanCountCreate.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class KanBan_PlanCountCreate : Window
|
||||
{
|
||||
public KanBan_PlanCountCreate()
|
||||
{
|
||||
InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||
//InitializeComponent();
|
||||
|
||||
//消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致
|
||||
//执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。
|
||||
Messenger.Default.Register<String>(this, "CloseCurrentWindow", CloseCurrentWindow);
|
||||
}
|
||||
|
||||
private void CloseCurrentWindow(string obj)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
126
GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml
Normal file
126
GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml
Normal file
@@ -0,0 +1,126 @@
|
||||
<Window
|
||||
x:Class="GroupLine.App.View.KanBan.KanBan_PlanCountUpdate"
|
||||
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:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="创建时间"
|
||||
Width="600"
|
||||
Height="400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
|
||||
<Setter Property="Width" Value="200" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="Margin" Value="0,0,20,0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<materialDesign:ColorZone Height="45" Background="MediumOrchid">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding PlanCountUpdateCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果填写数据完成的话,请选择提交">
|
||||
提交
|
||||
</Button>
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding CancelCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果不想提交当前表单数据的话,请选择取消">
|
||||
取消
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</materialDesign:ColorZone>
|
||||
<StackPanel Grid.Row="1" Orientation="Vertical">
|
||||
|
||||
<StackPanel
|
||||
Margin="0,20,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label Content="班次:" />
|
||||
<DockPanel x:Name="Combbox">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="200"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding DgSelectedPlanCountDto.ClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel
|
||||
Margin="10"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<Label Content="计划日期:" />
|
||||
<DatePicker
|
||||
Width="200"
|
||||
Margin="0,0,10,0"
|
||||
materialDesign:HintAssist.Hint="计划日期"
|
||||
Language="zh-CN"
|
||||
SelectedDate="{Binding DgSelectedPlanCountDto.PlanDate, Mode=TwoWay}"
|
||||
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<!--<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="前组:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="前组" Text="{Binding DgSelectedPlanCountDto.AGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="后组:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="后组" Text="{Binding DgSelectedPlanCountDto.BGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>-->
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="完成:" />
|
||||
<TextBox materialDesign:HintAssist.Hint="完成" Text="{Binding DgSelectedPlanCountDto.CGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
28
GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml.cs
Normal file
28
GroupLine.App/View/KanBan/KanBan_PlanCountUpdate.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace GroupLine.App.View.KanBan
|
||||
{
|
||||
/// <summary>
|
||||
/// KanBan_PlanCountUpdate.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class KanBan_PlanCountUpdate : Window
|
||||
{
|
||||
public KanBan_PlanCountUpdate()
|
||||
{
|
||||
InitializeComponent();
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||
//InitializeComponent();
|
||||
|
||||
//消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致
|
||||
//执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。
|
||||
Messenger.Default.Register<String>(this, "CloseCurrentWindow", CloseCurrentWindow);
|
||||
}
|
||||
|
||||
private void CloseCurrentWindow(string obj)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
110
GroupLine.App/View/KanBan/KanBan_Update.xaml
Normal file
110
GroupLine.App/View/KanBan/KanBan_Update.xaml
Normal file
@@ -0,0 +1,110 @@
|
||||
<Window
|
||||
x:Class="GroupLine.App.View.KanBan.KanBan_Update"
|
||||
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:local="clr-namespace:GroupLine.App.View.KanBan"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="创建时间"
|
||||
Width="600"
|
||||
Height="400"
|
||||
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
|
||||
<Setter Property="Width" Value="200" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
||||
<Setter Property="Width" Value="120" />
|
||||
<Setter Property="Margin" Value="0,0,20,0" />
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
||||
<Setter Property="Padding" Value="0,3" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<materialDesign:ColorZone Height="45" Background="MediumOrchid">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding UpdateCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果填写数据完成的话,请选择提交">
|
||||
提交
|
||||
</Button>
|
||||
<Button
|
||||
Width="100"
|
||||
Margin="20,0,0,0"
|
||||
Command="{Binding CancelCmd}"
|
||||
Style="{StaticResource MaterialDesignRaisedLightButton}"
|
||||
ToolTip="如果不想提交当前表单数据的话,请选择取消">
|
||||
取消
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
</materialDesign:ColorZone>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Vertical">
|
||||
<StackPanel Margin="20" Orientation="Horizontal">
|
||||
<Label Content="班次:" />
|
||||
<DockPanel x:Name="Combbox">
|
||||
<StackPanel>
|
||||
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
||||
<ComboBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="班次"
|
||||
DisplayMemberPath="Text"
|
||||
ItemsSource="{Binding ClassNumComboBoxList}"
|
||||
SelectedValue="{Binding DgSelectedWorkTimeDto.ClassNum}"
|
||||
SelectedValuePath="Text" />
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="排序:" />
|
||||
<TextBox
|
||||
Width="120"
|
||||
materialDesign:HintAssist.Hint="比如:A1,B2,C3"
|
||||
Text="{Binding DgSelectedWorkTimeDto.Index, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="开始时间:" />
|
||||
<materialDesign:TimePicker
|
||||
x:Name="PresetTimePicker1"
|
||||
Width="120"
|
||||
Is24Hours="True"
|
||||
Text="{Binding DgSelectedWorkTimeDto.StartTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<Label Content="结束时间:" />
|
||||
<materialDesign:TimePicker
|
||||
x:Name="PresetTimePicker2"
|
||||
Width="120"
|
||||
Is24Hours="True"
|
||||
Text="{Binding DgSelectedWorkTimeDto.EndTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
28
GroupLine.App/View/KanBan/KanBan_Update.xaml.cs
Normal file
28
GroupLine.App/View/KanBan/KanBan_Update.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using GalaSoft.MvvmLight.Messaging;
|
||||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace GroupLine.App.View.KanBan
|
||||
{
|
||||
/// <summary>
|
||||
/// KanBan_Update.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class KanBan_Update : Window
|
||||
{
|
||||
public KanBan_Update()
|
||||
{
|
||||
InitializeComponent();
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||
//InitializeComponent();
|
||||
|
||||
//消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致
|
||||
//执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。
|
||||
Messenger.Default.Register<String>(this, "CloseCurrentWindow", CloseCurrentWindow);
|
||||
}
|
||||
|
||||
private void CloseCurrentWindow(string obj)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user