protected void EventContextMenuNewRoom(object sender, EventArgs e)
{
if(this._currentRoom != null && this._currentRoom.GetCorners().Count <= 1) {
this.ActiveBlueprint.Rooms.Remove(this._currentRoom);
}
this._dialogNewRoom = new NewRoomDialog(delegate {
this._currentRoom = this._dialogNewRoom.Result;
if(this._currentRoom != null) {
this._status = Status.CreateRoomSelect;
this.ActiveBlueprint.Rooms.Add(this._currentRoom);
this.Invalidate();
}
this.Controls.Remove(this._dialogNewRoom);
});
this.Controls.Add(this._dialogNewRoom);
this._dialogNewRoom.Show();
}