private void LoadLiveReportTransactionNameOfPlace(DateTime dateFrom, DateTime dateTo, int transTypeId, Action<Dictionary<string, double>, Exception> callback) { try { var client = new MainClient(); client.ReportTransactionNameOfPlaceAsync(dateFrom, dateTo, transTypeId, App.Instance.User.UserId); client.ReportTransactionNameOfPlaceCompleted += (sender, e) => { if (e.Error == null) callback(e.Result, null); else callback(null, e.Error); }; } catch (Exception) { throw; } }