public MainWindow() { InitializeComponent(); sm = new ShapeManager(this); cm = new CanvasManager(this); clrm = new ColorManager(this); cb_Shapes.ItemsSource = new ShapeManager(this).ListShapes; clrm.LoadColors(); sm.LoadShapes(); cm.LoadCanvasses(); }
//Constructors public CanvasManager(MainWindow w) { MainWindow = w; ShapeManager = new ShapeManager(w); }