MsgUserControl.cs 625 B

12345678910111213141516171819202122232425262728
  1. using DevExpress.XtraEditors;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace CG.App.UserControl
  12. {
  13. public partial class MsgUserControl : DevExpress.XtraEditors.XtraUserControl
  14. {
  15. public MsgUserControl()
  16. {
  17. InitializeComponent();
  18. this.labelControl1.Text = "";
  19. }
  20. public MsgUserControl(string msg)
  21. :this()
  22. {
  23. this.labelControl1.Text = msg;
  24. }
  25. }
  26. }