You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Controls.Default
|
|
|
|
|
{
|
|
|
|
|
public partial class Diamond : UserControl
|
|
|
|
|
{
|
|
|
|
|
#region 字段定义
|
|
|
|
|
|
|
|
|
|
protected Assembly _assembly = Assembly.GetExecutingAssembly();
|
|
|
|
|
protected Stream _imageStream;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 构造方法
|
|
|
|
|
|
|
|
|
|
public Diamond()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
_imageStream = _assembly.GetManifestResourceStream("Mesnac.Controls.Default.Resources.diamond.png");
|
|
|
|
|
this.BackgroundImage = Image.FromStream(_imageStream);
|
|
|
|
|
this.BackgroundImageLayout = ImageLayout.Stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|