| 1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Sunny.UI;
- namespace YangjieTester
- {
- public partial class MessageForm : UIForm
- {
- public MessageForm()
- {
- InitializeComponent();
- }
- public MessageForm(string caption,string info,Color captionBackColor):this()
- {
- this.Caption=caption;
- this.Info=info;
- this.CaptionBackColor=captionBackColor;
- lblCaption.Text=caption;
- lblInfo.Text=info;
- lblCaption.BackColor=captionBackColor;
- }
- public string Caption { get => lblCaption.Text; set => lblCaption.Text = value; }
- public string Info { get => lblInfo.Text; set => lblInfo.Text = value; }
- public Color CaptionBackColor { get => lblCaption.BackColor; set => lblCaption.BackColor = value; }
- }
- }
|