public UcenikIzmena(Ucenik j, MOD m = MOD.DODAVANJE) : this() { this.original = j; this.copyObj = (Ucenik)original.Clone(); this.mod = m; this.DataContext = copyObj; }
public UceniciEditWindow(Ucenik u, MOD m = MOD.DODAVANJE) { InitializeComponent(); this.original = u; this.mod = m; this.copyObj = original.Clone() as Ucenik; this.DataContext = copyObj; if (mod == MOD.IZMENA) { tbJmbg.IsEnabled = false; } }