public static FormSong StartInstance(DirectoryInfo chartPath) { if (_instance == null) { _instance = new FormSong(chartPath); } return(_instance); }
private void ButtonPlay_Click(object sender, EventArgs e) { FormSong fs = FormSong.StartInstance(songs[listBoxSongs.SelectedIndex]); fs.Show(); }
private static void StopInstance() { _instance = null; }