Example #1
0
        public static void ShowPreview(GUI owner, Song song, Point location)
        {
            if(_this != null)
            {
                if(_this.song == song)
                {
                    return; // do nothing
                }
                if(!_this.IsDisposed)
                {
                    _this.Close();
                }
                _this = null;
            }

            _this = new Preview(owner, song, location);
            _this.Show();
            _this.Focus();
        }
Example #2
0
 private void Preview_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if(this.closingTask != null)
     {
         this.closingTask.Abort();
     }
     Preview._this = null;
 }