예제 #1
0
        public void UploadImage(string filename, uint slot)
        {
            m_slot    = slot;
            m_imgname = Path.GetFileNameWithoutExtension(filename);
            dispatcher.Invoke(() =>
            {
                m_frame = CreateFrame(filename);

                m_stillsmonitor = new StillsMonitor()
                {
                    OnLockIdle = GetLock
                };
            });
        }
예제 #2
0
 private void StartUploadWithLock()
 {
     dispatcher.Invoke(() =>
     {
         if (m_stillsmonitor != null)
         {
             m_stills.RemoveCallback(m_stillsmonitor);
         }
         m_stillsmonitor = new StillsMonitor()
         {
             OnTransferCompleted = OnTransferCompleted, OnTransferFailled = OnTransferFailled
         };
         m_stills.AddCallback(m_stillsmonitor);
         m_stills.Upload(m_slot, m_imgname, m_frame);
     });
 }