public KlientDetailVaade()
 {
     InitializeComponent();
     Datacontext = new KlientDetailVaadeVM();
     btnLaenuta.Visibility = Visibility.Collapsed;
     btnSalvesta.Visibility = Visibility.Collapsed;          
 }
 // Konstruktorites ka vajalike elementide peitmine/näitamine
 #region Konstruktorid
 public KlientDetailVaade(KlientBO klient)
 {
     InitializeComponent();
     Datacontext = new KlientDetailVaadeVM(klient);
     if (datacontext.Klient.KasArhiivis)
         btnLaenuta.Visibility = Visibility.Collapsed;
     if (datacontext.Klient.KasRentBron)
         btnMuuda.IsEnabled = false;
     gridKlient.IsEnabled = false;
     btnLisa.Visibility = Visibility.Collapsed;
 }