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); }
public LoginForm() { InitializeComponent(); //InitViewModel _vm = new VMLoginForm(); _vm = ViewModelProxy.Proxy(_vm); _vm.ValidateFailed = ValidateFialed; DataBind(); }
private void InitViewModel() { _vm = new ViewModel(); _vm = ViewModelProxy.Proxy(_vm); _vm.PropertyChanged += ViewModelPropertyChanged; }