Пример #1
0
        private void LastCellField_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            ScreenshotRegion screener = new ScreenshotRegion(this);

            if (screener.ShowDialog() == true)
            {
                _gamePreset.LastCell = screener.Rectangle;
                UpdatePresetControls();
            }
        }
Пример #2
0
        private void BonusCellSpriteSelectionCommand_Click(object sender, RoutedEventArgs e)
        {
            ScreenshotRegion screener = new ScreenshotRegion(this);

            if (screener.ShowDialog() == true)
            {
                _gamePreset.BonusCellSprite = screener.Picture;
                UpdatePresetControls();
            }
        }