UltimateZoneBuilder/Source/BuilderModes/ErrorChecks/ErrorResult.cs

102 lines
2.3 KiB
C#
Raw Normal View History

2008-10-23 11:36:00 +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;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using CodeImp.DoomBuilder.Windows;
using CodeImp.DoomBuilder.IO;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Rendering;
using CodeImp.DoomBuilder.Geometry;
using CodeImp.DoomBuilder.Editing;
using CodeImp.DoomBuilder.Actions;
using CodeImp.DoomBuilder.Types;
using CodeImp.DoomBuilder.Config;
#endregion
namespace CodeImp.DoomBuilder.BuilderModes
{
public class ErrorResult
{
#region ================== Variables
2008-10-23 19:08:55 +00:00
protected string description;
2008-10-23 11:36:00 +00:00
#endregion
#region ================== Properties
2008-10-23 19:08:55 +00:00
public string Description { get { return description; } }
// Override these properties to create buttons
public virtual int Buttons { get { return 0; } }
public virtual string Button1Text { get { return ""; } }
public virtual string Button2Text { get { return ""; } }
public virtual string Button3Text { get { return ""; } }
2008-10-23 11:36:00 +00:00
#endregion
#region ================== Constructor / Destructor
// Constructor
public ErrorResult()
{
// Initialize
}
#endregion
#region ================== Methods
2008-10-23 19:08:55 +00:00
// When this result is selected
public virtual void Selected()
{
}
// When the first button is clicked
public virtual void Button1Click()
{
}
// When the second button is clicked
public virtual void Button2Click()
{
}
// When the third button is clicked
public virtual void Button3Click()
{
}
2008-10-23 11:36:00 +00:00
// This must return the string that is displayed in the listbox
public override string ToString()
{
return "Unknown result";
}
#endregion
}
}