Exemplo n.º 1
0
 private void ActionShowPIC()
 {
     if (mfPIC == null)
     {
         mfPIC = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.PIC);
         mfPIC.Show();
     }
     else
     {
         mfPIC.Visible = true;
         mfPIC.Activate();
     }
 }
Exemplo n.º 2
0
 private void ActionShowAVI()
 {
     if (mfAVI == null)
     {
         mfAVI = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.AVI);
         mfAVI.Show();
     }
     else
     {
         mfAVI.Visible = true;
         mfAVI.Activate();
     }
 }
Exemplo n.º 3
0
        private void CheckStorage()
        {
            bool b = MotionConfiguration.Instance.StorageIsValid;

            if (b)
            {
                this.toolStripMainLabelStorage.Text = Translator.Instance.T("存储目录:") + " " + MotionConfiguration.Instance.Storage;
                if (this.mfAVI != null)
                {
                    this.mfAVI.FileSystemWatcherEnabled = true;
                }
                if (this.mfPIC != null)
                {
                    this.mfPIC.FileSystemWatcherEnabled = true;
                }
            }
            else
            {
                this.toolStripMainLabelStorage.Text = Translator.Instance.T("存储目录:") + "N/A";
                if (this.mfAVI != null)
                {
                    this.mfAVI.Close();
                    this.mfAVI.Dispose();
                    this.mfAVI = null;
                }
                if (this.mfPIC != null)
                {
                    this.mfPIC.Close();
                    this.mfPIC.Dispose();
                    this.mfPIC = null;
                }
            }
            this.toolStripMainButtonViewAVI.Enabled   = b;
            this.toolStripMainButtonViewPIC.Enabled   = b;
            this.toolStripMenuItemTrayViewAVI.Enabled = b;
            this.toolStripMenuItemTrayViewPIC.Enabled = b;
            this.toolStripMenuItemViewAVI.Enabled     = b;
            this.toolStripMenuItemViewPIC.Enabled     = b;
        }
Exemplo n.º 4
0
 private void CheckStorage()
 {
     bool b = MotionConfiguration.Instance.StorageIsValid;
     if (b)
     {
         this.toolStripMainLabelStorage.Text = Translator.Instance.T("存储目录:") + " " + MotionConfiguration.Instance.Storage;
         if (this.mfAVI != null)
         {
             this.mfAVI.FileSystemWatcherEnabled = true;
         }
         if (this.mfPIC != null)
         {
             this.mfPIC.FileSystemWatcherEnabled = true;
         }
     }
     else
     {
         this.toolStripMainLabelStorage.Text = Translator.Instance.T("存储目录:") + "N/A";
         if (this.mfAVI != null)
         {
             this.mfAVI.Close();
             this.mfAVI.Dispose();
             this.mfAVI = null;
         }
         if (this.mfPIC != null)
         {
             this.mfPIC.Close();
             this.mfPIC.Dispose();
             this.mfPIC = null;
         }
     }
     this.toolStripMainButtonViewAVI.Enabled = b;
     this.toolStripMainButtonViewPIC.Enabled = b;
     this.toolStripMenuItemTrayViewAVI.Enabled = b;
     this.toolStripMenuItemTrayViewPIC.Enabled = b;
     this.toolStripMenuItemViewAVI.Enabled = b;
     this.toolStripMenuItemViewPIC.Enabled = b;
 }
Exemplo n.º 5
0
 private void ActionShowPIC()
 {
     if (mfPIC == null)
     {
         mfPIC = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.PIC);
         mfPIC.Show();
     }
     else
     {
         mfPIC.Visible = true;
         mfPIC.Activate();
     }
 }
Exemplo n.º 6
0
 private void ActionShowAVI()
 {
     if (mfAVI == null)
     {
         mfAVI = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.AVI);
         mfAVI.Show();
     }
     else
     {
         mfAVI.Visible = true;
         mfAVI.Activate();
     }
 }