Beispiel #1
0
        public ComponentViewFullHD(string Login, int TestID, string PN, int ID)
        {
            //this.Topmost = true;
            InitializeComponent();

            _managers          = Managers.CreateManagers();
            _mysqlManager      = _managers.GetMySQLManager();
            _buttonListManager = _managers.GetButtonListManager();
            _login             = Login;
            _testid            = TestID;
            _pn                = PN;
            _id                = ID;
            _component         = _mysqlManager.GetComponentByPN(PN.Remove(0, 2));
            lblMT.Content      = "Komponent: " + _component._PN;
            lblComment.Content = "Komentarz: " + _component._comment;

            string _path   = ParseFIDPathFromXML();
            int    _revInt = 0;

            int.TryParse(_component._REV, out _revInt);
            if (_revInt > 9)
            {
                _browser.Navigate(_path + @"FID\" + _component._FID + "." + _component._REV + " " + _component._PN + ".pdf");
            }
            else
            {
                _browser.Navigate(_path + @"FID\" + _component._FID + ".0" + _component._REV + " " + _component._PN + ".pdf");
            }

            this.OK.Visibility   = Visibility.Visible;
            this.NOK.Visibility  = Visibility.Visible;
            this.NONE.Visibility = Visibility.Visible;
            this.BACK.Visibility = Visibility.Visible;

            _timer          = new DispatcherTimer();
            _timer.Interval = TimeSpan.FromSeconds(1);
            _timer.Tick    += timer_Tick;
            _timer.Start();
        }
 public NewOrderWindow()
 {
     InitializeComponent();
     _managers = Managers.CreateManagers();
     _mysqlManager = _managers.GetMySQLManager();
 }
 public SupermarketWindow()
 {
     InitializeComponent();
     _managers     = Managers.CreateManagers();
     _mysqlManager = _managers.GetMySQLManager();
 }