Example #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);
 }
Example #2
0
        public LoginForm()
        {
            InitializeComponent();

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

            DataBind();
        }
Example #3
0
        /// <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;
        }
Example #4
0
 private void InitViewModel()
 {
     _vm = new ViewModel();
     _vm = ViewModelProxy.Proxy(_vm);
     _vm.PropertyChanged += ViewModelPropertyChanged;
 }