예제 #1
0
파일: Commands.cs 프로젝트: cj3j/QuickCuts
 static void Thread_LoadCommandList(CommandListResult result)
 {
     try
     {
         result.Commands = LoadCommandList();
     }
     catch (Exception ex)
     {
         result.Exception = ex;
     }
 }
예제 #2
0
파일: Commands.cs 프로젝트: cj3j/QuickCuts
        public static void LoadCommandListAsync(Action <CommandListResult> callback)
        {
            var result = new CommandListResult();

            Async.DoWork(() => Thread_LoadCommandList(result), () => callback(result));
        }