private void 导入模板ToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = " 请选择您要导入的模板文件:";
ofd.Filter = "TextDocument(*.cmd)|*.cmd|TextDocument(*.txt)|*.txt";
ofd.ShowDialog();
System.IO.StreamReader sr = new System.IO.StreamReader( ofd.FileName ,System.Text.Encoding.Default);
txtCmdInput.Text =
sr.ReadToEnd(); }
posted on 2008-09-03 16:34
天书 阅读(1333)
评论(1) 编辑 收藏 引用