| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System.ComponentModel.Composition;
- using System.Windows;
- using System.Windows.Controls;
- using Infrastructure;
- namespace Modules.Robot
- {
- /// <summary>
- /// RobotView.xaml 的交互逻辑
- /// </summary>
- [ViewExport(RegionName = "RobotRegion"), PartCreationPolicy(CreationPolicy.NonShared)]
- public partial class RobotView
- {
- public RobotView()
- {
- this.InitializeComponent();
- }
- [Import]
- private RobotViewModel ViewModel
- {
- get
- {
- return this.DataContext as RobotViewModel;
- }
- set
- {
- this.DataContext = value;
- }
- }
- private void btnLogin_Click(object sender, RoutedEventArgs e)
- {
- this.ViewModel.Login("egametang@163.com", "111111");
- }
- }
- }
|