mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 22:22:32 +00:00
52 lines
No EOL
1,011 B
C#
52 lines
No EOL
1,011 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CodeImp.DoomBuilder.Interface
|
|
{
|
|
public partial class MainForm : Form
|
|
{
|
|
#region ================== Constants
|
|
|
|
private const string STATUS_READY_TEXT = "Ready.";
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor / Disposer
|
|
|
|
// Constructor
|
|
public MainForm()
|
|
{
|
|
// Setup controls
|
|
InitializeComponent();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ================== Statusbar
|
|
|
|
// This changes status text
|
|
public void DisplayStatus(string status)
|
|
{
|
|
// Update status description
|
|
if(statuslabel.Text != status)
|
|
statuslabel.Text = status;
|
|
|
|
// Refresh if needed
|
|
statusbar.Invalidate();
|
|
this.Update();
|
|
}
|
|
|
|
// This changes status text to Ready
|
|
public void DisplayReady()
|
|
{
|
|
// Display ready status description
|
|
DisplayStatus(STATUS_READY_TEXT);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |