Example #1
0
 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();
         }
     }
 }
Example #2
0
 /// <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";
     }
 }