private void btn_AddStep_Click(object sender, EventArgs e) { StepSettingForm SSF = new StepSettingForm(); SSF.GetStepContent += new GetStepContentHandler(getStepContent); DialogResult dr = SSF.ShowDialog(); }
private void btn_UpdateStep_Click(object sender, EventArgs e) { if (listV_Step.SelectedItems.Count > 0)//有选中项 { stepindex = listV_Step.SelectedItems[0].Index; StepSettingForm SSF = new StepSettingForm(Step_List[stepindex].ToString()); SSF.GetStepContent += new GetStepContentHandler(UpdateStepContent); DialogResult dr = SSF.ShowDialog(); } }