예제 #1
0
 /// <summary>
 /// Gets rectangle cross list
 /// </summary>
 /// <param name="cm">cadre model</param>
 /// <returns>list of rectangle</returns>
 public List <Rectangle> GetCrossRectList(CadreModel cm)
 {
     return(DistanceCadreModel.CrossRect(this.Cadres, this.Distances, cm));
 }
예제 #2
0
 /// <summary>
 /// Add a new cadre model
 /// </summary>
 /// <param name="cm">cadre model to add</param>
 public void AddNewCadreModel(CadreModel cm)
 {
     DistanceCadreModel.AddNewCadre(this.Distances, this.Cadres, cm);
     cm.Updated += cm_Updated;
     this.Cadres.Add(cm);
 }
예제 #3
0
 /// <summary>
 /// Cadre model updater
 /// </summary>
 /// <param name="sender">source sender</param>
 /// <param name="e">arguments</param>
 private void cm_Updated(object sender, CadreIndexArgs e)
 {
     DistanceCadreModel.UpdateDistance(this.Distances, this.Cadres, e.CadreModel);
 }