private void Btn_LoadSpritesheet_Click(object sender, EventArgs e) { using (OpenFileDialog ofd = new OpenFileDialog()) { if (ofd.ShowDialog() == DialogResult.OK) { Slicer.LoadImage(ofd.FileName); } } }