Beispiel #1
0
        public TagViewModel(ChannelMainControlViewModel viewModel, TagModel tag)
        {
            this.viewModel = viewModel;
            this.Tag       = tag;

            this.DeleteTagCommand = this.CreateCommand(() =>
            {
                this.viewModel.RemoveTag(this);
            });
        }
Beispiel #2
0
        public TagViewModel(ChannelMainControlViewModel viewModel, TagModel tag)
        {
            this.viewModel = viewModel;
            this.Tag       = tag;

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