예제 #1
0
 private void ActionShowPIC()
 {
     if (mfPIC == null)
     {
         mfPIC = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.PIC);
         mfPIC.Show();
     }
     else
     {
         mfPIC.Visible = true;
         mfPIC.Activate();
     }
 }
예제 #2
0
 private void ActionShowAVI()
 {
     if (mfAVI == null)
     {
         mfAVI = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.AVI);
         mfAVI.Show();
     }
     else
     {
         mfAVI.Visible = true;
         mfAVI.Activate();
     }
 }
예제 #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;
        }
예제 #4
0
파일: MainForm.cs 프로젝트: zhuangyy/Motion
 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;
 }
예제 #5
0
파일: MainForm.cs 프로젝트: zhuangyy/Motion
 private void ActionShowPIC()
 {
     if (mfPIC == null)
     {
         mfPIC = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.PIC);
         mfPIC.Show();
     }
     else
     {
         mfPIC.Visible = true;
         mfPIC.Activate();
     }
 }
예제 #6
0
파일: MainForm.cs 프로젝트: zhuangyy/Motion
 private void ActionShowAVI()
 {
     if (mfAVI == null)
     {
         mfAVI = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.AVI);
         mfAVI.Show();
     }
     else
     {
         mfAVI.Visible = true;
         mfAVI.Activate();
     }
 }