private void ViewShades(ThemeTextBlock ThemeBlock) { List <ThemeTextBlock> ShadeBlocks = new List <ThemeTextBlock>(); for (int j = 1; j < 10; j++) { ThemeTextBlock Block = new ThemeTextBlock(ThemeBlock.FGName, ThemeBlock.BGName, ThemeBlock.ColorSet); Block.Shades(j * 10); ShadeBlocks.Add(Block); if (4 < j) { ThemeTextBlock BlockR = new ThemeTextBlock("RelColorShades", ThemeBlock.BGName, ThemeBlock.ColorSet); BlockR.Shades(j * 10); ShadeBlocks.Add(BlockR); } } ShadesView.ItemsSource = ShadeBlocks; }
private void ViewShades( ThemeTextBlock ThemeBlock ) { List<ThemeTextBlock> ShadeBlocks = new List<ThemeTextBlock>(); for( int j = 1; j < 10; j ++ ) { ThemeTextBlock Block = new ThemeTextBlock( ThemeBlock.FGName, ThemeBlock.BGName, ThemeBlock.ColorSet ); Block.Shades( j * 10 ); ShadeBlocks.Add( Block ); if ( 4 < j ) { ThemeTextBlock BlockR = new ThemeTextBlock( "APPEARENCE_THEME_RELATIVE_SHADES_COLOR", ThemeBlock.BGName, ThemeBlock.ColorSet ); BlockR.Shades( j * 10 ); ShadeBlocks.Add( BlockR ); } } ShadesView.ItemsSource = ShadeBlocks; }