Exemplo n.º 1
0
        public void FindingTarget(WindowViewModel vm)
        {
            var selected = ((MainWindow)Application.Current.MainWindow).ListboxDebts.SelectedIndex;
            var name     = vm.Debts[selected].Name;

            labelName.Content          = name;
            ListboxHistory.ItemsSource = vm.Debts[selected].Name;
        }
Exemplo n.º 2
0
 public Window2(WindowViewModel vm)
 {
     InitializeComponent();
     FindingTarget(vm);
 }