public WindowEditTransaction(object transaction)
 {
     InitializeComponent();
     control = new ControlEditTransaction();
     this.DataContext = transaction;
     ComboBoxCategory.ItemsSource = control.GetCategoryList();
 }
Beispiel #2
0
        public WindowEditTransaction(object transaction)
        {
            InitializeComponent();
            control = new ControlEditTransaction();

            if (((Transaction)transaction).Category != null)
            {
                ComboBoxCategory.ItemsSource = control.GetCategoryList();
            }
            else
            {
                ComboBoxCategory.Visibility = Visibility.Collapsed;
            }
            this.DataContext = transaction;
        }