| 123456789101112131415161718192021222324252627282930313233343536 |
- using System.ComponentModel.Composition;
- using System.Windows;
- 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", "163bio1");
- }
- }
- }
|