예제 #1
0
        private void toolNewProgram_Click(object sender, EventArgs e)
        {
            fmCreateVisionProgram fm = new fmCreateVisionProgram();

            if (fm.ShowDialog() == DialogResult.OK)
            {
                this.Flow          = new VisionFlow();
                this.Flow.FlowName = fm.VisionProgram;
                ChangedPresstion(true);
            }
        }
예제 #2
0
        private void toolReadProgram_Click(object sender, EventArgs e)
        {
            fmCreateVisionProgram fm = new fmCreateVisionProgram(false);

            if (fm.ShowDialog(this) == DialogResult.OK)
            {
                var flow = VisionFlow.Load(sPathVision + fm.VisionProgram);
                if (flow == null)
                {
                    MessageBox.Show($"导入视觉程式失败!!!");
                    ChangedPresstion(false);
                    return;
                }

                this.Flow = flow;
                ChangedPresstion(true);
                ReadToUI();
            }
        }