Beispiel #1
0
        public UserTitleViewModel(UsersSettingsControlViewModel viewModel, UserTitleModel title)
        {
            this.viewModel = viewModel;
            this.Title     = title;

            this.DeleteCommand = this.CreateCommand(() =>
            {
                this.viewModel.DeleteTitle(this);
            });
        }
        public UserTitleViewModel(UsersSettingsControlViewModel viewModel, UserTitleModel title)
        {
            this.viewModel = viewModel;
            this.Title     = title;

            this.DeleteCommand = this.CreateCommand((parameter) =>
            {
                this.viewModel.DeleteTitle(this);
                return(Task.FromResult(0));
            });
        }