/// <summary> /// 清空动作流中所有方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btClearFlow_Click(object sender, EventArgs e) { if (null == _methodFlow) { return; } if (DialogResult.OK == MessageBox.Show("确定清空流程中的所有动作么?", "警告", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning)) { _methodFlow.Clear(); UpdateFlow2UI(); } }