示例#1
0
        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());
        }
示例#2
0
 internal void GetMaler(Baummaler maler) => my_maler = maler;    //Todo: change to prop
示例#3
0
 public void SetBaummaler(Baummaler baummaler)   //Setzt den Maler
 {
     b = baummaler;
     b.SetTreeholder(this);
 }