public void SetTitle(BuySell buySell, WertpapierTypes types)
 {
     this.buySell = buySell;
     typ          = types;
     ((DelegateCommand)OpenSteuernCommand).RaiseCanExecuteChanged();
     RaisePropertyChanged("KauftypBez");
     RaisePropertyChanged("Titel");
     RaisePropertyChanged("BuySell");
     RaisePropertyChanged("KaufTypes");
     RaisePropertyChanged("OrderTypes");
 }
 public OrderUebersichtViewModel()
 {
     canExecuteAktieVerkaufCommand = false;
     Title                = "Übersicht der Order";
     wertpapierID         = 0;
     wertpapierTypes      = WertpapierTypes.Aktie;
     AktieGekauftCommand  = new DelegateCommand(ExecuteAktieGekauftCommand, CanExecuteCommand);
     AktieVerkauftCommand = new DelegateCommand(ExecuteAktieVerkauftCommand, CanExecuteAktieVerkaufCommand);
     EntfernenCommand     = new DelegateCommand(ExecuteEntfernenCommand, CanSelectedItemExecuteCommand);
     RegisterAktualisereViewMessage(StammdatenTypes.buysell.ToString());
     CheckCanExecuteAktieVerkaufCommand();
 }
 private void ReceiveLoadAktieMessage(LoadWertpapierOrderMessage m)
 {
     wertpapierTypes = m.WertpapierTyp;
     LoadData(m.WertpapierID);
 }
Esempio n. 4
0
 public OpenWertpapierAuswahlMessage(Action <bool, int> callback)
 {
     Callback        = callback;
     WertpapierTypes = WertpapierTypes.none;
 }
 public async void SetTyp(WertpapierTypes wertpapierTypes)
 {
     WertpapierTypes = wertpapierTypes;
     RaisePropertyChanged(nameof(CanAddNewItem));
     await LoadData();
 }
 public WertpapierAuswahlViewModel()
 {
     Title           = "Auswahl Wertpapier";
     WertpapierTypes = WertpapierTypes.none;
     RegisterAktualisereViewMessage(StammdatenTypes.aktien.ToString());
 }