using GalaSoft.MvvmLight.Messaging;
using System;
using System.Windows;
namespace GroupLine.App.View.KanBan
{
///
/// KanBan_PlanCountUpdate.xaml 的交互逻辑
///
public partial class KanBan_PlanCountUpdate : Window
{
public KanBan_PlanCountUpdate()
{
InitializeComponent();
WindowStartupLocation = WindowStartupLocation.CenterScreen;
//InitializeComponent();
//消息标志token:ViewAlert,用于标识只阅读某个或者某些Sender发送的消息,并执行相应的处理,所以Sender那边的token要保持一致
//执行方法Action:ShowReceiveInfo,用来执行接收到消息后的后续工作,注意这边是支持泛型能力的,所以传递参数很方便。
Messenger.Default.Register(this, "CloseCurrentWindow", CloseCurrentWindow);
}
private void CloseCurrentWindow(string obj)
{
this.Close();
}
}
}