private void ChangeCanvasSizeMenuItemClick(object sender, EventArgs e)
        {
            try
            {
                if (CurrentFloorIndex == Constant.NoSelectedFloor)
                {
                    MessageBox.Show(this, Resources.NoSelectedFloorError);
                    return;
                }

                var wizard = new ChangeSizeWizard
                {
                    WidthProperty  = _designerView.CanvasSize.Width,
                    HeightProperty = _designerView.CanvasSize.Height
                };

                if (wizard.ShowDialog() != DialogResult.Yes)
                {
                    return;
                }
                if (!wizard.Ready)
                {
                    return;
                }

                var floorIndex = CurrentMap.Floors.Count - 1;
                _designerViewAdapter.ChangeCanvasSize(wizard.Make(), floorIndex);

                Flush();
            }
            catch (Exception ex)
            {
                ExceptionDialog.Show(this, ex);
            }
        }
        private void OnAddFloor(Floor floor)
        {
            Debug.Assert(floor != null);

            StatusBarMessage("Adding floor...");

            _designerViewAdapter.OnAddFloor(floor);
            _mapViewAdapter.OnAddFloor(floor);

            var floorIndex = CurrentMap.Floors.Count - 1;

            SelectFloor(floorIndex);

            var wizard = new ChangeSizeWizard
            {
                WidthProperty  = _designerView.CanvasSize.Width,
                HeightProperty = _designerView.CanvasSize.Height
            };

            if (wizard.ShowDialog() != DialogResult.Yes)
            {
                return;
            }
            if (wizard.Ready)
            {
                _designerViewAdapter.ChangeCanvasSize(wizard.Make(), floorIndex);
            }

            StatusBarMessage("Floor added.");
            Flush();
        }