public void EventHandlerMethod(object state, MessageEventArgs args)
			{
				Args.Add(args.Item);
			}
Example #2
0
        private void OnMessageAdded(object sender, MessageEventArgs e)
        {
            IncrementByDigital high = dgHigh.IncrementBy;
            dgHigh.Invoke(high, new object[] { e.Item.Documents.HighRisk });
            IncrementByDigital med = dgMedium.IncrementBy;
            dgMedium.Invoke(med, new object[] { e.Item.Documents.MediumRisk });
            IncrementByDigital low = dgLow.IncrementBy;
            dgLow.Invoke(low, new object[] { e.Item.Documents.LowRisk });
            IncrementByDigital total = dgTotal.IncrementBy;
            dgTotal.Invoke(total, new object[] { e.Item.Documents.LowRisk + e.Item.Documents.MediumRisk + e.Item.Documents.HighRisk });
            m_selectedView.AddRow(e.Item);
            if (BaseView.IsLoading)
                UpdatePolicySummary(e.Item);

            coolProgress1.IncrementRegionBy(0, e.Item.Documents.LowRisk);
            coolProgress1.IncrementRegionBy(1, e.Item.Documents.MediumRisk);
            coolProgress1.IncrementRegionBy(2, e.Item.Documents.HighRisk);

            ParameterlessDelegate invokeMethod = coolProgress1.Invalidate;
            coolProgress1.Invoke(invokeMethod);
        }