Пример #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();
            }
        }