public static FormSong StartInstance(DirectoryInfo chartPath)
        {
            if (_instance == null)
            {
                _instance = new FormSong(chartPath);
            }

            return(_instance);
        }
示例#2
0
        private void ButtonPlay_Click(object sender, EventArgs e)
        {
            FormSong fs = FormSong.StartInstance(songs[listBoxSongs.SelectedIndex]);

            fs.Show();
        }
 private static void StopInstance()
 {
     _instance = null;
 }