private void OnFileDrop(object sender, DragEventArgs e)
 {
     if (IsValidDropFile(e))
     {
         string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
         PGControl.OpenVideo(files[0]);
     }
     labelFileDrop.Visibility = Visibility.Collapsed;
 }
        //-----------------------------------------------------------------------------
        // Event Handlers
        //-----------------------------------------------------------------------------

        private void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            supressEvents = false;
            CalculateSizes();
            string[] args = Environment.GetCommandLineArgs();
            if (args.Length > 1)
            {
                PGControl.OpenVideo(args[1]);
            }
        }