Exemplo n.º 1
0
        private void btnWarp_CheckedChanged(object sender, EventArgs e)
        {
            if (!((DarkRadioButton)sender).Checked)
            {
                return;
            }

            _tileAttributeDialog             = new WarpAttributeDialog(this.ParentForm, this.MapSubject);
            _tileAttributeDialog.SelectTile += (o, args) => this.SelectingTile?.Invoke(o, args);
            _tileAttributeDialog.Submitted  += WarpDialog_Submitted;
            _tileAttributeDialog.Show(this.ParentForm);
        }
Exemplo n.º 2
0
        private void DockMapAttributesOnSelectingTile(object sender, EventArgs eventArgs)
        {
            _tileAttributeDialog = (WarpAttributeDialog)sender;
            _prevPlacementMode   = _placementMode;
            _placementMode       = PlacementMode.Picking_Tile;

            if (_tileAttributeDialog.MapSubject == _map)
            {
                _tileAttributeDialog.Submitted += _tileAttributeDialog_Submitted;
            }
            else
            {
                _tileAttributeDialog.Submitted += TileAttributeDialogOnSubmitted_Inactive;
            }
        }