//*************************************************************************************/ // Dispatcher Heler //*************************************************************************************/ public static class DispatcherHelper { public static void Execute(Action action) { if (Application.Current is null||Application.Current.Dispatcher is null) return; // Marshall to Main Thread Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background,action); } }
// Save New File Name to Observable and Display it. rOB.NewName=newFileName; rOB.SecondPass=false; rOB.RenameStatus="No WEB Details yet"; rOB.DontRename=false; // //Utils.DispatcherHelper.Execute(() => ; return newFileName;
// Display and Load Rename Observable Collection with Original File Name //Utils.DispatcherHelper.Execute(() => Gbl.rO.Add(new RenameObservable(fileName,"","Orig Loaded",true,true,filePath,file)));
Application.Current.Dispatcher
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)