Ejemplo n.º 1
0
 private void SetStyle(Control2 control, MessageBoxTextParameters paramters)
 {
     control.Text = paramters.Text;
     if (paramters.Font != null)
     {
         control.Font = paramters.Font;
     }
     if (paramters.ForeColor.HasValue)
     {
         control.ForeColor = paramters.ForeColor.Value;
     }
     if (paramters.BackColor.HasValue)
     {
         control.BackColor = paramters.BackColor.Value;
     }
 }
Ejemplo n.º 2
0
 private void SetStyle(Control2 control, MessageBoxTextParameters paramters)
 {
     control.Text = paramters.Text;
     if (paramters.Font != null) control.Font = paramters.Font;
     if (paramters.ForeColor.HasValue) control.ForeColor = paramters.ForeColor.Value;
     if (paramters.BackColor.HasValue) control.BackColor = paramters.BackColor.Value;
 }