void OperaterServiceAgent_DataLoadCompleted(object sender, DataLoadCompletedEventArgs e) { if (e.DataType == DataLoadEventType.QuickResponseByDomainName) { if (domainToolStripComboBox.SelectedIndex > 0) { loadQickResponse(domainToolStripComboBox.SelectedItem.ToString()); } } else if (e.DataType == DataLoadEventType.AccountDomains) { } }
void operaterServiceAgent_DataLoadCompleted(object sender, DataLoadCompletedEventArgs e) { this.Invoke(new UpdateUIDelegate(delegate(object obj) { switch (e.DataType) { case DataLoadEventType.Operators: operatorPannel1.RecieveOperator(operaterServiceAgent.Operators); break; case DataLoadEventType.Visitors: lstVisitors.Items.Clear(); foreach (var item in operaterServiceAgent.Visitors) { processNewVisitor(item); } changeVisitorListViewItemColor(); displayStatus(); break; case DataLoadEventType.SystemAdvertise: { systemAdvertises = operaterServiceAgent.SystemAdvertise; foreach (var item in systemAdvertises) { if (item.AdvertiseUrl.ToLower().Contains("download.aspx")) { if (MessageBox.Show("�ͻ��������°汾����,�Ƿ����", "�������", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Process.Start("IC.AutoUpdate.exe", "/url" + Properties.Settings.Default.UpdateUrl); closedByUser = false; Application.Exit(); } } } } break; case DataLoadEventType.LeaveWord: List<LeaveWord> lws = new List<LeaveWord>(); foreach (var item in operaterServiceAgent.LeaveWords.Values) { lws.AddRange(item); } loadLeaveWords(lws); break; case DataLoadEventType.AccountDomains: cbxDomainName.Items.AddRange(operaterServiceAgent.DomainNames.ToArray()); cbxDomainName.SelectedIndex = 0; break; default: break; } }), e); }