Exemplo n.º 1
0
        private void listBoxJmena_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            tvary.UnselectAll();

            if (listBoxJmena.SelectedItem == null)
            {
                jmeno = "";
            }
            else
            {
                jmeno = listBoxJmena.SelectedItem.ToString();
                //oznacTento.jeOznaceny = true;
                foreach (string oznac in listBoxJmena.SelectedItems)
                {
                    ShapesLib.Shape oznacTento = tvary.returnShape(oznac);
                    oznacTento.isSelected = true;
                }
                tvary.PaintCanvas(canvas1);
                //tvary.Ohraniceni(canvas1);
            }
        }
Exemplo n.º 2
0
 public void Add(Shape shape)
 {
     _shapes.Add(shape);
 }
Exemplo n.º 3
0
 private void ButtonSouradnice_Click(object sender, RoutedEventArgs e)
 {
     ShapesLib.Shape mujTvar = tvary.returnShape(jmeno);
     mujTvar.Dialog();
     tvary.PaintCanvas(canvas1);
 }