public TabDebugWindow(TabControlParts tab)
        {
            InitializeComponent();

            _tab = tab;
            _vm = (TabControlPartsVM_FixedSupply)tab.DataContext;

            this.Title = _vm.Token.ToString();

            _timer = new DispatcherTimer();
            _timer.Interval = TimeSpan.FromMilliseconds(100);
            _timer.Tick += Timer_Tick;
            _timer.IsEnabled = true;
        }
Exemplo n.º 2
0
        public TabDebugWindow(TabControlParts tab)
        {
            InitializeComponent();

            _tab = tab;
            _vm  = (TabControlPartsVM_FixedSupply)tab.DataContext;

            this.Title = _vm.Token.ToString();

            _timer           = new DispatcherTimer();
            _timer.Interval  = TimeSpan.FromMilliseconds(100);
            _timer.Tick     += Timer_Tick;
            _timer.IsEnabled = true;
        }
Exemplo n.º 3
0
        public void SetupEditor(string msgboxCaption, IEnumerable<PartDesignBase> parts, UIElement managementControl)
        {
            TabControlPartsVM_FixedSupply vm = new TabControlPartsVM_FixedSupply(_dpColors, parts);

            SetupEditor(msgboxCaption, vm, managementControl);
        }