Пример #1
0
        /// <summary>
        ///
        /// </summary>
        private void ShowEditor()
        {
            _propertyGrid.Visible   = false;
            _itemEditor.Visible     = false;
            _playListEditor.Visible = false;

            if (listBoxStage.SelectedItem is MEXStage stage)
            {
                if (buttonGeneralTab.BackFillColor == ThemeColors.TabColorSelected)
                {
                    _propertyGrid.Visible        = true;
                    _propertyGrid.SelectedObject = stage;
                }

                if (buttonItemTab.BackFillColor == ThemeColors.TabColorSelected)
                {
                    _itemEditor.Visible    = true;
                    _itemEditor.DataSource = stage.Items;
                }

                if (buttonPlaylistTab.BackFillColor == ThemeColors.TabColorSelected)
                {
                    _playListEditor.Visible = true;
                    _playListEditor.SetPlaylist(stage.Playlist);
                }
            }
        }
Пример #2
0
        private void ShowEditor()
        {
            _playlistEditor.Visible = false;
            _sssEditor.Visible      = false;
            _cssEditor.Visible      = false;
            _emblems.Visible        = false;

            if (buttonPlaylistTab.BackFillColor == ThemeColors.TabColorSelected)
            {
                _playlistEditor.Visible = true;
                _playlistEditor.SetPlaylist(Core.MEX.MainMenuPlaylist);
            }

            if (buttonSSSTab.BackFillColor == ThemeColors.TabColorSelected)
            {
                _sssEditor.Visible = true;
            }

            if (buttonCSSTab.BackFillColor == ThemeColors.TabColorSelected)
            {
                _cssEditor.Visible = true;
            }

            if (buttonEmblemTab.BackFillColor == ThemeColors.TabColorSelected)
            {
                _emblems.Visible = true;
            }
        }