public static void Instance(Window parent, EncodingCompletedEventArgs jobInfo) { EncodingFailedWindow NewForm = new EncodingFailedWindow(); NewForm.Owner = parent; NewForm.jobInfo = jobInfo; NewForm.Show(); }
private void business_EncodingFailed(object sender, EncodingCompletedEventArgs e) { Application.Current.Dispatcher.Invoke(() => EncodingFailedWindow.Instance(this, e)); }