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.
62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
using System.Reflection;
|
|
using System.Windows.Forms;
|
|
using System.IO;
|
|
|
|
|
|
namespace Mesnac.Controls.Feeding
|
|
{
|
|
/// <summary>
|
|
/// 上辅机控件基类
|
|
/// </summary>
|
|
public class FeedingControl : UserControl
|
|
{
|
|
protected Assembly _assembly;
|
|
protected Stream _imageStream;
|
|
protected bool bFirstCreated = true;
|
|
protected bool _bHaveAction;
|
|
/// <summary>
|
|
/// 是否有动画
|
|
/// </summary>
|
|
public bool bHaveAction
|
|
{
|
|
get
|
|
{
|
|
return _bHaveAction;
|
|
}
|
|
set
|
|
{
|
|
_bHaveAction = value;
|
|
}
|
|
}
|
|
public FeedingControl()
|
|
{
|
|
this.DoubleBuffered = true;
|
|
}
|
|
protected virtual void Init()
|
|
{
|
|
_assembly = Assembly.GetExecutingAssembly();
|
|
}
|
|
|
|
//protected override void Dispose(bool disposing)
|
|
//{
|
|
// //if (disposing && (components != null))
|
|
// //{
|
|
// // CloseStream();
|
|
// //// components.Dispose();
|
|
// //}
|
|
// CloseStream();
|
|
// base.Dispose(disposing);
|
|
//}
|
|
|
|
//protected void CloseStream()
|
|
//{
|
|
// if ( _imageStream != null )
|
|
// {
|
|
// _imageStream.Close();
|
|
// _imageStream.Dispose();
|
|
// _imageStream = null;
|
|
// }
|
|
//}
|
|
}
|
|
}
|