Example #1
0
        private void OnResizeMapSelected(object sender, EventArgs e)
        {
            var dlg = new ChangeSizeDialog
            {
                Map = Map
            };

            dlg.Closed += (s, a) =>
            {
                if (!dlg.Result)
                {
                    return;
                }

                ResizeMap(dlg.Action, dlg.Direction, dlg.Amount, dlg.FillerTile);
            };

            dlg.ShowModal(_desktop);
        }
Example #2
0
 private void _btnChangeSize_ItemClick(object sender, ItemClickEventArgs e)
 {
     var dialog = new ChangeSizeDialog();
     var result = dialog.ShowDialog();
 }