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
        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);
            }
        }
Beispiel #2
0
 private void FilesView_ItemDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (FilesView.SelectedItem != null)
     {
         MoveFileItem Item = (MoveFileItem)FilesView.SelectedItem;
         EditVideoWindow.Instance(Item.VideoId, null, delegate(Media result) {
             if (result != null)
             {
                 business.Load(result.MediaId);
                 DisplayData();
             }
         });
     }
 }
Beispiel #3
0
        private void CommandBinding_EditVideo(object sender, ExecutedRoutedEventArgs e)
        {
            if (!menuEditVideo.IsEnabled)
            {
                return;
            }

            SessionCore.Instance.RatingViewer.UpdatePreference();
            if (SessionCore.Instance.Business.CurrentVideo != null)
            {
                EditVideoWindow.Instance(SessionCore.Instance.Business.CurrentVideo.MediaId, null, delegate(Media result) {
                    if (result != null)
                    {
                        SessionCore.Instance.Business.ReloadVideoInfo();
                    }
                });
            }
        }
 private void menuEdit_Click(object sender, RoutedEventArgs e)
 {
     EditVideoWindow.Instance(video.MediaId, video.FileName, callback);
 }
 private void ShowEditForm(VideoListItem item)
 {
     EditVideoWindow.Instance(item.MediaId, item.FileName, EditForm_Closed);
 }