Ejemplo n.º 1
0
 public ProductCreated(TenantId tenantId, Issues.ProductId id, string name, string description, ProductManager manager, IssueAssigner assigner)
 {
     // TODO: Complete member initialization
     this.TenantId = tenantId.ToString();
     this.ProductId = id.ToString();
     this.Name = name.ToString();
     this.Description = description.ToString();
     this.ProductManager = manager.ToString();
     this.IssueAssigner = assigner.ToString();
 }
    public override void Paint(PaintEventArgs pe)
    {
        if (!m_Control.Visible)
        {
            return;
        }
        Point topLeft = m_BehaviorService.ControlToAdornerWindow(m_Control);

        using (Pen pen = new Pen(Color.Red, 2))
            pe.Graphics.DrawRectangle(pen, topLeft.X, topLeft.Y, m_Control.Width, m_Control.Height);
        Rectangle bounds = Bounds;

        pe.Graphics.FillRectangle(Brushes.Red, bounds);
        pe.Graphics.DrawString(Issues.ToString(), m_Font, Brushes.Black, bounds);
    }