Beispiel #1
0
 void rdtManager_SavedProjectItem(object sender, SavedProjectItemEventArgs e)
 {
     if (Path.GetExtension(e.SavedPath).Equals(".xml", StringComparison.OrdinalIgnoreCase))
     {
         string s = Path.ChangeExtension(e.SavedPath, string.Empty).Trim('.');
         if (Path.GetExtension(s).Equals(".hbm", StringComparison.OrdinalIgnoreCase))
         {
             string folder = Path.GetDirectoryName(s);
             Hbm2NetRunner runner = new Hbm2NetRunner(s,rdtManager);
             runner.Run();
         }
     }
 }
Beispiel #2
0
 void rdtManager_SavedProjectItem(object sender, SavedProjectItemEventArgs e)
 {
     if (Path.GetExtension(e.SavedPath).Equals(".xml", StringComparison.OrdinalIgnoreCase))
     {
         string s = Path.ChangeExtension(e.SavedPath, string.Empty).Trim('.');
         if (Path.GetExtension(s).Equals(".hbm", StringComparison.OrdinalIgnoreCase))
         {
             string        folder = Path.GetDirectoryName(s);
             Hbm2NetRunner runner = new Hbm2NetRunner(s, rdtManager);
             runner.Run();
         }
     }
 }