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(); }
/// <summary> /// コンストラクタ /// </summary> public EvaluationSettingDialog(EvaluationControl control) { InitializeComponent(); CommandBindings.Add( new CommandBinding( RagnarokCommands.OK, ExecuteOK)); CommandBindings.Add( new CommandBinding( RagnarokCommands.Cancel, ExecuteCancel)); this.model = new ViewModelProxy(control); this.control = control; DataContext = model; }
private void InitViewModel() { _vm = new ViewModel(); _vm = ViewModelProxy.Proxy(_vm); _vm.PropertyChanged += ViewModelPropertyChanged; }