public void AddMold(Mold item) { var temp = MoldDepot.ToList(); temp.Add(item); MoldDepot = temp.ToArray(); InitParamaters(); }
public void RemoveMold(Mold item) { var temp = MoldDepot.ToList(); var idx = temp.IndexOf(item); temp.RemoveAt(idx); MoldDepot = temp.ToArray(); InitParamaters(); }
public void AddPanel(RigidTransformation tr, Mold mold) { if (!MoldDepot.Contains(mold)) { AddMold(mold); } var ttr = Transformations.ToList(); ttr.Add(tr); Transformations = ttr.ToArray(); var tpm = PanelMoldSelection.ToList(); tpm.Add(mold); PanelMoldSelection = tpm.ToArray(); InitParamaters(); }