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

            this.DeleteTagCommand = this.CreateCommand(() =>
            {
                this.viewModel.RemoveTag(this);
            });
        }
Esempio n. 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));
            });
        }