private void DrawPreview() { LayoutData layout = null; switch (Category) { case LayoutMode.S3: layout = new SSLayoutData(File.ReadAllBytes(Path.Combine(path, project.S3Stages[StageNumber]))); break; case LayoutMode.SK: layout = new SSLayoutData(Compression.Decompress(Path.Combine(path, project.SKStageSet), CompressionType.Kosinski), StageNumber * SSLayoutData.Size); break; case LayoutMode.BSChunk: layout = new BSChunkLayoutData(Compression.Decompress(Path.Combine(path, project.BlueSphereChunkSet), CompressionType.Kosinski), StageNumber); break; case LayoutMode.BSLayout: layout = new BSStageLayoutData(Compression.Decompress(Path.Combine(path, project.BlueSphereChunkSet), CompressionType.Kosinski), BSChunks); break; } pictureBox1.Image = LayoutDrawer.DrawLayout(layout, 28).ToBitmap(LayoutDrawer.Palette); }
public StatisticsDialog(LayoutData layout) { InitializeComponent(); this.layout = layout; listView4.ListViewItemSorter = new ListViewColumnSorter(); }