private void ActionShowPIC() { if (mfPIC == null) { mfPIC = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.PIC); mfPIC.Show(); } else { mfPIC.Visible = true; mfPIC.Activate(); } }
private void ActionShowAVI() { if (mfAVI == null) { mfAVI = new ZForge.Motion.Forms.RecordBrowseForm(CameraBoardStyle.AVI); mfAVI.Show(); } else { mfAVI.Visible = true; mfAVI.Activate(); } }
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; }