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