/// <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)); }
/// <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); }
/// <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); }