Пример #1
0
 public XmlNode ModelLookup(object source, ModelLookupArgs args)
 {
     if (((ModelLookupArgs)args).Key == "1.xml")
         return model1;
     else if (((ModelLookupArgs)args).Key == "2.xml")
         return model2;
     else
         throw new Exception("Couldnt find model: " + ((ModelLookupArgs)args).Key);
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 private XmlNode evidence_ModelLookup(object sender, ModelLookupArgs args)
 {
     try
     {
         return(models[args.Key]);
     }
     catch
     {
         throw new Exception("Could not find model: " + args.Key);
     }
 }
Пример #3
0
 private XmlNode ModelLookup(object sender, ModelLookupArgs e)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Пример #4
0
 public XmlNode ModelLookup(object source, ModelLookupArgs args)
 {
     return model;
 }
Пример #5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 private XmlNode evidence_ModelLookup(object sender, ModelLookupArgs args)
 {
     try
     {
         return models[args.Key];
     }
     catch
     {
         throw new Exception("Could not find model: " + args.Key);
     }
 }