Ejemplo n.º 1
0
        private void Initialize()
        {
            vui = new VirtualUI();
            vui.Start();

            webcam = new VuiWebcam();
            webcam.OnBitmapChanged += BitmapChanged;
            webcam.CreateComponent(pnlWebcam);
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            EnablePanel(panel1, false);

            vui = new VirtualUI();
            vui.Start();

            qz = new VuiQz();
            qz.CreateComponent();
            qz.OnPrinterChange += qz_OnPrinterChange;
            qz.OnStateChanged  += qz_OnStateChanged;
        }
Ejemplo n.º 3
0
        public VuiQz()
        {
            vui       = new VirtualUI();
            m_Xtagdir = AppDomain.CurrentDomain.BaseDirectory;
            DirectoryInfo di = new DirectoryInfo(m_Xtagdir);

            while (di != null)
            {
                m_Xtagdir = di.FullName + @"\x-tag\";
                if (Directory.Exists(m_Xtagdir))
                {
                    return;
                }
                di = di.Parent;
            }
        }
Ejemplo n.º 4
0
        private void Initialize()
        {
            cmbMp4.SelectedIndex = 0;

            vui = new VirtualUI();
            vui.Start();

            video = new VuiVideo();
            video.OnStateChanged    += video_OnStateChanged;
            video.OnPositionChanged += video_OnPositionChanged;
            video.OnLengthChanged   += video_OnLengthChanged;
            video.CreateComponent(panelXVideo);

            groupBox1.Enabled = false;

            var mediafile = Path.GetFullPath(video.XTagDir + @"..\demos\vui-video\media\big_buck_bunny_480p_2mb.mp4");

            cmbMp4.Items.Insert(0, mediafile);
        }
Ejemplo n.º 5
0
 public void SetUp()
 {
     repozitorijum = new FakeRepozitorijum();
     virtualui     = new VirtualUI(repozitorijum);
 }