コード例 #1
0
        public IHttpActionResult UpdateText(string id, [FromBody] dynamic model)
        {
            var textId            = new Guid(id);
            var changeTextCommand = new ChangeTextCommand
            {
                Id      = Guid.NewGuid(),
                Content = model.Content,
                Title   = model.Title,
                TextId  = textId
            };

            CommandSender.Publish(changeTextCommand);
            return(Ok());
        }
コード例 #2
0
 public PostitViewModel()
 {
     TextCommand = new ChangeTextCommand(this);
     ColorCommand = new ChangeColorCommand(this);
 }
コード例 #3
0
        private void ChangeTextButton_Click(object sender, RoutedEventArgs e)
        {
            var command = new ChangeTextCommand(CommandLabel, ContentTextBox, this);

            command.Execute();
        }