40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System.Windows;
|
|
using SWS.CAD.ViewModels;
|
|
|
|
namespace SWS.CAD.Views
|
|
{
|
|
/// <summary>
|
|
/// Project.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class UserNotification : Window
|
|
{
|
|
public UserNotification(UserNotificationViewModel viewModel)
|
|
{
|
|
InitializeComponent();
|
|
|
|
viewModel.CloseWindowAction = this.Close;
|
|
DataContext = viewModel;
|
|
}
|
|
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
var x = DataContext as UserNotificationViewModel;
|
|
x.onWindow_loaded(null);
|
|
//btnReceive.Style = (Style)this.FindResource("sysBtn4");
|
|
}
|
|
|
|
private void btnReceive_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
btnReceive.Style = (Style)this.FindResource("sysBtn4");
|
|
btnSend.Style = (Style)this.FindResource("sysBtn3");
|
|
}
|
|
|
|
private void btnSend_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
btnReceive.Style = (Style)this.FindResource("sysBtn3");
|
|
btnSend.Style = (Style)this.FindResource("sysBtn4");
|
|
}
|
|
|
|
}
|
|
}
|