//
// System.ComponentModel.Component.cs
//
// Author:
// Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc. http://www.ximian.com
//
namespace System.ComponentModel {
//
// Component class.
//
//
//
// Longer description
//
public class Component : MarshalByRefObject, IComponent, IDisposable {
IContainer icontainer;
bool design_mode;
EventHandlerList event_handlers;
ISite isite;
//
// Component Constructor
//
public Component ()
{
}
//
// Get IContainer of this Component
//
public IContainer Container {
get {
return icontainer;
}
}
protected bool DesignMode {
get {
return design_mode;
}
}
protected EventHandlerList Events {
get {
return event_handlers;
}
}
public virtual ISite Site {
get {
return isite;
}
set {
isite = value;
}
}
//
// Dispose resources used by this component
//
public virtual void Dispose ()
{
}
//
// Controls disposal of resources used by this.
//
//
// Controls which resources are released
//
//
// if release_all is set to true, both managed and unmanaged
// resources should be released. If release_all is set to false,
// only unmanaged resources should be disposed
//
protected virtual void Dispose (bool release_all)
{
}
//
// Implements the IServiceProvider interface
//
protected virtual object GetService (Type service)
{
}
//
// FIXME: Figure out this one.
//
public event EventHandler Disposed;
}
}