public void SetAsAdder(ViewModelMainWindow mw)
 {
     Main = mw;
     if (!isSet) {
         ButtonLabel = "Add";
         ButtonClicked = new RelayCommand(ClickMeAdder);
         isSet = true;
         RaisePropertyChanged("ButtonClicked");
     }
 }
 public void SetAsEditor(ViewModelMainWindow mw, Reader r)
 {
     Main = mw;
     if (!isSet) {
         Reader = r;
         Name = r.Imie;
         Surname = r.Nazwisko;
         ButtonLabel = "Save";
         ButtonClicked = new RelayCommand(ClickMeEditor);
         isSet = true;
         RaisePropertyChanged("ButtonClicked");
     }
 }
 public void SetAsEditor(ViewModelMainWindow mw, Book b)
 {
     Main = mw;
     if (!isSet) {
         Book = b;
         Title = b.Tytul;
         Author = b.Autor;
         IssueYear = b.IssueYear.ToString();
         ButtonLabel = "Save";
         ButtonClicked = new RelayCommand(ClickMeEditor);
         isSet = true;
         RaisePropertyChanged("ButtonClicked");
     }
 }