private void btn_Stop_Click(object sender, EventArgs e) { string error = ""; bool result = QF.QZServiceRpository.StopAllQuartzServer(out error); if (result) { AttrMessage.RightMsg("所有服务停止成功!"); } else { AttrMessage.ErrorMsg("所有服务停止失败!"); } BingCbb_List(); BingDGV_List(); }
private void btn_ReStart_Click(object sender, EventArgs e) { string temp = cbb_ServiceList.SelectedValue.ToString(); ShowModel showModel = CacheList.Where(x => x.JobKeyName == temp).FirstOrDefault(); bool result = QF.QZServiceRpository.ResumeQuartzServer(showModel.JobsTrigger.JobKey); if (result) { AttrMessage.RightMsg("服务" + temp + "恢复成功!"); } else { AttrMessage.ErrorMsg("服务" + temp + "恢复失败!"); } BingCbb_List(); BingDGV_List(); }
private void Btn_InputPlugin_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(tb_path.Text)) { AttrMessage.ErrorMsg("请选择要导入的插件文件!"); return; } string error = ""; bool result = QF.QZServiceRpository.AddQZServerDLL(tb_path.Text.ToString(), out error); if (result) { BingCbb_List(); BingDGV_List(); AttrMessage.RightMsg("服务加载成功!"); } else { AttrMessage.ErrorMsg("插件加载失败"); } }