private void tbtEdit_Click(object sender, EventArgs e) { if (dataGridView.CurrentRow == null) { MessageBox.Show("请先选择活动!"); return; } CActivesDef ActivesDef = (CActivesDef)dataGridView.CurrentRow.Tag; if (ActivesDef.WType == ActivesType.Start) { MessageBox.Show("启动活动不能修改!"); return; } if (ActivesDef.WType == ActivesType.Success) { MessageBox.Show("成功结束活动不能修改!"); return; } if (ActivesDef.WType == ActivesType.Failure) { MessageBox.Show("失败结束活动不能修改!"); return; } ActivesDefInfo frm = new ActivesDefInfo(); frm.m_WorkflowDef = m_WorkflowDef; frm.m_ActivesDef = ActivesDef; if (frm.ShowDialog() != DialogResult.OK) { return; } LoadActives(); }
private void tbtNew_Click(object sender, EventArgs e) { ActivesDefInfo frm = new ActivesDefInfo(); frm.m_WorkflowDef = m_WorkflowDef; if (frm.ShowDialog() != DialogResult.OK) { return; } LoadActives(); }