コード例 #1
0
 public POGEditor(POGFile data, HOGFile hogFile, string filename)
 {
     datafile      = data;
     this.filename = filename;
     this.hogFile  = hogFile;
     InitializeComponent();
     this.Text = string.Format("{0} - POG Editor", filename);
     PaletteComboBox.SelectedIndex = 0; //default to groupa.256
 }
コード例 #2
0
 public POGEditor(POGFile data, EditorHOGFile hogFile, StandardUI host, string filename)
 {
     datafile      = data;
     this.filename = filename;
     this.hogFile  = hogFile;
     this.host     = host;
     InitializeComponent();
     this.Text             = string.Format("{0} - POG Editor", filename);
     panel                 = new ImageEditorPanel(data, true, host.DefaultPigFile, host.DefaultPalette);
     panel.PaletteChanged += PaletteComboBox_SelectedIndexChanged;
     panel.SetPalette(host.DefaultPalette);
     components.Add(panel);
     Controls.Add(panel);
     panel.Dock = DockStyle.Fill;
 }