private void ResetRecordingCounterToolStripMenuItemClick(object sender, EventArgs e)
{
var window = ContextTarget as CameraWindow;
if (window != null)
{
var cw = window;
cw.Camobject.newrecordingcount = 0;
cw.Custom = false;
if (cw.VolumeControl != null)
{
cw.VolumeControl.Micobject.newrecordingcount = 0;
cw.VolumeControl.Invalidate();
}
cw.Invalidate();
}
var level = ContextTarget as VolumeLevel;
if (level != null)
{
var vw = level;
vw.Micobject.newrecordingcount = 0;
if (vw.Paired)
{
objectsCamera oc = Cameras.SingleOrDefault(p => p.settings.micpair == vw.Micobject.id);
if (oc != null)
{
CameraWindow cw = GetCameraWindow(oc.id);
cw.Camobject.newrecordingcount = 0;
cw.Invalidate();
}
}
vw.Invalidate();
}
}