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(); } } }
/// <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"; } }