private void changePwdToolStripMenuItem_Click(object sender, EventArgs e) { VMChangePwd model = new VMChangePwd(); model.ID = ClientInfo.CurrentUser.Id; model = ViewModelProxy.Proxy(model); OpenDialogForm(typeof(ChangePasswordForm), "修改密码", model); }
public ChangePasswordForm(VMChangePwd viewModel, string title, EditFormPurpose formPurpose) : base(viewModel, title, formPurpose) { viewModel.Submitted += OnSubmitted; }