public Baumhaus() { var handle = GetConsoleWindow(); ShowWindow(handle, SW_HIDE); Consolethread = new Thread(IchBinDieKonsole); Consolethread.Start(); InitializeComponent(); my_tree = new Bäumchen(50); my_maler = new Baummaler(my_tree); mainholder.SetBaummaler(my_maler); rTB_out.Text = string.Join(", ", my_tree.Deep().ToArray()); }
internal void GetMaler(Baummaler maler) => my_maler = maler; //Todo: change to prop
public void SetBaummaler(Baummaler baummaler) //Setzt den Maler { b = baummaler; b.SetTreeholder(this); }