예제 #1
0
        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);
        }
예제 #2
0
 public StatisticsDialog(LayoutData layout)
 {
     InitializeComponent();
     this.layout = layout;
     listView4.ListViewItemSorter = new ListViewColumnSorter();
 }