Ejemplo n.º 1
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            Messages.New.IProductUpdatedEvent pu = new Messages.New.ProductUpdatedMessage
            {
                ProductNumber = int.Parse(textBoxUpdateID.Text),
                Description = textBoxUpdateDesc.Text,
                Name = textBoxUpdateName.Text,
                EventId = Guid.NewGuid(),
                Time = DateTime.Now,
                Duration = TimeSpan.FromSeconds(99999D),
                DepartmentNumber = 10
            };

            FireEvent(pu);
        }
Ejemplo n.º 2
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            Messages.New.IProductUpdatedEvent pu = new Messages.New.ProductUpdatedMessage
            {
                ProductNumber    = int.Parse(textBoxUpdateID.Text),
                Description      = textBoxUpdateDesc.Text,
                Name             = textBoxUpdateName.Text,
                EventId          = Guid.NewGuid(),
                Time             = DateTime.Now,
                Duration         = TimeSpan.FromSeconds(99999D),
                DepartmentNumber = 10
            };

            FireEvent(pu);
        }