日期:2014-05-17 浏览次数:20944 次
foreach (KeyValuePair<int, Pictures> list in pictureList)//遍历字典生成图片
{
if (GenTecPic(list.Value.datapath, list.Value.macropath, 0))
{
FileSystemWatcher watcher = new FileSystemWatcher();//设置监视器
watcher.Path = list.Value.datapath;
watcher.Changed += new FileSystemEventHandler(TecDat_Changed);
watcher.Created += new FileSystemEventHandler(TecDat_Changed);
watcher.EnableRaisingEvents = true;
list.Value.watcher = watcher;
}
}
timer_tecplot.Enabled = true;
void TecDat_Changed(object sender, FileSystemEventArgs e)
{
}
public class MytecProxy
{
public string path;
......以及其它任何必要的参数
public void TecDat_Changed(object sender, FileSystemEventArgs e)
{
//在这里,你就可以访问到所有参数
}
}
MyTecPr