Пример #1
0
 //������
 private void Rename()
 {
     //������������ͼ�������½�����ͼ������
     NewDrawDialog ndd=new NewDrawDialog();
     ndd.DialogCaption="����������ͼ";
     ndd.FlowName=this.flatTabControl1.SelectedTab.Text;
     if(ndd.ShowDialog()==DialogResult.OK)
     {
         if(this.flatTabControl1.SelectedIndex>=0)
         {
             this.flatTabControl1.SelectedTab.Text=ndd.FlowName;
         }
     }
 }
Пример #2
0
 //�½�
 public void CreateFlow()
 {
     NewDrawDialog ndd=new NewDrawDialog();
     if(ndd.ShowDialog()==DialogResult.OK)
     {
         CreateTabPage(ndd.FlowName,ndd.isLoadDefaultFlow);
         this.GetCurrentFlowControl.isNodeLimit=ndd.isNodeLimit;
         this.GetCurrentFlowControl.isIntegrality=ndd.isIntegrality;
         this.GetCurrentFlowControl.cb_integrality.Checked=ndd.isIntegrality;
         this.GetCurrentFlowControl.cb_limit.Checked=ndd.isNodeLimit;
         this.GetCurrentFlowControl.AddToolTip(ndd.isNodeLimit);
         GC.Collect();
     }
 }