예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            BaxiCtrl terminal = new BaxiCtrl();

            terminalCtrl = new TerminalController(terminal);
            terminalCtrl.Initialize();

            browser = new ChromiumWebBrowser()
            {
                Address = Address
            };

            browserCtrl = new BrowserController(browser, terminalCtrl);

            browser.DownloadHandler    = new DownloadHandler();
            browser.FrameLoadEnd      += HandleFrameLoaded;
            browser.ZoomLevelIncrement = 0.25;

            NetsBrowser.Children.Add(browser);

            CommandBindings.Add(new CommandBinding(NavigationCommands.Refresh, Reload));
            CommandBindings.Add(new CommandBinding(NavigationCommands.IncreaseZoom, ZoomIn));
            CommandBindings.Add(new CommandBinding(NavigationCommands.DecreaseZoom, ZoomOut));
            CommandBindings.Add(new CommandBinding(NavigationCommands.Zoom, ZoomReset));
        }
예제 #2
0
 public TerminalInfo(BaxiCtrl terminal)
 {
     Id              = terminal.TerminalID;
     Type            = terminal.TermType;
     SoftwareVersion = terminal.TerminalSwVersion;
     COMPort         = terminal.ComPort;
     BaudRate        = terminal.BaudRate;
     Host            = string.Format("{0}:{1}", terminal.HostIpAddress, terminal.HostPort);
     LogFilePath     = terminal.LogFilePath;
 }
예제 #3
0
 public TerminalController(BaxiCtrl terminal)
 {
     _terminal = terminal;
 }