public override Object Clone() { PoleStyle res = new PoleStyle(); res.Radius = Radius; res.LeftPole = LeftPole; res.RightPole = RightPole; return(res); }
public StyleCollection() { List <StyleObject> _allStyles = new List <StyleObject>(); AllStyles = _allStyles; Poles = new PoleStyle(); _allStyles.Add(Poles); Tubes = new TubeStyle(); _allStyles.Add(Tubes); Chromosomes = new ChromosomeStyle(); _allStyles.Add(Chromosomes); Springs = new SpringStyle(); _allStyles.Add(Springs); Cell = new CellStyle(); _allStyles.Add(Cell); }