public static Instance ( System.Guid videoId, string fileName, IMediaPlayerBusiness player, ClosingCallback callback ) : |
||
videoId | System.Guid | |
fileName | string | |
player | IMediaPlayerBusiness | |
callback | ClosingCallback | |
리턴 |
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;
}
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); } }