tangxu
2024-11-04 ebd031e3bed6c1cfddce8fc9b98f7f9e95fb9e32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
 
namespace WenSkin.SQL
{
    [Designer(typeof(WenSkin.Design.Designer.TextBoxComponentDesigner))]
    [ToolboxBitmap(typeof(RichTextBox))]
    public class SqlString : Component
    {
        [Category("Wen")]
        [Description("Sql链接字符串")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        [Editor(typeof(Design.Editor.TextEditFormUITypeEditor), typeof(UITypeEditor))]
        public string Text { get; set; }
 
        public string TextFormat(params object[] args)
        {
            string result = string.Format(this.Text, args);
            return result;
        }
    }
}