public FractalTemplate(Fractal Fractal,FractalColorMode FractalColorMode,string Name) { _name = Name; _fractal = Fractal.GetClone(); _fcm = FractalColorMode.GetClone(); _date_of_creating = DateTime.Now; }
/*_________________________________________________________Конструкторы_______________________________________________________*/ #region Constructors public FractalTemplate(Fractal Fractal, FractalColorMode FractalColorMode, string Name) { _name = Name; _fractal = Fractal.GetClone(); _fcm = FractalColorMode.GetClone(); _date_of_creating = DateTime.Now; }
public void SetNewFractal(Fractal Fractal, FractalColorMode FractalColorMode) { if (Fractal == null || FractalColorMode == null) { throw new ArgumentNullException(); } if (!FractalColorMode.IsCompatible(Fractal.GetClone().CreateFractal(8, 8))) { throw new ArgumentException(); } Disconnect(); _fractal = Fractal.GetClone(); Connect(); _fcm = FractalColorMode.GetClone(); if (SetNewFractalEvent != null) { SetNewFractalEvent(this); } }
public void SetNewFractal(Fractal Fractal,FractalColorMode FractalColorMode) { if (Fractal == null || FractalColorMode == null) throw new ArgumentNullException(); if(!FractalColorMode.IsCompatible(Fractal.GetClone().CreateFractal(8,8)))throw new ArgumentException(); Disconnect(); _fractal = Fractal.GetClone(); Connect(); _fcm = FractalColorMode.GetClone(); if (SetNewFractalEvent != null) SetNewFractalEvent(this); }