private void Create_plank(object sender, MouseButtonEventArgs e)
        {
            plank_popup dialog = new plank_popup();
            int         width, height;

            if (dialog.ShowDialog() == true)
            {
                width  = Convert.ToInt16(dialog.Inp_width);
                height = Convert.ToInt16(dialog.Inp_height);



                SetColor("#654321");

                Plank p = new Plank(
                    planks.Count,
                    Rect(0, 0, width * GRID_SIZE, height * GRID_SIZE)
                    );

                planks.Add(p);
                selectedPlank       = p;
                Plank.selectedPlank = planks.Count() - 1;

                CheckPlanks();
            }
        }
        private void Verander_grootte(object sender, MouseButtonEventArgs e)
        {
            if (Plank.selectedPlank == -1)
            {
                MessageBox.Show("Selecteer een plank");
                return;
            }

            plank_popup dialog = new plank_popup();
            int         width, height;

            if (dialog.ShowDialog() == true)
            {
                width  = Convert.ToInt16(dialog.Inp_width);
                height = Convert.ToInt16(dialog.Inp_height);

                selectedPlank.Resize(width * GRID_SIZE, height * GRID_SIZE);
            }
        }