private void TrackContextMiniplayer_Click(object sender, RoutedEventArgs e) { Hide(); var miniPlayer = new MiniPlayer(this); miniPlayer.Owner = this; miniPlayer.ShowDialog(); Top = miniPlayer.Top; Left = miniPlayer.Left; Show(); }
private void miniplayerMenuItem_Click(object sender, EventArgs e) { using (MiniPlayer miniPlayer = new MiniPlayer()) { Hide(); // Hide the main UI if (miniPlayer.ShowDialog() == DialogResult.Cancel) { Show(); // If the fullscreen button on the miniplayer is pressed, unhide the main UI miniPlayer.Dispose(); } } }