2014-05-08 12:34:24 +00:00
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
|
|
|
{
|
|
|
|
|
public partial class StatisticsControl : UserControl
|
|
|
|
|
{
|
2014-12-03 23:15:26 +00:00
|
|
|
|
public StatisticsControl()
|
|
|
|
|
{
|
2014-05-08 12:34:24 +00:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
this.Visible = false;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-03 23:15:26 +00:00
|
|
|
|
public void UpdateStatistics()
|
|
|
|
|
{
|
2014-05-08 12:34:24 +00:00
|
|
|
|
verticescount.Text = General.Map.Map.Vertices.Count.ToString();
|
|
|
|
|
linedefscount.Text = General.Map.Map.Linedefs.Count.ToString();
|
|
|
|
|
sidedefscount.Text = General.Map.Map.Sidedefs.Count.ToString();
|
|
|
|
|
sectorscount.Text = General.Map.Map.Sectors.Count.ToString();
|
|
|
|
|
thingscount.Text = General.Map.Map.Things.Count.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|