示例#1
0

        
示例#2
0

        
        public MehanicarAddEdit(Mehanicar vlasnik)
        {
            InitializeComponent();

            this.DataContext = this;

            CurrentMehanicar = vlasnik;
        }
        public AutoAddEdit(Auto auto)
        {
            InitializeComponent();

            this.DataContext = this;

            MehanicariFromDB      = new Mehanicar().UcitajMehanicare();
            CurrentAuto           = auto;
            CurrentAuto.Mehanicar = MehanicariFromDB.FirstOrDefault(x => x.ID == auto.Mehanicar?.ID);
        }
 private void Refresh(Mehanicar mehanicar)
 {
     Mehanicari = new Mehanicar().UcitajMehanicare();
 }