public StageSelectEdit(ProjectEditor editor)
        {
            project = editor.Project;

            InitializeComponent();
            this.stageSelect = project.StageSelects.FirstOrDefault();
            this.preview.Image = new Bitmap(project.ScreenWidth, project.ScreenHeight);

            bossX.Value = stageSelect.BossSpacingHorizontal;
            bossY.Value = stageSelect.BossSpacingVertical;

            comboSlot.SelectedIndex = -1;
            foreach (var stage in project.Stages) comboStages.Items.Add(stage.Name);

            if (stageSelect.Background != null)
            {
                textBackground.Text = stageSelect.Background.Absolute;
                try
                {
                    this.background = (Bitmap)Image.FromFile(stageSelect.Background.Absolute);
                    this.background.SetResolution(this.preview.Image.HorizontalResolution, this.preview.Image.VerticalResolution);
                }
                catch
                {
                    this.textBackground.Text = "";
                }
            }

            if (stageSelect.Music != null)
            {

            }

            if (stageSelect.ChangeSound != null)
            {
                if (stageSelect.ChangeSound.Type == AudioType.Wav)
                {
                    textSound.Text = stageSelect.ChangeSound.Path.Absolute;
                }
            }

            ReDraw();
        }
 public void AddStageSelect(StageSelect select)
 {
     stageSelects.Add(select);
 }