private void onPublishCompleted(object sender, PublishCompletedEventArgs e) { //从当前列表中删除此记录 cPublishTask pt = (cPublishTask)sender; m_ListPublish.Remove(pt); pt = null; if (e_PublishCompleted != null && !e.Cancel) { e_PublishCompleted(sender, e); } }
private bool ExportData() { //触发发布启动事件 PublishStartedEventArgs evt = new PublishStartedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName); e_PublishStarted(this, evt); switch (this.PublishType) { case cGlobalParas.PublishType.PublishAccess: ExportAccess(); break; case cGlobalParas.PublishType.PublishExcel: ExportExcel(); break; case cGlobalParas.PublishType.PublishTxt: ExportTxt(); break; case cGlobalParas.PublishType.PublishMSSql: ExportMSSql(); break; case cGlobalParas.PublishType.PublishMySql: ExportMySql(); break; case cGlobalParas.PublishType.PublishWeb: ExportWeb(); break; default: break; } PublishCompletedEventArgs evt1 = new PublishCompletedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName); e_PublishCompleted(this, evt1); TriggerRun(); return(true); }
private void Publish_Complete(object sender, PublishCompletedEventArgs e) { InvokeMethod(this, "ShowInfo", new object[] { e.TaskName, rm.GetString("TaskPulished")}); InvokeMethod(this, "UpdateTaskPublished", new object[] { e.TaskID ,cGlobalParas.GatherResult.PublishSuccees}); InvokeMethod(this, "UpdateStatebarTask", null); }
private void onPublishCompleted(object sender, PublishCompletedEventArgs e) { //�ӵ�ǰ�б���ɾ���˼�¼ cPublishTask pt = (cPublishTask)sender; m_ListPublish.Remove(pt); pt = null; if (e_PublishCompleted != null && !e.Cancel) { e_PublishCompleted(sender, e); } }
private bool ExportData() { //������������¼� PublishStartedEventArgs evt = new PublishStartedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName); e_PublishStarted(this,evt); switch (this.PublishType) { case cGlobalParas.PublishType.PublishAccess : ExportAccess(); break; case cGlobalParas.PublishType.PublishExcel : ExportExcel(); break; case cGlobalParas.PublishType.PublishTxt : ExportTxt(); break; case cGlobalParas.PublishType.PublishMSSql : ExportMSSql(); break; case cGlobalParas.PublishType.PublishMySql : ExportMySql(); break; case cGlobalParas.PublishType.PublishWeb : ExportWeb(); break; default : break; } PublishCompletedEventArgs evt1 = new PublishCompletedEventArgs(this.TaskData.TaskID, this.TaskData.TaskName); e_PublishCompleted(this, evt1); TriggerRun(); return true; }