muddesigner/VisualComponents/VisualContainer.cs
Scionwest_cp 72a111c09d Mud Engine:
- Added Controls namespace to the engine
 - Copied VisualContainer and RoomControl from Visual Designer to MUDEngine.Controls namespace
 - Added Control property to BaseObject, all objects now can have a custom UserControl that the Visual Designer will create during runtime when the object is dragged to the designer.
2009-11-27 20:44:15 -08:00

32 lines
830 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace VisualComponents
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public partial class VisualContainer : UserControl
{
MUDEngine.Objects.BaseObject _Object;
[Browsable(true)]
public string Title
{
get { return btnTitle.Text; }
set { btnTitle.Text = value; }
}
public VisualContainer(MUDEngine.Objects.BaseObject EngineObject)
{
InitializeComponent();
_Object = EngineObject;
}
}
}