예제 #1
0
파일: 18_IO映射.cs 프로젝트: oyp0/newtext
        //返回
        private void button26_Click(object sender, EventArgs e)
        {
            flag_returnwindow = 13; //参数设置界面
            for (int i = 0; i < PARANUM; i++)
            {
                if (paratemp[i] != vr[i])
                {
                    flag_change = 123;
                    break;
                }
                //DMCPY paraaxis(0),table(0),PARANUM		'赋值	'目前此指令遇到0终止,不能用
                //flag_change=STRCOMP(paraaxis,paratemp)
            }

            if (flag_change == 123)   //有改动
            {
                _50未保存提示 f50 = new _50未保存提示(return_13参数设置, null, null, this, null, null, null, null, null, null, null, null, null, null, null, null);
                f50.g_handle          = g_handle;          //句柄
                f50.vr                = vr;                //存放数组
                f50.paratemp          = paratemp;          //临时数组
                f50.flag_returnwindow = flag_returnwindow; //窗口选择
                f50.PARANUM           = PARANUM;           //轴参数空间
                f50.Show();                                //新窗口显现
            }
            else
            {
                this.Close();
                this.return_13参数设置.vr = vr;
                this.return_13参数设置.flag_Initialization = flag_Initialization;
                this.return_13参数设置.Visible             = true;
            }
        }
예제 #2
0
        //退出
        private void button10_Click(object sender, EventArgs e)
        {
            flag_returnwindow = 14;       //文件配方界面
            for (int j = 0; j == 10; j++)
            {
                if (filelinepara[j] != filelintempepara[j])
                {
                    flag_change = 123;
                    break;
                }
                //for (int i = 0; i < FILENAMELENG; i++)  //文件名判断
                //{
                //    flag_change = 123;
                //    break;
                //}

                for (int i = 0; i < filelinepara[0] * LINESPACE; i++)
                {
                    if (codespace[i] != codetempspace[i])  //参数不同
                    {
                        flag_change = 123;
                        break;
                    }
                }
            }

            if (flag_change == 123)   //有改动
            {
                _50未保存提示 f50 = new _50未保存提示(null, null, null, null, null, this.return_14_文件管理, this, null, null, null, null, null, null, null, null, null);
                f50.g_handle = g_handle;   //句柄
                //f50.vr = vr;               //存放数组
                //f50.paratemp = paratemp;   //临时数组
                //f50.PARANUM = PARANUM;  //轴参数空间
                f50.pagenum           = pagenum;
                f50.filetoflash       = filetoflash;
                f50.showidlist        = showidlist;
                f50.flag_returnwindow = flag_returnwindow; //窗口选择
                f50.Show();                                //新窗口显现
            }
            else if (flag_returnwindow == 14)
            {
                this.Close();
                this.return_14_文件管理.filetoflash = filetoflash;
                this.return_14_文件管理.showidlist  = showidlist;
                this.return_14_文件管理.Visible     = true;
            }
        }