//编辑 private void button8_Click(object sender, EventArgs e) { if (filenum <= totalfilenum) { if (filenum != 0) { //flash_read filetoflash(filenum-1),fileflag,filename,filelinepara,codespace(0,MAXLINENUM*LINESPACE) '读取 // char [] chArr = filename[0].ToCharArray(); // shownamelist[i % ONEPAGENUM].CopyTo(0,chArr,0,FILENAMELENG); //codetempspace[0].CopyTo(0,codespace[0].ToCharArray(),0,MAXLINENUM*LINESPACE); //String str = filelintempepara[0].ToString(); //str.CopyTo(0, filelinepara[0].ToString().ToCharArray(), 0, 10); //filelintempepara[0] = int.Parse(str); //filejudname[0].CopyTo(0, filename[0].ToCharArray(), 0, FILENAMELENG); //DMCPY codetempspace(0),codespace(0),MAXLINENUM*LINESPACE '赋值到临时数组 //dmcpy filelintempepara(0),filelinepara(0),10 //DMCPY filejudname(0),filename(0),FILENAMELENG MessageBox.Show(linenum.ToString()); // linenum = 1; _19_文件编辑 f19 = new _19_文件编辑(this); f19.g_handle = g_handle; f19.codename = codename; f19.filenum = filenum; filelinepara[0] = totalfilenum; f19.filelinepara = filelinepara; f19.filelintempepara = filelintempepara; f19.codespace = codespace; f19.codetempspace = codetempspace; f19.browsepage = browsepage; f19.manulradio = manulradio; //初始速度比 // f19.paratemp = paratemp; f19.vr = vr; f19.pagenum = pagenum; f19.filetoflash = filetoflash; f19.showidlist = showidlist; f19.linenum = linenum; this.Hide(); //隐藏现在这个窗口 f19.Show(); //新窗口显现 // deal_lineload(linenum); //加载第一行 // filename[0] = this.dataGridView1.Rows[linenum - 1].Cells[1].Value.ToString(); //获取文件名 Console.WriteLine("当前编辑 filenum={0}\filename={1}", filenum, filename); } else { Console.WriteLine("未选择ID"); _52_操作提示 f52 = new _52_操作提示(); f52.V1 = "未选择文件ID"; f52.ShowDialog(); } } else { Console.WriteLine("文件不存在"); _52_操作提示 f52 = new _52_操作提示(); f52.V1 = "文件不存在"; f52.ShowDialog(); } }