Esempio n. 1
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            _refreshManager?.Dispose();

            TileViewerConfig config = ConfigManager.Config.Debug.TileViewer;

            config.WindowSize       = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            config.WindowLocation   = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            config.AutoRefresh      = mnuAutoRefresh.Checked;
            config.AutoRefreshSpeed = _refreshManager.AutoRefreshSpeed;
            config.ShowTileGrid     = chkShowTileGrid.Checked;
            config.RefreshScanline  = ctrlScanlineCycleSelect.Scanline;
            config.RefreshCycle     = ctrlScanlineCycleSelect.Cycle;
            config.ImageScale       = ctrlImagePanel.ImageScale;

            config.Source          = cboMemoryType.GetEnumValue <SnesMemoryType>();
            config.Format          = cboFormat.GetEnumValue <TileFormat>();
            config.Layout          = cboLayout.GetEnumValue <TileLayout>();
            config.ColumnCount     = (int)nudColumns.Value;
            config.Address         = (int)nudAddress.Value;
            config.PageSize        = (int)nudSize.Value;
            config.SelectedPalette = ctrlPaletteViewer.SelectedPalette;

            ConfigManager.ApplyChanges();
            base.OnFormClosed(e);
        }
Esempio n. 2
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            _notifListener?.Dispose();
            _refreshManager?.Dispose();

            EventViewerConfig config = ConfigManager.Config.Debug.EventViewer;

            config.WindowSize       = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            config.WindowLocation   = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            config.ImageScale       = ctrlPpuView.ImageScale;
            config.AutoRefresh      = _refreshManager.AutoRefresh;
            config.AutoRefreshSpeed = _refreshManager.AutoRefreshSpeed;

            base.OnFormClosed(e);
        }
Esempio n. 3
0
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            base.OnFormClosing(e);

            this._notifListener.OnNotification -= this._notifListener_OnNotification;
            _notifListener?.Dispose();
            _refreshManager?.Dispose();

            _binder.UpdateObject();
            _config.EventViewerAutoRefresh      = _refreshManager.AutoRefresh;
            _config.EventViewerAutoRefreshSpeed = _refreshManager.AutoRefreshSpeed;
            _config.EventViewerLocation         = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            _config.EventViewerSize             = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            ConfigManager.Config.DebugInfo      = _config;
            ConfigManager.ApplyChanges();
        }
Esempio n. 4
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            _notifListener?.Dispose();
            _refreshManager?.Dispose();

            RegisterViewerConfig config = ConfigManager.Config.Debug.RegisterViewer;

            config.WindowSize      = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            config.WindowLocation  = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            config.AutoRefresh     = mnuAutoRefresh.Checked;
            config.RefreshScanline = ctrlScanlineCycleSelect.Scanline;
            config.RefreshCycle    = ctrlScanlineCycleSelect.Cycle;
            ConfigManager.ApplyChanges();

            base.OnFormClosed(e);
        }
Esempio n. 5
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            _refreshManager?.Dispose();

            TilemapViewerConfig config = ConfigManager.Config.Debug.TilemapViewer;

            config.WindowSize        = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            config.WindowLocation    = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            config.AutoRefresh       = mnuAutoRefresh.Checked;
            config.AutoRefreshSpeed  = _refreshManager.AutoRefreshSpeed;
            config.ShowTileGrid      = chkShowTileGrid.Checked;
            config.ShowScrollOverlay = chkShowScrollOverlay.Checked;
            config.RefreshScanline   = ctrlScanlineCycleSelect.Scanline;
            config.RefreshCycle      = ctrlScanlineCycleSelect.Cycle;
            config.ImageScale        = ctrlImagePanel.ImageScale;
            ConfigManager.ApplyChanges();
            base.OnFormClosed(e);
        }
Esempio n. 6
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            _refreshManager?.Dispose();

            SpriteViewerConfig config = ConfigManager.Config.Debug.SpriteViewer;

            config.WindowSize           = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Size : this.Size;
            config.WindowLocation       = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            config.AutoRefresh          = mnuAutoRefresh.Checked;
            config.AutoRefreshSpeed     = _refreshManager.AutoRefreshSpeed;
            config.HideOffscreenSprites = ctrlSpriteList.HideOffscreenSprites;
            config.RefreshScanline      = ctrlScanlineCycleSelect.Scanline;
            config.RefreshCycle         = ctrlScanlineCycleSelect.Cycle;
            config.ImageScale           = ctrlImagePanel.ImageScale;
            config.SplitterDistance     = ctrlSplitContainer.SplitterDistance;
            ConfigManager.ApplyChanges();
            base.OnFormClosed(e);
        }
Esempio n. 7
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     _refreshManager?.Dispose();
     base.OnFormClosed(e);
 }