UltimateZoneBuilder/Source/Core/Controls/Docker.cs

68 lines
1.5 KiB
C#
Raw Normal View History

2009-07-20 15:16:40 +00:00
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System.Windows.Forms;
#endregion
namespace CodeImp.DoomBuilder.Controls
{
public class Docker
{
#region ================== Variables
private string shortname;
private string fullname;
private string title;
2009-07-22 15:16:28 +00:00
private Control control;
2009-07-20 15:16:40 +00:00
#endregion
#region ================== Variables
public string Name { get { return shortname; } }
internal string FullName { get { return fullname; } }
public string Title { get { return title; } }
2009-07-22 15:16:28 +00:00
public Control Control { get { return control; } }
2009-07-20 15:16:40 +00:00
#endregion
#region ================== Constructor
// Constructor
2009-07-22 15:16:28 +00:00
public Docker(string name, string title, Control control)
2009-07-20 15:16:40 +00:00
{
this.shortname = name;
this.title = title;
2009-07-22 15:16:28 +00:00
this.control = control;
2009-07-20 15:16:40 +00:00
}
#endregion
#region ================== Methods
// This makes the full name
internal void MakeFullName(string prefix)
{
fullname = prefix + "_" + shortname;
}
#endregion
}
}