NaturalGroundingPlayer.EditVideoWindow.Instance C# (CSharp) Method

Instance() public static method

Displays a window to edit specified video.
public static Instance ( System.Guid videoId, string fileName, IMediaPlayerBusiness player, ClosingCallback callback ) : EditVideoWindow
videoId System.Guid
fileName string
player IMediaPlayerBusiness
callback ClosingCallback
return EditVideoWindow
        public static EditVideoWindow Instance(Guid? videoId, string fileName, IMediaPlayerBusiness player, ClosingCallback callback) {
            EditVideoWindow NewForm = new EditVideoWindow();
            if (videoId != null && videoId != Guid.Empty)
                NewForm.videoId = videoId;
            else
                NewForm.fileName = fileName;
            NewForm.player = player;
            NewForm.callback = callback;
            SessionCore.Instance.Windows.Show(NewForm);
            return NewForm;
        }

Usage Example

        private void menuEdit_Click(object sender, RoutedEventArgs e)
        {
            var Item = DownloadsView.SelectedItem as DownloadItem;

            if (Item != null)
            {
                EditVideoWindow.Instance((Item.Data as DownloadItemData).Media.MediaId, null, null);
            }
        }
All Usage Examples Of NaturalGroundingPlayer.EditVideoWindow::Instance