Exemple #1
0
 private void changePwdToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ChangePasswordForm.ViewModel model = new ChangePasswordForm.ViewModel();
     model.ID = ClientInfo.UserID;
     model    = ViewModelProxy.Proxy(model);
     OpenDialogForm(typeof(AutoEditForm), "修改密码", model);
 }
Exemple #2
0
        public LoginForm()
        {
            InitializeComponent();

            //InitViewModel
            _vm = new VMLoginForm();
            _vm = ViewModelProxy.Proxy(_vm);
            _vm.ValidateFailed = ValidateFialed;

            DataBind();
        }
Exemple #3
0
 private void InitViewModel()
 {
     _vm = new ViewModel();
     _vm = ViewModelProxy.Proxy(_vm);
     _vm.PropertyChanged += ViewModelPropertyChanged;
 }