public Figura(ColorEnum kolor, ShapeEnum typ, double pole, WspolrzedneSrodka wspolrzedne, string etykieta) { Kolor = kolor; Typ = typ; Pole = pole; WspolrzedneSrodka = wspolrzedne; Etykieta = etykieta; }
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); } }
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); } }