29 lines
996 B
C#
29 lines
996 B
C#
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();
|
||
}
|
||
}
|
||
}
|