Message += "Selected Time range is not correct";
if (!chkShowFTPErrorList.Checked && !chkShowHTTPErrorList.Checked)
Message += "Either FTP or HTTP Error list must be selected.";
if (Message != string.Empty)
{
MessageBox.Show(Message, "Advanced FTP Server");
return;
}
lstExceptionList.Items.Clear();
if (LogList != null) LogList.Rows.Clear();
txtErrorDetails.Text = string.Empty;
btnFilter.Enabled = false;
gbSearchCondition.Visible = false;
gbSearchInProgress.Visible = true;
Searcher.RunWorkerAsync();
}//点击日志过滤按钮出现筛选条件并判断
void ClearList_Click(object sender, EventArgs e)
{
lstExceptionList.Items.Clear();
txtErrorDetails.Text = string.Empty;
}
void Searcher_DoWork(object sender, DoWorkEventArgs e)
{
CancelSearch = false;
LogList = ApplicationSettings.GetExceptionLog(txtDateFrom.Value,
txtDateTo.Value, txtTimeFrom.Value, txtTimeTo.Value,
chkShowFTPErrorList.Checked, chkShowHTTPErrorList.Checked, ref CancelSearch);
gbSearchInProgress.Visible = false;
btnFilter.Enabled = true;
if (LogList == null || LogList.Rows.Count == 0)
{
gbSearchCondition.Visible = true;
MessageBox.Show("No results to display.", "Advanced FTP Server");
return;
}
foreach (DataRow Log in LogList.Rows)
- 上一篇:造币机械生产车间信息管理系统分析与研究
- 下一篇:C#的家庭理财系统软件设计+ER图
-
-
-
-
-
-
-
电站锅炉暖风器设计任务书
河岸冲刷和泥沙淤积的监测国内外研究现状
杂拟谷盗体内共生菌沃尔...
十二层带中心支撑钢结构...
酸性水汽提装置总汽提塔设计+CAD图纸
java+mysql车辆管理系统的设计+源代码
当代大学生慈善意识研究+文献综述
乳业同业并购式全产业链...
大众媒体对公共政策制定的影响
中考体育项目与体育教学合理结合的研究