private void mniSetBackgroundBitmap_Click(object sender, System.EventArgs e) { if (openBitmapDialog.ShowDialog() != DialogResult.OK) return; if (openBitmapDialog.FileName == null) return; m_ts = new ToggleableState(); m_bmBackground = new Bitmap(openBitmapDialog.FileName); PaintFrame(); }
private void mniImport_Click(object sender, System.EventArgs e) { if (importFileDialog.ShowDialog() != DialogResult.OK) return; string[] astrFileNames = importFileDialog.FileNames; if (astrFileNames == null) return; m_ts = new ToggleableState(); m_anis = new AnimSet(); if (!AED.Import(m_anis, astrFileNames)) return; rbtnA.Checked = true; // rbtnB.Checked = false; ResetTreeView(); UpdateFrameList(); ShowFirstFrame(); }