/// <summary> /// 组件获取客户的Xml文件列表 /// </summary> /// <param name="filenames"></param> public void GetXmlNames(string filenames) { SaveFlowDialog sfd = new SaveFlowDialog(this.flatTabControl1.SelectedTab.Text); if (sfd.ShowDialog() == DialogResult.OK) { xmlFileName = sfd.FileName; this.userOperate = "Save"; } else { userOperate = "Default"; } }
private void mtb_save_Click(object sender, System.EventArgs e) { //检测流程图的完整性 if (this.GetCurrentFlowControl.isIntegrality) { if (!this.GetCurrentFlowControl.drawObject.CheckIntegrity()) { return; } } SaveFlowDialog sfd = new SaveFlowDialog(this.GetXmlName()); if (sfd.ShowDialog() == DialogResult.OK) { if (sfd.SaveOperate.Equals("Save")) { StreamWriter sw = new StreamWriter(Application.StartupPath + "\\WorkFlowXml\\" + sfd.FileName); sw.WriteLine(this.GetControlXml()); sw.Close(); } } }