using System.Reflection;
using System.Windows.Forms;
using System.IO;
namespace Mesnac.Controls.Feeding
{
///
/// 上辅机控件基类
///
public class FeedingControl : UserControl
{
protected Assembly _assembly;
protected Stream _imageStream;
protected bool bFirstCreated = true;
protected bool _bHaveAction;
///
/// 是否有动画
///
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;
// }
//}
}
}