public ControlTicketList(ActionTabViewModel vmd)
 {
     _vmd = vmd;
     _ticketController = new TicketController();
     this.DataContext  = _ticketController;
     InitializeComponent();
 }
Exemple #2
0
        public MainWindow()
        {
            InitializeComponent();
            String glpiUrl   = Properties.Settings.Default.GLPIUrlAddress;
            String appToken  = Properties.Settings.Default.AppToken;
            String userToken = Properties.Settings.Default.UserToken;

            _loginController = new LoginController(glpiUrl, appToken, userToken);
            //this.DataContext = _ticketController;

            // Initialize viewModel
            vmd = new ActionTabViewModel(tabControl);
            // Bind the xaml TabControl to view model tabs
            tabControl.ItemsSource = vmd.Tabs;
        }