示例#1
0
 public Figura(ColorEnum kolor, ShapeEnum typ, double pole,
               WspolrzedneSrodka wspolrzedne, string etykieta)
 {
     Kolor             = kolor;
     Typ               = typ;
     Pole              = pole;
     WspolrzedneSrodka = wspolrzedne;
     Etykieta          = etykieta;
 }
示例#2
0
        public void dodajFigure(ColorEnum kolor, ShapeEnum typ,
                                WspolrzedneSrodka wspolrzedne, string pole, string etykieta)
        {
            Figura nowa = new Figura(kolor, typ, double.Parse(pole), wspolrzedne, etykieta);

            listaFigur.Add(nowa);
            foreach (RefreshableForm f in widoki)
            {
                f.refreshInsert(nowa);
            }
        }
示例#3
0
 public void edytujFigure(Figura f, ColorEnum kolor, ShapeEnum typ,
                          WspolrzedneSrodka wspolrzedne, string pole, string etykieta)
 {
     f.Kolor             = kolor;
     f.Typ               = typ;
     f.WspolrzedneSrodka = wspolrzedne;
     f.Pole              = double.Parse(pole);
     f.Etykieta          = etykieta;
     foreach (RefreshableForm rf in widoki)
     {
         rf.refreshModify(f);
     }
 }